Getting a weird error that I haven't seen
Posted: 24 Mar 2011, 21:44
Hey all,
I'm getting a really weird error that I've never seen before and have spent hours trying to figure this one out. On one instance/machine it'll send and receive objects just fine, but, on another instance it'll catch the error at the end of the post on the smartFox.AddLogListener(LogLevel.INFO, OnDebugMessage); delegate.
The delegate functions for "SFSEvent.OBJECT_MESSAGE" and "SFSEvent.PUBLIC_MESSAGE" are set and will work on one instance but will give the following error on another instance. It seams to happen randomly. The instance getting the error will send just fine. We do have a plugin for SmartFox also if maybe that would be causing the problem.
Error dispatching event objectMessage :Object reference not set to an instance of an object at SocialNetworkController.SFSOnObjectMessage (Sfs2X.Core.BaseEvent evt) [0x00000] in <filename unknown>:0 at (wrapper delegate-invoke) Sfs2X.Core.EventListenerDelegate:invoke_void__this___BaseEvent (Sfs2X.Core.BaseEvent) at Sfs2X.Core.EventDispatcher.DispatchEvent (Sfs2X.Core.BaseEvent evt) [0x00000] in <filename unknown>:0
Thanks a ton,
Nathan
I'm getting a really weird error that I've never seen before and have spent hours trying to figure this one out. On one instance/machine it'll send and receive objects just fine, but, on another instance it'll catch the error at the end of the post on the smartFox.AddLogListener(LogLevel.INFO, OnDebugMessage); delegate.
The delegate functions for "SFSEvent.OBJECT_MESSAGE" and "SFSEvent.PUBLIC_MESSAGE" are set and will work on one instance but will give the following error on another instance. It seams to happen randomly. The instance getting the error will send just fine. We do have a plugin for SmartFox also if maybe that would be causing the problem.
Error dispatching event objectMessage :Object reference not set to an instance of an object at SocialNetworkController.SFSOnObjectMessage (Sfs2X.Core.BaseEvent evt) [0x00000] in <filename unknown>:0 at (wrapper delegate-invoke) Sfs2X.Core.EventListenerDelegate:invoke_void__this___BaseEvent (Sfs2X.Core.BaseEvent) at Sfs2X.Core.EventDispatcher.DispatchEvent (Sfs2X.Core.BaseEvent evt) [0x00000] in <filename unknown>:0
Thanks a ton,
Nathan