473,836 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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@EdgeTopI mageProcessor@E dge@InspectionA lgorithm@August @@$$FQAEXHHHHW4 eBayerFormatTyp e@BayerImage@23 4@ABUEdgeTopPar am@1234@PAVErro rTraveler@Unman aged@Infrastruc ture@4@@Z(EdgeT opImageProcesso r*
, Int32 , Int32 , Int32 , Int32 , Int32 , EdgeTopParam* ,
ErrorTraveler* )
at August.Inspecti onStation.Node. InitialSetup(Im age image) in
d:\eng\kendurde n\2\source\insp ectionstation\n ode.cpp:line 164
at August.Inspecti onStation.Node. ProcessObject(O bject ob) in
d:\eng\kendurde n\2\source\insp ectionstation\n ode.cpp: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.NullRefe renceException: Object reference not set to an instance
of an object.

Server stack trace:
at System.Exceptio n.get_Source()
at System.Exceptio n.get_Source()
at System.Exceptio n.GetObjectData (SerializationI nfo info,
StreamingContex t context)
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.InitSerializ e(Object
obj, ISurrogateSelec tor surrogateSelect or, StreamingContex t context,
SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter converter)
at System.Runtime. Serialization.F ormatters.Binar y.WriteObjectIn fo.Serialize(Ob ject
obj, ISurrogateSelec tor surrogateSelect or, StreamingContex t context,
SerObjectInfoIn it serObjectInfoIn it, IFormatterConve rter converter)
at System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Write(WriteObje ctInfo
objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime. Serialization.F ormatters.Binar y.ObjectWriter. Serialize(Objec t
graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Serialize(St ream
serializationSt ream, Object graph, Header[] headers, Boolean fCheck)
at System.Runtime. Remoting.Channe ls.BinaryClient FormatterSink.S erializeMessage (IMessage
msg, ITransportHeade rs& headers, Stream& stream)
at System.Runtime. Remoting.Channe ls.BinaryClient FormatterSink.S yncProcessMessa ge(IMessage
msg)

Exception rethrown at [0]:
at System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
reqMsg, IMessage retMsg)
at System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData&
msgData, Int32 type)
at August.Infrastr ucture.EventMes saging.IEventSe rvice.Post(Remo teEvent
theEvent)
at August.Infrastr ucture.EventMes saging.EventSer viceWrapper.Pos t(RemoteEvent
theEvent) in D:\eng\kendurde n\2
Nov 15 '05 #1
0 1554

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

Similar topics

0
613
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: System.Runtime.InteropServices.SEHException: External component has thrown an exception.
0
2687
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 allways from the same form) This also occures sometimes in the forms initialization when the form tries to load an object (image or icon) from the ressources. Message: System.Runtime.InteropServices.SEHException: Eine externe
4
1567
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 is displayed on a form (a datagrid on a form) there is no database, but i created a dataset using the designer. One Entity/Table is called Log and contains the log-entries.
2
1465
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 Application.EnableVisualStyles() in the Main method. In the form put a combobox. Then create a second empty dialog form Form2. Hook up the comboBox1_TextChanged event and in there simpy add: Form2 f = new Form2(); f.ShowDialog();
3
6005
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 the original unmanaged exception class that was wrapped in the SEHException ? Chris.
8
1630
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 one in Help to sort columns. Is there some way I can speed this up? Thanks
0
2846
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 putting the code to show the FolderBrowserDialog in a try catch I was able to catch the exception but my application was still crashing. A corresponding error was logged by .net Framework in the Apllication Event Logs.
0
2320
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: WebDev.WebServer.EXE Process ID: 1552 Exception: System.Runtime.InteropServices.SEHException
0
2452
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 nowhere as debugging was working fine one day and then this error the next. I've read plenty of posts relating to this error but they all seem outdated and they mostly seem to point to Application.EnableVisualStyles() which i do not use. Also note...
0
9672
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10260
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9388
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7794
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4460
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.