pthreads works, sorta

Dmitry Timoshkov dmitry@baikal.ru
Tue Jun 26 22:51:00 GMT 2001


"Robert Collins" <robert.collins@itdomain.com.au> wrote:

[skipped]

> What does all this mean? We need to catch invalid memroy access, and
> ValidQuery was supplied by Chris as a tool to do that.

In a multithreaded environment VirtualQuery, IsBad* and similar approaches
are wrong. It can't be guaranteed that after a successful test that memory
will be still accessable.

> So the question for all the win32 gurus:
> 
> Whats a fast way to catch (in-cygwin-dll) invalid memory access's. Can
> we use structed exception handling there? Or...?

Using SEH is probably a way to go.
--
Dmitry.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list