Exception handling
Fergus Henderson
fjh@cs.mu.OZ.AU
Tue Aug 27 08:19:00 GMT 2002
On 26-Aug-2002, Serguei I. Ivantsov <admin@gsc-game.kiev.ua> wrote:
> >GCC does not catch hardware exceptions like divide by 0 and other traps.
> >Look at signal(3) for information on how to trap these on UNIX's.
>
> What can I do if I want to execute some function from dll (server plugin)
> safely?
...
> Is it possible, like in M$ ?
If you really want safety, then you need to use a different programming
language, e.g. Java, C#, or Haskell, for your plug-ins. Current C++
implementations ("M$" included) do not support safe execution of
untrusted code.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh > | -- the last words of T. S. Garp.
More information about the Gcc
mailing list