I get the System.NullReferenceException error when I alt-tab and come back to my program. It always points to this line:
driver->draw2DImage(backgroundimage, core::position2d<s32>(0,0),core::rect<s32>(0,0,1024,768), 0,video::SColor(255,255,255,255), true);
Either its having trouble accessing driver or backgroundimage at the moment i try to return to the program, but otherwise I don't have this problem if I don't alt-tab out. Any idea how i might fix it?
System.NullReferenceException error when I alt-tab and back.
-
- Posts: 61
- Joined: Sun May 08, 2005 11:30 am
-
- Posts: 340
- Joined: Wed Sep 28, 2005 4:38 pm
- Location: Canada, Eh!
re:
Only render the window if the window is active, look here: http://irrlicht.sourceforge.net/docu/cl ... e.html#a12
-
- Posts: 61
- Joined: Sun May 08, 2005 11:30 am
-
- Posts: 340
- Joined: Wed Sep 28, 2005 4:38 pm
- Location: Canada, Eh!
re:
I got no more ideas, the only thing I can think of is that the pointer to the image is invalid, which doesn't make sense since the image shows up unless you ALT+TAB, is it only happening when you ALT+TAB, or does it happen any time when your window's not active (ea. minimized)?
-
- Posts: 61
- Joined: Sun May 08, 2005 11:30 am
-
- Posts: 61
- Joined: Sun May 08, 2005 11:30 am