[Qt-interest] QtScript segfault on C++ signal (dis)connection/firing

Sean M. Pappalardo pegasus at renegadetech.com
Wed Jan 14 19:25:16 CET 2009


Hello again.

Kent Hansen wrote:
> Hi Sean,
> Any chance that the same script engine is being accessed from multiple
> threads? 

That's actually almost certain. I'm pretty sure the emitting object is
in a different thread than where the engine was instantiated.

> QtScript is not thread-safe, so be sure that there's only a
> single thread evaluating code (unless you've explicitly added a
> synchronization mechanism),

A single thread ever or one thread at a time?

> and make sure that all connections are
> queued.

Signal connections? Can you point me to info on how to do that? (I'm
relatively new to C++.)

Thank you again very much for your time! This information will help alot!

Sincerely,
Sean M. Pappalardo
"D.J. Pegasus"
http://www.mixxx.org/

<<--------------------------------------------------------------------------------->>
This E-Mail message has been scanned for viruses
and cleared by >>SmartMail<< from Smarter Technology, Inc.
<<--------------------------------------------------------------------------------->>



More information about the Qt-interest-old mailing list