Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Evil errors :(  (Read 577 times)
Illusion
Customers
Community Member
*****
Posts: 50


« on: March 06, 2005, 01:34:04 PM »

Hi,

I've been playing about the engine for a while now and noticed something odd, (am making a space game) I have my planet on screen with some clouds floating round it which works fine, but I want to make a class of my planet so i can use it more effectivly, however when I put it in a class instead of a module which its in at the moment, I get this error

Code:

An unhandled exception of type 'System.NullReferenceException' occurred in mtv3d65.dll

Additional information: Object reference not set to an instance of an object.


I thought it might not be reading the licence key and not generating a new instance of itself, so I moved it to sub main and put the key there and tried again.. but I still get the problem, i'm not sure what to do now... Sad

I'm called a new Planet class in my ModGlobals submain and thats the first thing to start up.. then all of the textures, models etc then finally show the form, it just doesn't appear to run any code and goes straight to 'Planet = tvScene.CreateMeshBuilder' in my class and dies.

Any ideas or suggestions would be grateful.

Thanks
Dan.
Logged

Eric
Customers
Community Member
*****
Posts: 807


« Reply #1 on: March 06, 2005, 01:37:23 PM »

try passing a duplicated mesh to the class instead, that might fix the problem.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks