[Lazarus] Tooltips in editor not working with trunk

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Sep 2 12:58:25 CEST 2008


Under Mac OS X 10.4.11 the call to LoadCursorFromLazarusResource throws 
a Division by Zero Exception. This code was working literally a week ago 
and nothing has changed in my code!

This crash has not been tested on any other OS.

The crash log is as follows...

Thread 0 Crashed:
0   Game_Maker                	0x0019f101 
CARBONGDIOBJECTS_TCARBONCURSOR_$__CREATEHARDWARECURSOR$TCARBONBITMAP$POINT 
+ 321
1   Game_Maker                	0x0019f6ea 
CARBONGDIOBJECTS_TCARBONCURSOR_$__CREATEFROMINFO$PICONINFO$$TCARBONCURSOR 
+ 266
2   Game_Maker                	0x001951bf 
CARBONINT_TCARBONWIDGETSET_$__CREATEICONINDIRECT$PICONINFO$$HICON + 127
3   Game_Maker                	0x000fab4a 
GRAPHICS_TCURSORIMAGE_$__HANDLENEEDED + 138
4   Game_Maker                	0x000faa34 
GRAPHICS_TCURSORIMAGE_$__RELEASEHANDLE$$HICON + 36
5   Game_Maker                	0x000ebae2 
GRAPHICS_LOADCURSORFROMLAZARUSRESOURCE$ANSISTRING$$HICON + 114
6   Game_Maker                	0x000496a8 IMAGE_EDITFORM_CURSORS_INIT + 24
7   Game_Maker                	0x00017f38 
FORMS_TCUSTOMFORM_$__CREATE$TCOMPONENT$$TCUSTOMFORM + 408
8   Game_Maker                	0x00019a9d 
FORMS_TFORM_$__CREATE$TCOMPONENT$$TFORM + 141
9   Game_Maker                	0x0001e97d 
FORMS_TAPPLICATION_$__CREATEFORM$TCOMPONENTCLASS$formal + 157
10  Game_Maker                	0x00001b66 PASCALMAIN + 406
11  Game_Maker                	0x000019b2 start + 258
12  Game_Maker                	0x000018d9 start + 41

<whinge> I only recently managed to give my client a working version of 
their ported app due to a previous Range Error/TIcon issue, and if they 
want a build in the next couple of days, this won't look good if I say 
that the code base is broken again. Yes I know everyone is doing this 
out of the goodness of their heart, but I'm also trying to use these 
tools to showcase what Lazarus and FreePascal can achieve, in the hope 
that others will see what I've done and appreciate the huge benefits it 
provides over Delphi and the like.</whinge>

Logged as a bug @ http://bugs.freepascal.org/view.php?id=12033

Dominique.



More information about the Lazarus mailing list