[Lazarus] Strange application startup problem

Aradeonas aradeonas at operamail.com
Fri Dec 4 01:52:13 CET 2015


Hi,

Today I open one of my applications and start working on it and made
many changes and hit the run but it will immediately crash! So like a
programmer I add a break poit on my main form create and no it will not
run and crash will happen. So I add another break point to first line of
application:
> begin  RequireDerivedFormResource:=True; //>>>> Here
> Application.Initialize;   Application.CreateForm(TFormX, FormX);
> Application.Run;         end.
the lpr file is made automatically but even the first line will never
run! It was strange so I delete CreateForm line and run again :
> begin  RequireDerivedFormResource:=True; //>>>> Here
> Application.Initialize;   Application.Run;       end.

And now everything work!

So the problem is form but what? I add a new clean form and make it main
form like this :
> begin  RequireDerivedFormResource:=True;
> Application.Initialize;  Application.CreateForm(TForm1, Form1);
> Application.Run;             end.
And run and everything OK. So add a button on Form1 and write :
> Application.CreateForm(TFormX, FormX);   FormX.Show;

And again crash without even running the line in button or clicking it.
Project is in default mode (made from lazarus and I every debug mode is
on and I checked default debug mode ) and nothing, I also uncheck Win32
target platform so maybe it show any message in CMD but nothing.

This program is bug and I cant share the code or forms and I dont know
what was changed this and I can go back,I just need a debug info.

So anyone has a clue on what is the problem or how find it?

I do this in a Windows 8 64bit with Lazarus 1.5 and FPC 3.1.1 .

Regards, Ara



-- 
http://www.fastmail.com - Choose from over 50 domains or use your own

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151203/db85584d/attachment-0002.html>


More information about the Lazarus mailing list