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

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -