From kde-devel Thu Oct 21 19:43:53 2004 From: David Faure Date: Thu, 21 Oct 2004 19:43:53 +0000 To: kde-devel Subject: Re: Execution replay for Qt/KDE applications Message-Id: <200410212143.55441.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=109838777223028 On Thursday 21 October 2004 21:39, Oliver Oppitz wrote: > On 21 Oct 2004 09:19:46 -0000, wrote: > > >> To guarantee an identical replay one needs reconstruct the exact call > >> graph i.e. insert the invents in the same invocation of the event loop. > > That's only one solution to the problem (which would involve some kind > > of valgrind integration - a rather complex and non-portable solution...). > I do not see any need for valdgrind. There is another (conceptually) > simple solution. Assuming the much simplified event loop looks as follows: > > void EventLoop() { > for(;;) { > QEvent* event; > while((event=getEvent())!=NULL) { > handleEvent(event); > } > doOtherThings(); > } > } There is no such doOtherThings() thing in the Qt event loop. The event loop waits for events. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<