From: | Henrik Munther |
Date: | 1 Sep 2000 at 22:35:09 |
Subject: | Re: AMIOPEN: vpcc as a C++ compiler |
On 01-Sep-00, Jesse McClusky wrote:
> I can actually explain why (I think) this is happening.
> It's probably because the "Foo t;" causes it to be
> allocated from the stack, but when it falls out-of-scope
> and _delete is called, /sys/kn/mem/free () is trying to
> free a memory-alloc entry that doesn't exist (part of
> the stack). This is a bug in the code-generation portion
> of the compiler.
No, the exception occurs when intializing the object, not when delete is
called. (not evident from the example but insert a printf() after the
initialization, and you will get no output...)
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html