[so] tema 3 win - MapViewOfFileEx
Andrei Bucur
andrei.bucur at gmail.com
Tue May 5 17:04:11 EEST 2009
Imi cer scuze ca nu am citit cu atentie ce a zis Mircea... Ignore my post
:).
2009/5/5 Andrei Bucur <andrei.bucur at gmail.com>
> Incearca sa dai VirtualFree pe pagina inainte sa mapezi cu MapViewOfFileEx.
> Nu cred ca merge mapat un fisier peste memorie alocata deja.
>
> 2009/5/5 Irina Stanescu <ironmissy at gmail.com>
>
>> Salut,
>>
>> Tot nu am rezolvat problema.
>>
>> Din MSDN<http://msdn.microsoft.com/en-us/library/aa366763%28VS.85%29.aspx>pentru MapViewOfFileEx:
>> *lpBaseAddress* [in, optional]
>>
>> A pointer to the memory address in the calling process address space where
>> mapping begins. This must be a multiple of the system's memory allocation
>> granularity, or the function fails. To determine the memory allocation
>> granularity of the system, use the *GetSystemInfo* function. If there is
>> not enough address space at the specified address, the function fails.
>> Se poate ca asta sa fie motivul pentru pentru care nu merge functia,
>> pentru ca noi lucram cu o valoare conventional aleasa pentru pageSize, deci
>> adresa la care doresc eu sa se faca maparea nu o sa fie neaparat multiplu de
>> dimensiunea paginii in realitate.
>>
>> Deci nu e tocmai potrivita functia MapViewOfFileEx.
>> Alternativa e sa mapez cu MapVIewOfFile tot ram-ul in alta parte si sa fac
>> sincronizarea de mana, da mi se pare total nefireasca abordarea asta.
>> Gresesc undeva?
>>
>> Irina
>>
>> _______________________________________________
>> so mailing list
>> so at cursuri.cs.pub.ro
>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090505/00bc29e6/attachment.htm>
More information about the so
mailing list