Re: IOCP touching my OVERLAPPED after my Write has completed
- From: "Slava M. Usov" <stripit.slough@xxxxxxx>
- Date: Sat, 19 Aug 2006 12:51:23 +0200
"Alberto Demichelis" <AlbertoDemichelis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:4A9CBAEE-6F48-40F8-AF2A-023277E88CD3@xxxxxxxxxxxxxxxx
[...]
struct IORequest : public OVERLAPPED {
...stuff...
...data...
..
}
Main Thread ---------------------------
IORequest *req = AllocateRequest(); //commits a virtual page and
initializes
stuff
WSASendTo(socket, ..., req,....);
WorkerThread(aka completion routine)----------------------------
if(GQCS(req)) {
FreeRequest(req); //in debug I decommit the memory of this request
}
else
{
....error handling...
}
This seems OK at the first glance, but the devil is in the details. And you
have omitted all the details. I recommend that you post a minimal version of
the application that has the issue.
S
.
- References:
- Re: IOCP touching my OVERLAPPED after my Write has completed
- From: anton bassov
- Re: IOCP touching my OVERLAPPED after my Write has completed
- From: anton bassov
- Re: IOCP touching my OVERLAPPED after my Write has completed
- From: Alberto Demichelis
- Re: IOCP touching my OVERLAPPED after my Write has completed
- From: m
- Re: IOCP touching my OVERLAPPED after my Write has completed
- From: Alberto Demichelis
- Re: IOCP touching my OVERLAPPED after my Write has completed
- Prev by Date: Re: passing additional data when establishing a non-interactive authentication
- Next by Date: Re: IOCP touching my OVERLAPPED after my Write has completed
- Previous by thread: Re: IOCP touching my OVERLAPPED after my Write has completed
- Next by thread: Re: Anti-crack and anti-piracy application protection and licensing solution using code morphing
- Index(es):
Relevant Pages
|
Loading