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, 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.


Johann

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 66 users online (1 registered, 65 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum