HX fails at anonymous memory mapping (DOSX)
> > HX fails at anonymous memory mapping
>
> [snip]
>
> > // Note: hardcoded size.
> > HANDLE map = CreateFileMapping( 0, NULL, PAGE_READWRITE, 0, 6, NULL );
>
> I don't think that 0 as first parameter will trigger "anonymous" memory
> mapping. Actually, 0 is a valid file handle. Please make yourself familiar
> with the Win32 API!
You're right, I need to pass in INVALID_HANDLE_VALUE. Shame on me. Note to self: Never assume a 0 void * is an invalid value.
Johann
Complete thread:
- HX fails at anonymous memory mapping - myrkraverk, 25.11.2010, 00:44
- HX fails at anonymous memory mapping - Japheth, 25.11.2010, 08:30
- HX fails at anonymous memory mapping - myrkraverk, 25.11.2010, 10:07
- HX fails at anonymous memory mapping - Japheth, 25.11.2010, 08:30