This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: This C++ code fails
- To: <cygwin@sourceware.cygnus.com>
- Subject: Re: This C++ code fails
- From: "Nirmal Prasad" <nprasad@truept.com>
- Date: Mon, 15 Mar 1999 11:19:03 -0500
- Cc: <ifarquha@ihug.co.nz>
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
>The Test2 class is using virtual base classes, unlike the Test1 class. This
>difference causes an exception to be thrown when the pointer to member
isused.
hi there,
well i havent taken a serious look at it .. but here's what i did and the
results are interesting ......
Change the declaration for Test2 as follows:-
class Test2: virtual public Base2
i.e. drop Virtual public Base 1 and let the remainder of the program be the
same... The CPU usage JUMPS TO 100% and the program keeps leaking memory.. i
checked the disassembly in gdb and there is a jmp that keeps happening at
that point ... Anyway probably i'll take a serious look at it later....
Something going wrong i guess somewhere in codegen.
Regards
Nirmal Prasad R.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com