[Kde-pim] KMail crashes when message box is shown on startup

Thomas McGuire thomas.mcguire at gmx.net
Fri Jun 15 18:32:27 BST 2007


Hi,

> > After a quick look at kmkernel.cpp I suggest to delay the instantiation
> > of MailTransport::TransportManager by moving the connects from
> > KMKernel's c'tor to the init() method. See the attached (and completely
> > untested) patch.
>
> Thanks for answering. The patch works, besides the fact the the message box
> pops up behind the mainwindow.
>
> However, there are still other message boxes (don't remember which ones,
> but I've definitaly seen some) having the same problem. Finding each of
> those message boxes and fixing them is not easily possible.
>
> What we really need to do is to fix the KUniqueApplication thing: Only
> create the new instance just before qApp->exec() in main.cpp, not when the
> event loop is entered (which can happen before qApp->exec() because of
> those message boxes).
> Still, I have no idea how to do that.
OK, attached a new patch, which will delay the call to newInstance until just 
before the main event loop if necessary. It is probably still not the nicest 
solution, but it should work in all situations.

If nobody objects or has a better idea, I'll commit that soon.

Regards,
Thomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: delay-instance-creation.diff
Type: text/x-diff
Size: 1777 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070615/2315c071/attachment.diff>
-------------- next part --------------
_______________________________________________
kde-pim mailing list
kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/


More information about the kde-pim mailing list