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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -