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

Ingo Klöcker kloecker at kde.org
Mon Jun 18 20:06:14 BST 2007


On Friday 15 June 2007 19:32, Thomas McGuire wrote:
> > > 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.

It doesn't look pretty, but if it works then I guess it should be 
committed. Thanks for looking into this.

Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070618/70328f65/attachment.sig>
-------------- 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