[Qt-interest] Re :: Error in OpenMp with QThread
satyanarayana reddy
satyajanga at gmail.com
Fri Aug 6 13:20:19 CEST 2010
hi,
I am running a Qt application in which I have used openMP to parallelise a
for loop. Its working fine with both windows and Ubuntu..
Now I need to show and update the progress of the loop calculation. So I am
using QThread. and keeping the calculation part in run() function of
QThread. Its working fine with Ubuntu but in WinXp its giving a problem.
Help me with this
The application is crashing at this line of code::
omp_set_num_threads (2);
Its giving the following error::
Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 2672.0x940]
0x6360227c in omp_set_num_threads ()
from d:\RadVista\RadVistaBuild\bin\libgomp-1.dll
(gdb) bt
#0 0x6360227c in omp_set_num_threads ()
from d:\RadVista\RadVistaBuild\bin\libgomp-1.dll
#1 0x160e7269 in KTrans::KTranRegistration::ktransRegistration (
this=0x2577c158)
at D:\RadVista\RadVista\src\plugins\ktrans\ktranregistration.cpp:285
#2 0x161281a0 in KTrans::KTransPluginThread::run (this=0xd4efae0)
at D:\RadVista\RadVista\src\plugins\ktrans\ktranspluginthread.cpp:35
#3 0x6a1151b5 in QThreadPrivate::start (arg=0xd4efae0)
at thread\qthread_win.cpp:313
#4 0x77c3a3b0 in msvcrt!_endthreadex () from C:\WINDOWS\system32\msvcrt.dll
#5 0x7c80b699 in KERNEL32!GetModuleFileNameA ()
from C:\WINDOWS\system32\kernel32.dll
#6 0x00000000 in ?? ()
Thanx and Regards,
Satya.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100806/4e827efc/attachment.html
More information about the Qt-interest-old
mailing list