View Single Post
Old 06-30-2006, 02:11 AM   #14 (permalink)
milt
Forum Expert
 
milt's Avatar
 
Join Date: Nov 2003
Location: Lancaster, PA
Age: 20
Posts: 1,606
Send a message via AIM to milt Send a message via Yahoo to milt Send a message via Skype™ to milt
Default

Quote:
Originally Posted by imthewizardlord
Hey, when i extracted your system into my scripts and reset server it made it so that any time someone logs out we get this error.

Code:
Error:
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
   at Server.TSystem.TSystemStone.TSystem_OnDisconnect(DisconnectedEventArgs e)
   at Server.DisconnectedEventHandler.Invoke(DisconnectedEventArgs e)
   at Server.EventSink.InvokeDisconnected(DisconnectedEventArgs e)
   at Server.Mobile.set_NetState(NetState value)
   at Server.Network.NetState.ProcessDisposedQueue()
   at Server.Core.Main(String[] args)
Crash: Backing up...done
Crash: Generating report...done
Crash: Restarting...done
I figured it would be good to come to you to post this problem as soon as i learned its coming from your tsystemstone. Unfortunatly since i just started learning C# recently i dont know how to fix it myself anyways so i figured i would let the expert handle it
Fuck, sorry I forgot to add a little null check there. If you go to line 266 in TSystemStone.cs, change it to:
Code:
if(StaticRef != null && StaticRef.Started)
Or if you do not feel like changing that then just re download the system, I patched it.
__________________
--Milt, AKA Pokey

Last edited by milt; 06-30-2006 at 02:13 AM.
milt is offline