[Ktechlab-devel] [SVN/r410] Adding logic components calls pure virtual method

P Zoltan zoltan.padrah at gmail.com
Mon Jul 6 19:42:50 UTC 2009


On Sun, 05 Jul 2009 22:51:01 +0200, Link <link at penguindevelopment.org>  
wrote:

> On 05/07/09 17:04, P Zoltan wrote:
>>    Does this still happen, in rev. 412 ?
>>
>>    Tried to reproduce this problem, but after placing practically all
>> components on the circuit, only got a crash due failed assertion, in
>> ElementSet.cpp, line 117.
>>

> It still happens in rev 415, and I've managed to find the problem: I had
> my logic symbols set to rectangular. When that happens, the method
> MultiInputGate::updateSymbolText()
> (electronics/components/multiinputgate.cpp, line 88) calls the method
> m_bInvertedOutput(), which doesn't appear to be defined.
>
> Using distinctive shapes for logic symbols works. :)
>

  Should be fixed in rev.418.

  The problem was that a virtual function has been called from inside of  
the constructor. This way probably the virtual function table has not been  
populated yet, so the result was a call to a pure virtual function.

  Please test it.

   Zoltan





More information about the Ktechlab-devel mailing list