Mac OS X : LoadCursorFromLazarusResource throws Division by Zero Exception!
Original Reporter info from Mantis: savage
-
Reporter name: Dominique Louis
Original Reporter info from Mantis: savage
- Reporter name: Dominique Louis
Description:
Under Mac OS X 10.4.11 the call to LoadCursorFromLazarusResource throws a Division by Zero Exception and the application shutsdown.
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_LOADCURSORFROMLAZARUSRESOURCEANSISTRING
$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
&LtPos;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 huge benefits it provides over Delphi and the like.&LtPos;/whinge>
Mantis conversion info:
- Mantis ID: 12033
- Version: 0.9.25 (SVN)
- Fixed in version: 0.9.25 (SVN)
- Fixed in revision: 16386 (#d8464053)
- Target version: 0.9.26