www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/15/11:20:44

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <000701be6eff$91782ac0$c5b01e26@np_home_pc>
From: "Nirmal Prasad" <nprasad AT truept DOT com>
To: <cygwin AT sourceware DOT cygnus DOT com>
Cc: <ifarquha AT ihug DOT co DOT nz>
Subject: Re: This C++ code fails
Date: Mon, 15 Mar 1999 11:19:03 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

>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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019