# [.net] System.DllNotFoundException

## Recommended Posts

zorlack    122
I am working on an opengl project using Tao Framaework's dll on delphi8 for .Net. When i try to run the aplication a system.dllnotfoundexception occurs that says "Unable to load DLL (ilu.dll)" when I use any of the Tao.DevIl clases. I don't know why this error occurcs cuase I copied that practicular dll on the folder of the proyect and on the system32 forlder. What can i do to fix this problem?

##### Share on other sites
Ridge    188
You're missing the native devil library.

##### Share on other sites
zorlack    122
Thanks, I downloaded the native devil liberies. But now a I get a System.NullReferenceException with message "Object reference not set to an instance of an object". I have never come with this error, what should I do to fix it.

##### Share on other sites
capn_midnight    1707
Quote:
 Original post by zorlackThanks, I downloaded the native devil liberies. But now a I get a System.NullReferenceException with message "Object reference not set to an instance of an object". I have never come with this error, what should I do to fix it.
this happens when you don't instantiate an object.

example:
MyClass me; //currently, set to null.me.doSomething(); //bingo, NullReferenceException/***remedy***/MyClass me = new MyClass(); //constructed and ready to gome.doSomething(); //No null reference!

[Edited by - capn_midnight on February 15, 2005 8:11:56 AM]