My application has a small JNI piece written in C++. This piece was
developed using VC++ 2k5. We statically link with some .lib's which
were built using vc6. I see that exceptions thrown by some api's in
these .lib's are not getting caught but are causing the app to crash.
std::exception is a different type when compiled with a different C++
compiler. In general, you can't mix code between different C++
implementations and VC6 and VS2005 count as such. The exception to that
rule is when you restrict yourself to a C interface, but that also means
that no exceptions are thrown across the function calls.
When this code was "ported" to vc6 this wasn't observed. It so happens
we also support HPUX n Solaris n it works fine there too.
Perhaps because you are not mixing compilers there, otherwise the same
problems occur there, too.
Re: Benefits of Dynamic Typing ... >> - On the toplevel of the compiler, to report all compile errors found ... > Catching and reporting all exceptions in the toplevel doesn't require ... Note that I don't use exceptions much. ... exception for reporting an end of file though. ... (comp.lang.functional)
Re: Handling error/status messages by interface to C++ programs ... about how to design a compiler, please tell me where I can find ...exceptions for managing the error detection is rather a bad idea. ... I have to say I have seen a simple example of an object-oriented parser design in some book (unfortunately I forgot ... It would trigger user notification and do recover housekeeping like reseting the current syntax row's token stack because one wants to continue parsing and detect any other errors w/o aborting. ... (comp.object)
Re: Cpp Considered Harmful ...programming language, the compiler, the IDE, the libraries, etc. ...WRT exceptions, the fact of the matter is that placing certain ... >> regarding the CPP.... (comp.lang.cpp)
Re: Fortran Error Reporting Requirements (Was: GFORTRAN PROBLEM WITH SAVE STATEMENT) ... If you ever had a compiler that failed to diagnose this, ... to trap exceptions....Reporting of violations of syntax rules and constraints is required in section 1.7.3. ... Most of the detection and reporting requirements are in section 1.5, ... (comp.lang.fortran)
Re: Benefits of Dynamic Typing ... an extendible type hierarchy.... which means "the compiler found a fatal error and it cannot continue compiling this module, so we return to compiler's toplevel code and print errors found so far before exiting". ... in a type hierarchy, so that doesn't decide the point in question. ... Actually I think it promotes nonlocal dependencies, because exceptions tend to expose local information to an entirely different abstraction layer. ... (comp.lang.functional)