Click to See Complete Forum and Search --> : problem with "int 3" under WinXP


Darney
February 26th, 2003, 06:44 AM
Such code:

try {
__asm int 3
} catch(...) {
}

causes the program to interrupt by unhandled exception. It happens under XP only (not Win2000 nor Win9x).
This code is the part of very big program, and I don't have complete source code. Why can it be, and what can affect structured exceptions behavior?

KingTermite
February 26th, 2003, 07:57 AM
Is there a chance is has something to do with intrinsic support of the .NET framework in WinXP ? I really don't know, but thought the suggestion might lead you in a good direction.

galathaea
February 26th, 2003, 07:02 PM
I think KingTermite's explanation is pretty much the case, but would just clarify that it is not an XP problem (XP does not have any more support for .NET than any of the other OSes on install, as far as I am aware). It is probably the difference between compiling managed and unmanaged c++, though. For example, I have no problem with compiling and running the code in MSVC++ 6.0, and the catch does catch on my XP Pro. When I compile on MSVC++ 7.0, managed c++, I get the unhandled exception. If that helps any?