[so] tema 3 linux - MapViewOfFileEx

Bogdan Tenea tenea.bogdan at gmail.com
Tue May 13 00:36:14 EEST 2008


In incercarea de a lua tema3 de pe linux si a o muta pe windows cu cat mai
putine modificari am gasit o functie care face mapview of file la o anumita
adresa ( MapViewOfFileEx(mfd_ram, FILE_MAP_READ, 0, i*ps, ps, pstart) ) insa
imi retrneaza mereu eroarea ERROR_INVALID_ADDRESS 487 0x1E7  Attempt to
access invalid address.

Mentionez ca adresa la care incerc sa fac maparea am obtinut-o in urma unui
VirtualAlloc(0, vp*ps, MEM_RESERVE, PAGE_READWRITE | PAGE_GUARD)) deci e
valida

Functia am luat-o de aici:
http://msdn.microsoft.com/en-us/library/aa366763(VS.85).aspx<http://msdn.microsoft.com/en-us/library/aa366763%28VS.85%29.aspx>

Help :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080513/c5c77140/attachment.htm 


More information about the so mailing list