From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nirmal Prasad" To: Cc: Subject: Re: This C++ code fails Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: <000701be6eff$91782ac0$c5b01e26@np_home_pc> X-SW-Source: 1999-03n/msg00482.html Message-ID: <19990331194500.H2RouxOq1hRMh-fIWsK1lz47_UlkSAQMICa336KIkkA@z> >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