I'm getting the following exception coming out of a block of unmanaged
C++ code.
Thread executed for 1.03 sec and died with the following exception:
External component has thrown an exception.
==== Primary Call Stack ====
at ?Setup@EdgeTopImageProcessor@Edge@InspectionAlgori thm@August@@$$FQAEXHHHHW4eBayerFormatType@BayerIma ge@234@ABUEdgeTopParam@1234@PAVErrorTraveler@Unman aged@Infrastructure@4@@Z(EdgeTopImageProcessor*
, Int32 , Int32 , Int32 , Int32 , Int32 , EdgeTopParam* ,
ErrorTraveler* )
at August.InspectionStation.Node.InitialSetup(Image image) in
d:\eng\kendurden\2\source\inspectionstation\node.c pp:line 164
at August.InspectionStation.Node.ProcessObject(Object ob) in
d:\eng\kendurden\2\source\inspectionstation\node.c pp:line 78
A.) I believe this to be a crash-type situation in the unmanaged code,
an access violation for example. Is this correct?
B.) When I try to serialize an object containing the Exception which
caused the failure (the SEHException above), I get the following
error. This seems to indicate that SEHException isn't serializable
because it can't call get_Source on it? Is there anything I can do to
get this exception across intact?
Thanks,
-ken
System.NullReferenceException: Object reference not set to an instance
of an object.
Server stack trace:
at System.Exception.get_Source()
at System.Exception.get_Source()
at System.Exception.GetObjectData(SerializationInfo info,
StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.Wri teObjectInfo.InitSerialize(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter)
at System.Runtime.Serialization.Formatters.Binary.Wri teObjectInfo.Serialize(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter)
at System.Runtime.Serialization.Formatters.Binary.Obj ectWriter.Write(WriteObjectInfo
objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime.Serialization.Formatters.Binary.Obj ectWriter.Serialize(Object
graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Serialize(Stream
serializationStream, Object graph, Header[] headers, Boolean fCheck)
at System.Runtime.Remoting.Channels.BinaryClientForma tterSink.SerializeMessage(IMessage
msg, ITransportHeaders& headers, Stream& stream)
at System.Runtime.Remoting.Channels.BinaryClientForma tterSink.SyncProcessMessage(IMessage
msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData&
msgData, Int32 type)
at August.Infrastructure.EventMessaging.IEventService .Post(RemoteEvent
theEvent)
at August.Infrastructure.EventMessaging.EventServiceW rapper.Post(RemoteEvent
theEvent) in D:\eng\kendurden\2