[Mingw-w64-public] Bug: TlsGetValue is called after TlsFree when compiled with -static

2013-11-11 Thread Sergei Antonov
Hello! I'm using Mingw-w64 3.0 release compiled with gcc-4.7.2. This is my test pogram: === #include windows.h #include tchar.h struct S { S() { OutputDebugString(test ctor); } ~S() { OutputDebugString(test dtor); } }; int APIENTRY

Re: [Mingw-w64-public] semaphore wrappers

2013-11-11 Thread Edscott Wilson
2013/11/9 dw limegreenso...@yahoo.com handle = CreateSemaphore(NULL, (LONG) value, (LONG) 1024, name); Why 1024? Is this the same as SEM_VALUE_MAX? Probably not the same. I'm now changing it to SEM_VALUE_MAX. if (handle == NULL){ LPTSTR buffer; errno =

[Mingw-w64-public] Coverity

2013-11-11 Thread mity
Hi. I'm using the Coverity scan [1] for static source analyzes for mCtrl project [2] on a regular basis before each release. I've recently got some false positives resulting from each usage of the macro InlineIsEqualGUID from mingw-w64 system headers. It actually results in reports similar to

Re: [Mingw-w64-public] Bug: TlsGetValue is called after TlsFree when compiled with -static

2013-11-11 Thread Kai Tietz
Hello Sergei, 2013/11/11 Sergei Antonov sap...@gmail.com: Hello! I'm using Mingw-w64 3.0 release compiled with gcc-4.7.2. This is my test pogram: === #include windows.h #include tchar.h struct S { S() { OutputDebugString(test ctor); }