Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2005

Tip: Looking for answers? Try searching our database.

Debugging SEHException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Blake-Knox - 10 Nov 2005 18:30 GMT
We have a server application that occasionally reports SEHExceptions
(only in a production environment of course) when calling a third party
dll. Unfortunately, the exception doesn't seem to report anything
except that an exception has occurred. After a bit of Googling, I found
an explanation of SEHExceptions at
http://blogs.msdn.com/cbrumme/archive/2003/04/15/51332.aspx.

Unfortunately, it seems that unrecognized exceptions are literally
turned into a single SEHException that carries no information about the
original error (except, I guess, that it wasn't one of the exceptions
on some (unpublished) list).

I've used the Debugging Tools for Windows to take a full user
application dump. The call stacks in the dumps I examined contain the
address RPCRT4!rpcRaiseException+0x03c. This is in a remote procedure
call library that's part of COM.

Would anyone know of a way to determine what exception is being raised?
I assume the exception is either being reported by the remove server or
that COM is having communications problems with the remote server.

Is there a better way to troubleshoot this? It seems amazing to me that
the CLR doesn't pass any information on the original exception to the
managed code.

Thanks

Mike
Johannes Passing - 11 Nov 2005 20:41 GMT
Hi,

have a look at the private _xcode field of the exception caught. This
field seems to contain the SEH exception code. However, that might not
always be the case.

/Johannes

> We have a server application that occasionally reports SEHExceptions
> (only in a production environment of course) when calling a third party
[quoted text clipped - 24 lines]
>
> Mike
Mike Blake-Knox - 12 Nov 2005 15:15 GMT
> have a look at the private _xcode field of the exception caught.

Thanks. Unfortunately, the problem is intermittent and only in production so I can't use the debugger to look at
private fields. I have a First Chance Exception full dump that I took with ADPlus. With luck, I'll find it on the call
stack.

Thanks again.

Mike
Mike Blake-Knox - 16 Nov 2005 11:41 GMT
> have a look at the private _xcode field of the exception caught. This
> field seems to contain the SEH exception code.

That's what I found too. Of course, the code was 1726 (RPC failed) which
didn't help much.

I'm working on improving error recovery.

Thanks again

Mike

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.