[so] tema 3 win - MapViewOfFileEx
Irina Stanescu
ironmissy at gmail.com
Tue May 5 02:56:35 EEST 2009
Am urmatoarea problema : MapViewOfFileEx intoarce tot timpul
ERROR_INVALID_ADDRESS.
Inainte de a mapa fisierul, am creat un FileMapping cu PAGE_READWRITE si am
rezervat memoria folosind VirtualAlloc(NULL, pageSize * virtualPages,
MEM_RESERVE, PAGE_READWRITE).
In handler, am folosit iar VirtualAlloc pentra face MEM_COMMIT pe pagina
unde vreau sa mapez bucata din FileMapping, si apoi am apelat
MapViewOfFileEx() cu flagul FILE_MAP_ALL_ACCESS.
Aveti vreo idee?
Multumesc,
Irina
Offtopic: search-ul prin arhive nu functioneaza tocmai bine. Un search dupa
MapViewOfFileEx nu gaseste nimic, totusi exista intr-o arhiva un topic
similar (care din pacate n-a primit nici un raspuns).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090505/a6c79b4d/attachment.htm>
More information about the so
mailing list