Page 1 of 1

Help with Path

Posted: Sat Feb 18, 2006 12:04 am
by thespongebob
I just installed and I hardcoded this -
string path="C:/Program Files/irrlicht-0.14.0/media/";

but i get an error on this statement-
node.SetMaterialTexture(0, driver.GetTexture(path + "wall.bmp"));

Error -
An unhandled exception of type 'System.NullReferenceException' occurred in irrlicht.net.dll

I quickwatch and it LOOKS ok ??

Help !!! Randy

MS .NET 1.03705
MS VS 20027.0.9955

Posted: Sat Feb 18, 2006 1:55 am
by Braneloc
.net 1.0 ???

Eeeeek.

1.0 is ancient, which probably means you are stuck using visual studio 2002, which is also ancient, and well known as problematic. The 2003 version introduced .net 1.1 which is an improvement, but lucky for you, the 2005 version of visual studio is FREE so upgrade already :)

http://msdn.microsoft.com/vstudio/express/
(Different versions for VB, C#, J#, C++ and web development)

This will bring you up to the latest 2.0 .net - Though I'm not sure of the compatability of the Irrlicht.Net assemblies with the ancient 1.0 setup or if it will directly fix your problem. Paths in Irrlicht.Net can be a pain in the neck at the best of times.

2.0 introduces a LOT of new, very usefull stuff that is just not available anywhere else - and is completely compatable with the current Irrlicht.Net assemblies.

Posted: Sat Feb 18, 2006 3:22 am
by thespongebob
Thanx Braneloc

I upgraded and everything is ok now. I am really going to miss .NET 1.0 though ;)