I need help [*solved]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
darko024
Posts: 9
Joined: Tue Mar 14, 2006 2:45 am

I need help [*solved]

Post by darko024 »

hi ,
I have just change my comp and now there r some problem with irrlicht. .

When i run my project in window mode everything work good but if i try to run in fullscreen there is a problem.

Image

Code: Select all

device = createDevice(EDT_DIRECT3D9, dimension2d<s32>(1280, 720) , 16 , true );
thx
Last edited by darko024 on Sun Nov 11, 2007 5:14 am, edited 1 time in total.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The driver type you selected couldn't be created. If you don't check the resulting pointer after calling createDevice(), your app will crash when you attempt to use it.

Either that, or you're using an older version of Irrlicht that had a bug and crashed before createDevice() returned.

Travis
darko024
Posts: 9
Joined: Tue Mar 14, 2006 2:45 am

Post by darko024 »

But why it work in window mode ?
And i see now other bug in window mode ... when i roll over the window "header" (where is the app name ...) my app crash immediately? why?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

It is possible that your driver has some problem with the resolution you selected. The resolution you request needs to be a supported resolution when you use full screen mode.

You may need to create a null device [createDevice(video::EDT_NULL, ...)] and get the supported video mode list via a call to getVideoModeList(). Given the result of that, you will be able to enumerate the supported resolution and bit depth values.

I don't know why your app crashes when you click the title bar, but I doubt it is caused by Irrlicht. It could be a bug in your code, or maybe there is something weird with your environment. You might try running the examples. If you get the same behavior with the examples, then I would guess it is an environment problem. If you don't then it is likely to be your code. Either way, this might be a good chance for you to get familliar with your debugger. :)

Travis
darko024
Posts: 9
Joined: Tue Mar 14, 2006 2:45 am

Post by darko024 »

It is possible that your driver has some problem with the resolution you selected.
Yes , this is a problem about fullscreen ... thx

but,

there is no problem wit roll over title bar of window , examples works fine and my app too. I have problem with something else , maybe in my code but i dont now where to find them ... actually when i roll over of the "window surface" below title bar (only about 50 -100px) app crash. !
I dont'have hidden components , its just simple GUI window with one IGUIButton ...
darko024
Posts: 9
Joined: Tue Mar 14, 2006 2:45 am

Post by darko024 »

ok, there is a problem ...

in MyEventReceiver class i forget to put this

Code: Select all

 if (event.EventType == irr::EET_KEY_INPUT_EVENT && !event.KeyInput.PressedDown)
		{ 
This fix my problem about roll over screen .... now app works fine ...

anyway , thx Vitek !
Post Reply