c++ - Virtual Alloc failing with code 87 - Invalid parameter -
following code working on pcs, while on other giving error 87 - invalid parameter, can wrong?
filesize = dwdllsize; buffer = virtualalloc ( null, filesize, mem_commit | mem_reserve, page_readwrite ); if ( !buffer ) { qmessagebox::warning(null,qstring("virtualalloc failed!"),qstring::number(getlasterror())); return -1; }
i'm checking size 0, , file not bigger ~200kb.
Comments
Post a Comment