<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 12/06/2012 16:08, Antonio Fortuny wrote:
<blockquote cite="mid:jr7m1s$4i0$1@dough.gmane.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<br>
<blockquote cite="mid:4FD75017.7040605@mfriebe.de" type="cite">
can you try <br>
<br>
gdb.exe <i><b>c:\sources\compiled\TestUib.Exe</b></i><br>
<br>
info line *0x0040D628<br>
</blockquote>
(gdb) info line *0x0040D628<br>
No line number information available for address<br>
0x40d628 <SYSTEM_REALLOCMEM$POINTER$LONGWORD$$POINTER+8><br>
(gdb)<br>
</blockquote>
Ok, so that address is in the unit System from the RTL (fpc)<br>
<br>
The RTL has no line-info. So it can not be resolved. <br>
You can recompile it, but that wouldn't solve the problem. Because,
then there would be the line in the System unit in the trace, and
still not your code.<br>
<br>
<i><b>Call trace for block $001D62B0 size 16</b></i>
<<======== my block, looks OK<br>
<i><b> $0040D628 <<line ?? in unit System>><br>
$004FAA4E TCONTROL__CLICK, line 2735 of
./include/control.inc<br>
</b></i><br>
Now that means there is no entry for your TForm1.Button1Clicked
procedure....<br>
<br>
I can only guess: The compiler inlined the ReAllocMem into your
Button1Clicked .<br>
So the frame is Button1Clicked, but the Address is not.<br>
<br>
Did you compile wit optimization -O ? OR otherwise enabled inlining?
Please try with -O0 (letter O, then zerro).<br>
<br>
Better yet in the "Project Options" dialog go to "Compiler Opts" /
"Other" and in the field "Custom Options" enter:<br>
-O-<br>
<br>
<br>
</body>
</html>