Re: _kbhit & memory leak in select()

2006-02-10 Thread Michiel De Hoon
> On Feb 5 13:17, Michiel De Hoon wrote: > > 1) Where is the select_record deleted? The select_stuff variable sel will be > > gone after we exit cygwin_select, and with it the pointer to the > > select_record we allocated in select_read. > > In the select_stuff destructor. Ha. You're right. I gue

Re: _kbhit & memory leak in select()

2006-02-05 Thread Christopher Faylor
On Sun, Feb 05, 2006 at 01:17:33PM -0500, Michiel De Hoon wrote: >For one of my software projects, I need the _kbhit function to check the >console for keyboard input. While this function is present in msvcrt.dll, it >is missing from cygwin1.dll, so I started writing this function myself (I'm >hopi

Re: _kbhit & memory leak in select()

2006-02-05 Thread Corinna Vinschen
On Feb 5 13:17, Michiel De Hoon wrote: > 1) Where is the select_record deleted? The select_stuff variable sel will be > gone after we exit cygwin_select, and with it the pointer to the > select_record we allocated in select_read. In the select_stuff destructor. Corinna -- Corinna Vinschen

_kbhit & memory leak in select()

2006-02-05 Thread Michiel De Hoon
Hi everybody, For one of my software projects, I need the _kbhit function to check the console for keyboard input. While this function is present in msvcrt.dll, it is missing from cygwin1.dll, so I started writing this function myself (I'm hoping to contribute it to Cygwin if it works well). Howe