1 (edited by Slaine 2007-04-17 05:50:05)

Topic: getCursorControl Error.

Hiya, I have downloaded the latest update and followed all the instructions accuratlly, all of the samples run appart from the hide cursor function.  I recieve the following error which usually refers to an object which hasn't been loaded.
Unhandled Exception:Attempt to access field or method of Null object.

Here:
' disable mouse cursor
device.getCursorControl().setVisible(False)

Any help would be grately appreciated.

Re: getCursorControl Error.

greetings Slaine smile  this has been a spotty problem with Irrilcht proper that differs from machine to machine since about v1.1ish.  its interesting that your getting the attempt to access error as that would mean that getCursorControl() is not able to get a valid instance of ICursorControl.  if you willing to work with me here, id like to give you a special Irrlicht DLL in the hopes that we can maybe track this down.  you are running windows correct?

Re: getCursorControl Error.

hi Slaine.  could you please add this before the device.getCursorControl().setVisible(False) call and then tell me the # that is output?

Print Irr_IrrlichtDevice_getCursorControl(device.handle)
Return

thank you!

Re: getCursorControl Error.

I'm glad it wasn't just me, I thought I was going mad sad
Here is the returned number 19470856

Re: getCursorControl Error.

im going to go ahead and compile a special DLL for you.  you will need to run it and then post back the log file created.  probably wont be today but hopefully by the weekend.

Re: getCursorControl Error.

No problem, glad to help.

Re: getCursorControl Error.

Slaine, this problem occurr to me only when I rebuild the mdule.
Have you tried to use the module without rebuilding it (just coping to the mod folder)?

Re: getCursorControl Error.

No I haven't tried this, I will give it a go.
Is it not important to re-build the modules?  I'm not quite sure how this would produce the error?

Re: getCursorControl Error.

It worked!  Tad bizzare no?

Re: getCursorControl Error.

interesting.  what version of MingW are you both using?

11 (edited by ksalomao 2007-04-19 08:02:57)

Re: getCursorControl Error.

I am using Mingw 3.1.0 and bmax1.24.

Re: getCursorControl Error.

I'm using 3.1.0 too.

Re: getCursorControl Error.

I'm having the exact same issue.

I added the lines below and my returned # is 4035864

I don't think I rebuilt the module when I installed it, but I'll reinstall and see...

Re: getCursorControl Error.

greetings smile i would be really interested to see if the recompile fixes your issue.

Re: getCursorControl Error.

gman, Hello! Tell me about your version MinGW smile I'm, after recompile, also get this error. sad

Re: getCursorControl Error.

Hi!

Long time no see.

I just want to state, that the problem:
" ' disable mouse cursor
device.getCursorControl().setVisible(False)"

stilll exists. I recently got the mod (1.3.1) working under Linux.
Everything is fine, except the "cursor-problem".
An "uncaught exception" error is thrown.
It might result from the "missing" cursor / cursor-device.

Maybe it will be fixed with the next port.
( 1.4 is OUT big_smile )

CU

TheIceman

Re: getCursorControl Error.

I've the same bug. I'm running Linux and the latest version of BlitzMax.

I've tried to copy only mod folder but when I try to start example, compiler says that can't find module sad
So, I build module and then I've the same problem of others with the cursor. Is it possible to solve this bug?

Re: getCursorControl Error.

No Reply??
I've lost entire day... I've tried also minib3d. Hidemouse() in minib3d works well without crash application.
only in irrlicht wrap for linux I've this problem. Any solution?

Re: getCursorControl Error.

Hello,

I'm new to this forum but I just wanted to let you note that I'm also stuck with this problem (on Ubuntu Linux, BlitzMax 1.28 and Irrlicht 1.4 + the latest Irrlicht.Mod). Maybe the Irrlicht developers can help us here?

Re: getCursorControl Error.

Re: getCursorControl Error.

Yesterday i had some time to update and play around with BlitzMAX and my favourite extention, the irrlicht-mod.
I changed to 1.4.1 the "hiding-the-mouse"-problem still exists.
Hope they will fix it in V.1.5.

System specs:
- Ubuntu Hardy Heron (8.04)
- BlitzMAX 1.28
- irrlicht / irrlicht-mod 1.4.1

CU

TheIceman