Recent

Author Topic: [Solved] Error running the program after changing form name  (Read 1635 times)

heejit

  • Full Member
  • ***
  • Posts: 245
[Solved] Error running the program after changing form name
« on: October 22, 2018, 10:20:12 pm »
Program is compiling but not running

This problem started after rename of few forms

Form resource TFormMain not found. For resourceless forms CreateNew constructor must be used. See the global variable RequireDerivedFormResource.

« Last Edit: October 22, 2018, 11:44:05 pm by jshah »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Error running the program after changing form name
« Reply #1 on: October 22, 2018, 11:09:13 pm »
Perhaps you have an orphan .lfm file that did not get renamed correctly.
Its new name perhaps should be "formmain.lfm", but is not.

This is just a guess, since you do not give any project files.

heejit

  • Full Member
  • ***
  • Posts: 245
Re: Error running the program after changing form name
« Reply #2 on: October 22, 2018, 11:23:37 pm »
in project directory i have file

gui_unit_main.lfm
gui_unit_main.pas

and form defines as  TFormMain = class(TForm)


heejit

  • Full Member
  • ***
  • Posts: 245
Re: Error running the program after changing form name
« Reply #3 on: October 22, 2018, 11:40:04 pm »

Found the issue:

rename a FORM from
  inside code window    : error
   from object inspector : working

 

TinyPortal © 2005-2018