[Interest] QMap crashing in a thread

Thiago Macieira thiago.macieira at intel.com
Thu Mar 13 21:07:00 CET 2014


Em qui 13 mar 2014, às 18:52:32, BOUCARD Olivier escreveu:
> I have this Server class with a QMap<QString, MyClass*> object member.
> This server is a HTTP server class using libhttpserver.
> I have also a member function which is called by libhttpserver when it
> receives a HTTP request. This function is called in a thread created by
> libhttpserver automatically. And when I try call a  function on the QMap
> inside this function I get a Segmentation Fault:

You probably forgot to lock a mutex before accessing that QMap.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list