[SO] irrlicht-0.9 precompiled examples crashing with directx

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
oconv
Posts: 14
Joined: Fri Dec 17, 2004 2:12 pm

[SO] irrlicht-0.9 precompiled examples crashing with directx

Post by oconv »

in irrlicht-0.9 the precompiled examples in /bin/VisualStudio are crashing with directx8 and directx9c. with opengl it'is ok.
in irrlicht-0.8 they run with all devices. so what was changed with directx in 0.9 compared to 0.8?
Last edited by oconv on Thu Mar 31, 2005 3:50 pm, edited 2 times in total.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Wow, interesting. Can anybody confirm this? And oconv, could you try and find out where exactly they crash?
Dryas123

Post by Dryas123 »

Hallo,

ich habe das selbe Problem, aber nicht nur bei den Beispielen, sondern auch wenn ich in einem selbstkompilierten Beispiel das DirectX8/9 Device ansprechen will... OpenGL funktioniert einwandfrei...

Ich benutze aber nicht Visual Studio sondern DevCpp...

Benny

P.S.: Einen etwas genaueren Fehler kann ich heute Abend posten. ;)
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

kann ich bestätigen....

hab aber auch ne schrottige onboard graka mit 64 MB von intel.... :(


@Dryas123:

stürzt eher nicht ab, sondern beendet sich beim starten einfach, right?
liegt daran, dass das mingw/devcpp-build kein D3D unterstützt!!!

was ich aber nicht ganz verstehe, da es modifizierte libs/includes für dx8 und dx9 gibt, welche mit mingw funktionieren.....
ob die 100% legal sind weiss ich auch nicht.....
oconv
Posts: 14
Joined: Fri Dec 17, 2004 2:12 pm

Post by oconv »

stürzt eher nicht ab, sondern beendet sich beim starten einfach, right?
that is exact what's happening.

ok, i could figure out the problem :) and solve it...

too many open applications. looks like there was not enough grafic power left.
i had similar issues with self compiled levels in opengl mode. with too many apps open, the framerate dropped dramaticly.

geforce4 ti 4200 128mb as quadro4 780XGL
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

me too, With DX9 the Demos always crash.

i know the slution and apply it to my Engine , and it wroks.

the problem is in D3D_SDK_VERSION of

pID3D = (*d3dCreate)(D3D_SDK_VERSION);

so change it to

pID3D = (*d3dCreate)(31);

thanks
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Emil_halim wrote:me too, With DX9 the Demos always crash.
Hm, interesting. What d3d sdk do you have installed? And where does the engine crash exactly? Inside that function?
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

i am using VC++ TOOLKIT 2003 and also DevC++.

so i use the Microsoft SDK and DirectX90c.DevPak.

but i test this with DevC++

it crashs when creating DX9 as i mentioned.
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

sorry i must be more clearly about Crashing.

when Engine tries to create DX9 by

pID3D = (*d3dCreate)(D3D_SDK_VERSION);

it always return zero, so pID3D will be 0.

it carshs when you try to use pID3D for calling.

thanks
Post Reply