Re: [Mingw-w64-public] winpthread and "leak"

2015-12-30 Thread Martin Mitáš
Hello, after a glimpse into its sources I can see that there is InitializeCriticalSection() called in pthread_cond_init(). InitializeCriticalSection() is known to "leak" since Windows Vista: It allocates some kind of debug block which is then never released. If it is not desired behavior,

Re: [Mingw-w64-public] compiling from linux for windows 7

2015-12-30 Thread lh_mouse
Here is a ported, standalone version of nano for Windows. (Special thanks to mingwandroid.) https://github.com/lhmouse/nano-win You can clone that repository then run ./BUILD_IT.sh as it already has ncurses and libgnurx cloned. That nano-win can be compiled statically, with some features (e.g.

Re: [Mingw-w64-public] winpthread and "leak"

2015-12-30 Thread Vincent Torri
Hey it's indeed RtlInitializeCriticalSection() which is called. You should indeed get InitializeCriticalSectionEx() wit GetProcAddress() to get it Vincent Torri On Wed, Dec 30, 2015 at 5:09 PM, Martin Mitáš wrote: > > Hello, > > after a glimpse into its sources I can see that

Re: [Mingw-w64-public] compiling from linux for windows 7

2015-12-30 Thread Ray Donnelly
On 30 Dec 2015 15:39, "lh_mouse" wrote: > > Here is a ported, standalone version of nano for Windows. (Special thanks to mingwandroid.) I only did a small amount of work ages ago, but thanks for the mention. > https://github.com/lhmouse/nano-win > > You can clone that

[Mingw-w64-public] winpthread and "leak"

2015-12-30 Thread Vincent Torri
Hello With my little mem checker, i detect that winpthread does not free all the resources it allocates. Is it normal ? thank you Vincent Torri -- ___ Mingw-w64-public

[Mingw-w64-public] compiling from linux for windows 7

2015-12-30 Thread frank
Ubuntu 14.04, mingw-w64 is installed from the repository. The package to cross compile to windows 7 64bit is in this case nano-2.5.0. Commands used: ./configure --host=x86_64-w64-mingw32 make The configure command exits successfully accepting the host and indicating x86_64-linux-gnu as

Re: [Mingw-w64-public] winpthread and "leak"

2015-12-30 Thread LRN
On 30.12.2015 13:58, Vincent Torri wrote: > Hello > > With my little mem checker, i detect that winpthread does not free all > the resources it allocates. Is it normal ? > Does it leak continuously (more threads or other winpthreads objects -> more leaked memory), or just once? Leaking once is

Re: [Mingw-w64-public] compiling from linux for windows 7

2015-12-30 Thread JonY
On 12/30/2015 21:38, frank wrote: > Ubuntu 14.04, mingw-w64 is installed from the repository. The package to > cross > compile to windows 7 64bit is in this case nano-2.5.0. > > Commands used: > > ./configure --host=x86_64-w64-mingw32 > make > > The configure command exits successfully