[Qt-interest] QT Application plugin crashing ...

Konrad Rosenbaum konrad at silmor.de
Sun Jan 23 10:37:58 CET 2011


On Sunday 23 January 2011, Bruno Seabra Lima wrote:
> I've tried this ... but it doesnt help
> threds are in the same fork process ..
> i think the only away to achieve this is
> by placing the plugin in separate Process.

Correct. Anything in the same process corrupts the same memory, hence 
crashing the full process.

> I started read the QProcess class, but is going to need to remodel a lot
> of things.

Yes. This is however the only way to get your app and your "plugin" to not 
share the same address space.

You should however be aware that this makes things significantly slower. 
After all you add the overhead of two processes communicating with each 
other.

> Maybe in the future the QtPlugin mechanism should be process spawed ...

It is called a plug-"IN", not a plug-"OUTSIDE"... ;-)

Plugins are supposed to change the application itself - so they must be part 
of the same process.

Otherwise you have mechanisms like QProcess, DBUS, etc.


	Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110123/01db8a30/attachment.bin 


More information about the Qt-interest-old mailing list