At 12:14 PM 4/10/03 +0200,
[hidden email] wrote:
>Hi guys,
>I'm having strange problems and I would like to have your opinion:
>
>is there something wrong in throwing an Exception in a constructor?
Hmm, not that I know of. A rapid Google search brought out
http://www.gotw.ca/publications/mill13.htmfor more depth.
>I don't know why, but throwing exceptions during construction generates
>some strange Access Violation error elsewhere...
We might have had something of the sort, but curiously enough, only on one
compiler (I don't remember which one---maybe Borland) and only when the
constructors were declared inline (moving them into the .cpp solved the
thing). But I don't know whether your case is similar...
Bye,
Luigi