This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: pthreads works, sorta


"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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]