Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

Mac OS X : LoadCursorFromLazarusResource throws Division by Zero Exception

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dominique Louis

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.

Reply by email

Dominique Louis
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 5 lines
If you don't like the current revision you can choose which revision to use with: cd lazarus svn update -r <revision number>

Hi Felipe,
I have used the revert in the past, but I'm quite dependent on fixes in the latest builds, hence why I use SVN. I'm aware of the risks, I was just a little frustrated yesterday as the Big Boss will be looking at the latest build tomorrow.

They are aware I am using Open Source tools, so I'm hoping they will understand that with that comes the occasional hiccup with using the latest cutting edge code.

Dominique.

Reply by email

Reenen Laurie
to Dominique Louis

often referred to as the "bleeding edge"... :-) You are bound to get some cuts.

On Tue, Sep 2, 2008 at 9:31 PM, Dominique Louis <

Show quoted text 27 lines
wrote: Felipe Monteiro de Carvalho wrote: > If you don't like the current revision you can choose which revision > to use with: > > cd lazarus > svn update -r <revision number> Hi Felipe, I have used the revert in the past, but I'm quite dependent on fixes in the latest builds, hence why I use SVN. I'm aware of the risks, I was just a little frustrated yesterday as the Big Boss will be looking at the latest build tomorrow. They are aware I am using Open Source tools, so I'm hoping they will understand that with that comes the occasional hiccup with using the latest cutting edge code. Dominique. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080902/e27a9218/attachment.html

Reply by email