[Qt-interest] QScriptEngine Function Call Infinite Loop

Ori Lahav vbcrlf at gmail.com
Wed Oct 20 08:44:31 CEST 2010


Hello QUsers,

I have a scripting option in my program, which runs on a separate thread
(other than the GUI):
_object.property(function).call(_object, arguments);
The problem is, if ther user enters a code with an infinite loop (or just
too long running code) I have to stop it.
(I saw there is an abortEvaluation function, but it is only available for
QScriptEngine::evaluate(), and I'm using 'call')

Thanks!
Ori.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101020/92386867/attachment.html 


More information about the Qt-interest-old mailing list