[Ktechlab-devel] Capacitor/Resistor values lockup

Lyndon Evans ldeevans at hotmail.com
Fri Apr 7 12:23:28 UTC 2006


Hi,
This seems to be a race condition in doublespin.cpp, where
changing the value of the component, results in multiple messages
being sent. The lockup occurs when the value changes to one
with a decimal point (ie from 200uF to 100.0uF), resulting in lots
of messages, and corresponding updates to the control.

Putting a usleep(100) in the "checkIfChanged" function stops the lockup.
e.g....

void DoubleSpinBox::checkIfChanged()
{
        double newValue = value();

        usleep(100);

        if ( m_lastEmittedValue == newValue )
                return;

        m_lastEmittedValue = newValue;
        emit valueChanged( m_lastEmittedValue );
}

Cheers,
Lexx.


>From: Jochen Georges <jochengeorges at yahoo.de>
>Reply-To: jochengeorges at yahoo.de
>To: ktechlab-devel at lists.sourceforge.net
>Subject: Re: [Ktechlab-devel] Capacitor/Resistor values lockup
>Date: Sun, 2 Apr 2006 19:24:31 +0000
>
>Am Sonntag, 2. April 2006 15:05 schrieb Lyndon Evans:
> > Hi folks,
> > I have installed V0.3, both from RPM for Fedora Core 4 and compiled from
> > source.
> > Setting a capacitor value to <=100uF or (not so importantly) a resistor
> > value to <=100uOhm
> > (u=micro) locks up the whole application.
> > I hope there is a fix for this, for this most excellect program.
>
>Hi,
>on the 13.03.2006 I wrote the same, but I got no answer.
>I wonder, Ktechlab is a cool program, but the mailnglist is so quiet.
>
>Beste Grüße
>Jochen
>
>### the mail from 13.03.2006 :
>
>Hello,
>
>while trying to set the capacity of a capacitor to
>10 * 0.000 001 Farad
>ktechlab crashes.
>This is reproducible.
>
>
>while trying to set the resistance of a resostor to
>10 * 0.000 001 Ohm
>ktechlab crashes.
>This is reproducible.
>
>Beste Grüße
>Jochen
>
>
>
>
>
>___________________________________________________________
>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live 
>webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
>_______________________________________________
>Ktechlab-devel mailing list
>Ktechlab-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/ktechlab-devel

_________________________________________________________________
Are you using the latest version of MSN Messenger? Download MSN Messenger 
7.5 today! http://join.msn.com/messenger/overview





More information about the Ktechlab-devel mailing list