possible bug in irrlicht.net

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
omarb
Posts: 23
Joined: Fri Jul 07, 2006 1:34 pm

possible bug in irrlicht.net

Post by omarb »

hi,
i got an exception in the irrlicht.net version, the crash was happening in the class: irrlicht.net.cpp
and it came from the line: 103 and 104
//Device->drop();
//Device = 0;

removing these lines will fix the problem..
is this possible? thanks
//! Destructor
IrrlichtDevice::~IrrlichtDevice()
{
try
{
System::GC::SuppressFinalize(this);

set_EventReceiver(0);

if (Device)
{
//Device->drop();
//Device = 0;
}
}
catch(Exception*)
{
// catch this exception if we created the device for OpenGL mode,
// .net crashed here for some unknown reason (I don't want to know why, really..)
if ( CreatedDriverType != irr::video::EDT_OPENGL )
throw;
else
System::Diagnostics::Debug::WriteLine("Catched OpenGL shutdown exception");
}
}
Post Reply