Thread: Null exception
View Single Post
  #6  
Old 03-19-2012, 06:04 AM
Smokeynz Smokeynz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 106
Default

@Kodiak, I've sent you the mission so you can see the error in real time.
Spawn in and sit on deck, shift tab and monitor logs.(or export logs)
let it run for about 40~50mins and you will see lots of the errors about that time.


@salmo, yeah it is possible reference lists of players or any object can fall foul of the reference problem.

A google of the exception object missing reference yeilds plently of people suffering the same problem with C#

I found 2 links(1 posted above), where point 3 of above is what happens here(I believe). I'm a bit limited in experience to diagnose C# work arounds, once I have the syntax I can work it out, but get one thing wrong and it fails.

anyway key thing, any object that has a reference that can disappear can no longer be tested with null as null reference requires an existance. we asume that null means nothing, but it actually seems to mean nothing of something, not something of nothing.

think i might go blow something up in bf3



smoke
Reply With Quote