[no bug]problems with CreateDeviceEx

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
NioZero
Posts: 7
Joined: Tue Nov 17, 2009 1:04 am
Location: Concepción, Chile
Contact:

[no bug]problems with CreateDeviceEx

Post by NioZero »

I don't know if this is really a bug or not but to make sure i have isolated the code and the error still remain...

i have updated irrlicht library to 1.7.1, but i have a problem with the CreateDeviceEx function... in the previous version (1.6) works perfectly, but now doesn't create the device and returns always NULL, even with the default values of SIrrlichtCreationParameters.

this is the code...

Code: Select all

irr::IrrlichtDevice* VideoDevice;
irr::SIrrlichtCreationParameters deviceConfig;

// this always returns me NULL
VideoDevice = irr::createDeviceEx( deviceConfig );

if( VideoDevice ){

	printf("It works\n");
}
i have rechecked this error changing versions and with 1.6 it prints "it works" message, but with the 1.7.1 the error still remain (in the changes.txt I found no mention about createDeviceEx)
Image
Image
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

no problem here...
what does the console tell you ???
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

createDeviceEx still works, so maybe it's a problem from updating? Check if you include the right headers (you might still have set old header-paths set in the IDE), check if you link with the correct library (same goes for library paths) and be careful that the correct Irrlicht.dll is used. Also check if you get any console errors.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Try to run the provided binaries. They should work out of the box.
NioZero
Posts: 7
Joined: Tue Nov 17, 2009 1:04 am
Location: Concepción, Chile
Contact:

don't bother

Post by NioZero »

don't worry ... I decided to delete all files from version 1.6, clean the project completely (manually deleting the files), I upgraded to 1.7, compiled the project again and it worked :? ...

possibly in the project must have been some temporary file that was causing problems ...

I suppose you can close now this topic ...
Image
Image
Post Reply