Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, April 2007
QPluginLoader::unload() suspension


Message 1 in thread

Hello!

I have some plugin which works with http using QHttp. When I try to 
unload it, programm suspends forever.
I have stop debug and saw call stack:

     ntdll.dll!7c90eb94()    
     ntdll.dll!7c90e9c0()    
     kernel32.dll!7c8025db()    
 >    QtCored4.dll!QBasicAtomic::testAndSetAcquire(int 
expected=2088773128, int newval=0)  Line 96 + 0x18    C++
     kernel32.dll!7c8399f3()    
     kernel32.dll!7c802542()    
     QtCored4.dll!QThread::wait(unsigned long time=4294967295)  Line 393 
+ 0x11    C++
     QtNetworkd4.dll!QHostInfoAgent::cleanup()  Line 129    C++
     QtNetworkd4.dll!QHostInfoAgent::~QHostInfoAgent()  Line 89 + 
0x34    C++
     QtNetworkd4.dll!QHostInfoAgent::`scalar deleting destructor'()  + 
0xf    C++
     
QtNetworkd4.dll!QGlobalStatic<QHostInfoAgent>::~QGlobalStatic<QHostInfoAgent>()  
Line 1332 + 0x21    C++
     QtNetworkd4.dll!$E2()  + 0xd    C++
     QtNetworkd4.dll!_CRT_INIT(void * hDllHandle=0x64000000, unsigned 
long dwReason=0, void * lpreserved=0x00000000)  Line 234    C
     QtNetworkd4.dll!_DllMainCRTStartup(void * hDllHandle=0x64000000, 
unsigned long dwReason=0, void * lpreserved=0x00000000)  Line 288 + 
0x11    C
     ntdll.dll!7c9011a7()    
     ntdll.dll!7c91e6f4()    
     msvcr71d.dll!_free_base(void * pBlock=0x00000000)  Line 103    C
     msvcr71d.dll!_free_dbg_lk(void * pUserData=, int nBlockUse=)  Line 
1207 + 0x9    C

any ideas how to fix?

Anton I Alferov.


--
 [ signature omitted ] 

Message 2 in thread

Anton I Alferov пишет:
> Hello!
>
> I have some plugin which works with http using QHttp. When I try to 
> unload it, programm suspends forever.
> I have stop debug and saw call stack:
>
>     ntdll.dll!7c90eb94()        ntdll.dll!7c90e9c0()        
> kernel32.dll!7c8025db()    >    
> QtCored4.dll!QBasicAtomic::testAndSetAcquire(int expected=2088773128, 
> int newval=0)  Line 96 + 0x18    C++
>     kernel32.dll!7c8399f3()        kernel32.dll!7c802542()        
> QtCored4.dll!QThread::wait(unsigned long time=4294967295)  Line 393 + 
> 0x11    C++
>     QtNetworkd4.dll!QHostInfoAgent::cleanup()  Line 129    C++
>     QtNetworkd4.dll!QHostInfoAgent::~QHostInfoAgent()  Line 89 + 
> 0x34    C++
>     QtNetworkd4.dll!QHostInfoAgent::`scalar deleting destructor'()  + 
> 0xf    C++
>     
> QtNetworkd4.dll!QGlobalStatic<QHostInfoAgent>::~QGlobalStatic<QHostInfoAgent>()  
> Line 1332 + 0x21    C++
>     QtNetworkd4.dll!$E2()  + 0xd    C++
>     QtNetworkd4.dll!_CRT_INIT(void * hDllHandle=0x64000000, unsigned 
> long dwReason=0, void * lpreserved=0x00000000)  Line 234    C
>     QtNetworkd4.dll!_DllMainCRTStartup(void * hDllHandle=0x64000000, 
> unsigned long dwReason=0, void * lpreserved=0x00000000)  Line 288 + 
> 0x11    C
>     ntdll.dll!7c9011a7()        ntdll.dll!7c91e6f4()        
> msvcr71d.dll!_free_base(void * pBlock=0x00000000)  Line 103    C
>     msvcr71d.dll!_free_dbg_lk(void * pUserData=, int nBlockUse=)  Line 
> 1207 + 0x9    C
>
> any ideas how to fix?
>
>
So, no ideas?

--
 [ signature omitted ] 

Message 3 in thread

Hi,

> So, no ideas?

Or so it seems.

You could try providing additional information, such as :
* version of Qt
* compiler
* OS
* minimal, compilable example code

--
 [ signature omitted ] 

Message 4 in thread

Dimitri  wrote:
> Hi,
>
>> So, no ideas?
>
> Or so it seems.
>
> You could try providing additional information, such as :
> * version of Qt
> * compiler
> * OS
> * minimal, compilable example code
>
>
>
Qt 4.2.3, win32-msvc, win XP Pro SP 2. Minimal example in attachment. 
Run "app", push "send", push "close" and push "unload". Application 
suspends.
All functional in xmltranceiver lib. "Plugin" - just plugin wrapper.

Anton I Alferov


Attachment:

Attachment: 20070404_132300.rar
Description: application/rar-compressed