[Interest] Crash in QSerialPort when closing?

Reinhardt Behm rbehm at hushmail.com
Thu Oct 30 01:44:16 CET 2014


This is the more complicated way.

Just use deleterLater(). It has the same effect. After the next round the 
eventloop the object will be deleted.

-- 
Best Regards

Reinhardt Behm

mailto: rbehm at hushmail.com
Skype: reinhardt.behm


On Thursday 30 October 2014 11:03:22 Tony Rietwyk wrote:
> Hi Sean,
> 
>  
> 
> Closing a device within a read slot sounds dodgy anyway.  In these cases, I
> usually do QTimer::singleShot(0, ...) and do the close in that slot. 
> 
>  
> 
> Regards,
> 
>  
> 
> Tony




More information about the Interest mailing list