This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: pthreads works, sorta
- To: "Robert Collins" <robert dot collins at itdomain dot com dot au>, "Greg Smith" <gsmith at nc dot rr dot com>, <cygwin at cygwin dot com>
- Subject: Re: pthreads works, sorta
- From: "Dmitry Timoshkov" <dmitry at baikal dot ru>
- Date: Wed, 27 Jun 2001 14:51:13 +0800
- References: <EA18B9FA0FE4194AA2B4CDB91F73C0EF7A0C@itdomain002.itdomain.net.au>
"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/