473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can't Serialize SEHException?

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
Nov 15 '05 #1
0 1532

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Carsten | last post by:
Hi, I have a problem with instantiating a Web service. When the constructor for the proxy is called a SEHException is thrown. The call stack is shown below: ...
0
by: Robert Mayr | last post by:
Hello, i know that this is a bug of the .net framework, when you activate the VisualStyles, so i deactivate this features. But i get sometimes this exception when i call <Form>.ShowDialog (not...
4
by: - R | last post by:
Hello all. I'm new to .Net so please help me out. I have a application with several "Threads" running to observe various things. From time to time each thread need to add an log entry, which...
2
by: Gianluca | last post by:
This one is a strange bug. The unhandled exception is generated only if visual styles are enabled. It's very simple to reproduce, simply create a windows application and add...
3
by: Chris | last post by:
Hi As I understand things, when my unmanaged C++ code throws an exception it is wrapped into a SEHException when it reaches managed code. Now is there a way from the managed catch clause to get...
8
by: **Developer** | last post by:
I have a ListView that has about 200 rows and 15 columns. When I execute "Sort" it takes minutes to sort. I did implement my own ICompare object but the Function Compare is simple, much like the...
0
by: mohit | last post by:
Hello, I am running my windows application on a 64 bit machine with MS .NET Framework 2.0 (x64). When using the FolderBrowserDialog an unhandled exception was coming time and again. After...
0
by: =?Utf-8?B?VGhvbWFzIFR1dGtv?= | last post by:
An ASP.NET web project has recently began crashing WebDev.WebServer.exe with a System.Runtime.InteropServices.SEHException. The EventLog for the crash looks like this: Application ID:...
0
by: THEDuke141 | last post by:
Hi guys, I've lately been plagued with a SEHException while trying to debug VB.Net applications. I'm not exactly sure when the problem started to appear but it literally just appeared out of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.