This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Exception handling


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]