AnniXa Posted August 17, 2011 Share Posted August 17, 2011 Hey, i just start with LW, and i wanted to convert some stuff that i wrote with minib3d now to LW, but it seems that it is not possible to access the fields of all the types? when i for example do this: Local mesh:TMesh = CreateCube() Print mesh.CountSurfaces() then i get an error "Unhandled Exception:Attempt to access field or method of Null object" <- somewhere, where it cant be debugged because of missing source. also when i use the function variant with Print CountSurfaces(mesh) the same error appears. Do i forget to include something, or whats wrong here? Quote Whuts wroong? Link to comment Share on other sites More sharing options...
AnniXa Posted August 17, 2011 Author Share Posted August 17, 2011 Hey, i just start with LW, and i wanted to convert some stuff that i wrote with minib3d now to LW, but it seems that it is not possible to access the fields of all the types? when i for example do this: Local mesh:TMesh = CreateCube() Print mesh.CountSurfaces() then i get an error "Unhandled Exception:Attempt to access field or method of Null object" <- somewhere, where it cant be debugged because of missing source. also when i use the function variant with Print CountSurfaces(mesh) the same error appears. Do i forget to include something, or whats wrong here? whaa! ok ignore / delete this post. i found the problem, it was the material stuff somewhere else Quote Whuts wroong? Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.