That's the problem. Despite what the docs say, the completion routine isn't optional. If you set it to NULL, Windows will try and call it which will go bang. My comment about this has been at the bottom of the functions' MSDN page for about two years now. Guess they don't want to, or are unwilling to fix either the docs or the code.
All I'm doing in my file io code is calling ReadFileEx with the overlapped struct set, and no completion routine.
adeyblueMember Since 24 Dec 2008
Offline Last Active Jun 27 2013 09:44 AM
- Group Members
- Active Posts 150
- Profile Views 3,243
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
- Website URL http://www.airesoft.co.uk