[Qt-interest] Qt and C++ exceptions
Maxim Egorov
m_v_egorov at mail.ru
Sat May 23 20:04:49 CEST 2009
I think you're mistaken. Yes, the implementation of exceptions in MSVC6 based on SEH mechanism, or in your terms, Win32 exceptions. It's true. But this is just a realization. Speaking about the full support of exceptions, I mean the correct processing of construction like try / catch by the compiler in accordance with the C++ standard. And the C++ compliler in MSVC6 did it. Exceptions can cross dll boundaries. You may have linked to run-time C++ library, both static and shared (msvcrt.dll). If you choose to use msvcrt.dll, you still can handle exceptions of type std:: exception, and derived from it (even if it had been throwed in another dll) by the try / catch construction. In any case, the compiler used in MSVC6 is out of date and I think there are not many developers using it.
P.S.
Sorry for my English.
> > MSVC6 fully supported exceptions. The native support for exceptions
> had been
> > introduced since version 4.0. Maybe he has problems with the support
> of
> > templates, but does not support exceptions. I used MSVC6 about 4
> years, so I
> > think that I can assert this.
> >
> > >
> > > > So I think it would
> > > > be wise to consider support for exceptions to be one of the most
> > > > important tasks.
> > >
> MSVC supported Win32 exceptions not C++ standard exceptions, and the
> exceptions did not pass DLL runtime different boundaries correctly...
>
> Scott
>
More information about the Qt-interest-old
mailing list