PDA

View Full Version : QFileDialog in modeless QDialog and mutex error



enno
7th April 2010, 17:16
I display several QImages in several modeless QDialogs, each with a Save button. In the save routine I invoke
QFileDialog::getSaveFileName(...)
which crashes with

Program received signal SIGSEGV, Segmentation fault.
0x00002afd7a378adc in QMutex::lock (this=0x61e030) at thread/qmutex.cpp:152
152 thread/qmutex.cpp: No such file or directory.
in thread/qmutex.cpp

I am unaware that I am using threads or am I?
What do I do wrong?
Appreciate any help.

Enno

borisbn
7th April 2010, 18:45
There are no telepathists at this forum.
Show your invalid code

enno
7th April 2010, 20:49
Rather than bother you all with sizeable code I did some thinking unlike some novices.
Modeless dialogs appear to use threads (a main use for mutexes).
Avoiding the static dialog and exec'ing a QFileDialog as member of the modelss dialog avoids the conflict and works fine.

Enno