Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

HX and memory mapped writable files. (DOSX)

posted by myrkraverk(R), 23.11.2010, 01:04

Hi all,

I just tested memory mapping to write a file with HX and the file is either not created or not written to (I don't recall) when the map is not explicitly closed by the application. Is that a bug in HX?

More explicitly, using CreateFile(), CreateFileMapping() and MapViewOfFile() for writing, the file isn't written without
UnmapViewOfFile( map );
CloseHandle( mapping );
CloseHandle( f );

I just added all three since and so I do not know if only one or all three are needed.

Wine creates the file without this explicit closing. I did not test on NT itself.



Complete thread:

Back to the forum
Board view  Mix view
15297 Postings in 1378 Threads, 254 registered users, 14 users online (0 registered, 14 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum