Re: [Mingw-w64-public] hang on exit

2013-12-20 Thread Victor Bombi
after programs hangs this is backtrace. Could be an issue with condition_variable destruction? (gdb) thread apply all bt Thread 2 (Thread 2556.0xa84): #0 0x772a884f in ntdll!DbgBreakPoint () from C:\Windows\system32\ntdll.dll #1 0x772ecdc0 in ntdll!DbgUiRemoteBreakin () from C:\Windows\system3

Re: [Mingw-w64-public] hang on exit

2013-12-18 Thread Victor Bombi
Hi, thanks for answering. > the questionable point here is that I am not sure we should call > destructor code for PROCESS_DETACH too. We should always see in front > a thread-detach, so this call seems to be pretty superflous (and might > be even wrong). I am not doing destructor call neithe

Re: [Mingw-w64-public] hang on exit

2013-12-17 Thread Kai Tietz
ts, so I have made unload function to call destructor > manually. > The problem now is that destructor is called twice and in release mode there > is an exception > > - Original Message - > From: "Victor Bombi" > To: > Sent: Saturday, December 14, 2

Re: [Mingw-w64-public] hang on exit

2013-12-17 Thread Victor Bombi
tructor is called twice and in release mode there is an exception - Original Message - From: "Victor Bombi" To: Sent: Saturday, December 14, 2013 10:23 AM Subject: Re: [Mingw-w64-public] hang on exit > Another thing to try would be to define DllMain but it seems

Re: [Mingw-w64-public] hang on exit

2013-12-16 Thread Victor Bombi
If I call destructor with unload method, destructor is called two times. Something is going wrong as it is working also on windows with other compilers - Original Message - From: "JonY" To: Sent: Saturday, December 14, 2013 1:34 AM Subject: Re: [Mingw-w64-public] ha

Re: [Mingw-w64-public] hang on exit

2013-12-14 Thread Victor Bombi
Another thing to try would be to define DllMain but it seems not to be called. Why? > FreeLibrary does call destructor in this case. (outputs "1 is joinable") > there are several things to try: > > -dont call new to initialize > -dont call FreeLibrary to unload > (4 different cases) > > in some

Re: [Mingw-w64-public] hang on exit

2013-12-14 Thread Victor Bombi
al Message - From: "JonY" To: Sent: Saturday, December 14, 2013 1:34 AM Subject: Re: [Mingw-w64-public] hang on exit > -- > Rapidly troubleshoot problems before they affect your business. Most IT &g

Re: [Mingw-w64-public] hang on exit

2013-12-13 Thread JonY
On 12/14/2013 03:16, Victor Bombi wrote: > Hello, > > I trying to solve a hang on program exit caused by a dll that is only seems > to be happening in my mingw64 compilation. > The program supercollider is very big so I have created a small test case in > > https://github.com/sonoro1234/hangonex

[Mingw-w64-public] hang on exit

2013-12-13 Thread Victor Bombi
Hello, I trying to solve a hang on program exit caused by a dll that is only seems to be happening in my mingw64 compilation. The program supercollider is very big so I have created a small test case in https://github.com/sonoro1234/hangonexit any help would be much appreciated victor -