<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Any Initialization clauses in your form or the units it brings in?<br>
<br>
<div class="moz-cite-prefix">On 04/12/15 00:52, Aradeonas wrote:<br>
</div>
<blockquote
cite="mid:1449190333.1296120.457566833.3A05FF45@webmail.messagingengine.com"
type="cite">
<title></title>
<div>Hi,<br>
</div>
<div> </div>
<div>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!<br>
</div>
<div>So like a programmer I add a break poit on my main form
create and no it will not run and crash will happen.<br>
</div>
<div>So I add another break point to first line of application:<br>
</div>
<blockquote>
<div>begin<br>
</div>
<div> RequireDerivedFormResource:=True; //>>>> Here<br>
</div>
<div> Application.Initialize;<br>
</div>
<div> Application.CreateForm(TFormX, FormX);<br>
</div>
<div> Application.Run;<br>
</div>
<div>end. <br>
</div>
</blockquote>
<div id="sig12586409">
<div class="signature">the lpr file is made automatically but
even the first line will never run!<br>
</div>
<div class="signature">It was strange so I delete CreateForm
line and run again :<br>
</div>
</div>
<blockquote>
<div>begin<br>
</div>
<div> RequireDerivedFormResource:=True; //>>>> Here<br>
</div>
<div> Application.Initialize;<br>
</div>
<div> Application.Run;<br>
</div>
<div>end. <br>
</div>
</blockquote>
<div id="sig12586409">
<div class="signature"> </div>
<div class="signature">And now everything work!<br>
</div>
<div class="signature"> </div>
<div class="signature">So the problem is form but what?<br>
</div>
<div class="signature">I add a new clean form and make it main
form like this :<br>
</div>
</div>
<blockquote>
<div>begin<br>
</div>
<div> RequireDerivedFormResource:=True;<br>
</div>
<div> Application.Initialize;<br>
</div>
<div> Application.CreateForm(TForm1, Form1);<br>
</div>
<div> Application.Run;<br>
</div>
<div>end. <br>
</div>
</blockquote>
<div id="sig12586409">
<div class="signature">And run and everything OK.<br>
</div>
<div class="signature">So add a button on Form1 and write :<br>
</div>
</div>
<blockquote>
<div id="sig12586409">
<div class="signature">
<div class="signature"> Application.CreateForm(TFormX,
FormX);</div>
<div class="signature"> FormX.Show; <br>
</div>
</div>
</div>
</blockquote>
<div id="sig12586409">
<div class="signature"> </div>
<div class="signature">And again crash without even running the
line in button or clicking it.<br>
</div>
<div class="signature">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.<br>
</div>
<div class="signature"> </div>
<div class="signature">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.<br>
</div>
<div class="signature"> </div>
<div class="signature">So anyone has a clue on what is the
problem or how find it?<br>
</div>
<div class="signature"> </div>
<div class="signature">I do this in a Windows 8 64bit with
Lazarus 1.5 and FPC 3.1.1 .<br>
</div>
<div class="signature"> </div>
<div class="signature">Regards,<br>
</div>
<div class="signature">Ara<br>
</div>
<div> </div>
<div> </div>
</div>
<div> </div>
<pre>--
<a class="moz-txt-link-freetext" href="http://www.fastmail.com">http://www.fastmail.com</a> - Choose from over 50 domains or use your own
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
</body>
</html>