[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flaw in Win32 mmap() like function

Hi, I worked with Win32 mmap() like function. All is fine except this
ghastly flaw. Win 32
CreateFileMapping function does not allow you to grow the file size.

On UNIX, you can call ftruncate(fd, len) to increase your file size and
then mmap() the newly
created region. On Win 32, you can not. You have to first unmap all the
view and close
the file map object before you can extend the file size, create a new
file map and new views
after. It creates a problem when you are working on a file that need to

Does anyone have a solution for this problem?

Daini Xie
Munica Tech Support  Get FormPAL Web Form CGI Script Creator
dainix@munica.com  Get DataDiplomat Web Database CGI Script Creator
http://www.munica.com  Get Web Calendar, News Archive, ClubMaster and
Discussion Forum

To unsubscribe, e-mail: penguinplay-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: penguinplay-help@sunsite.auc.dk