Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » FileMapping::Create is broken on Windows [BUG]
FileMapping::Create is broken on Windows [BUG] [message #10410] Sat, 07 July 2007 00:17 Go to previous message
benoitc is currently offline  benoitc
Messages: 17
Registered: July 2007
Location: Nice (France)
Promising Member
Hello,

I'm using the latest 705-dev3, and FileMapping::Create seems to be broken for at least two reasons.
- line 1255: hmap = CreateFileMapping(hfile, NULL, PAGE_READWRITE, 0, 0, NULL);
That API failed and return 0 because it should not be called with a null size.
- line 1290 : rawbase = (byte *)MapViewOfFile(hmap, /*write ? FILE_MAP_WRITE*/ : FILE_MAP_READ,
For some reason, the write flag is commented, which prevent any write access to the file.

After fixing these two bugs, the API seems to work fine.

Regards,
Benoit

[Updated on: Thu, 11 October 2007 10:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: LOG_DBG does not work correctly [BUG]
Next Topic: Remote folder/ remote printer dialogs
Goto Forum:
  


Current Time: Thu May 02 11:28:00 CEST 2024

Total time taken to generate the page: 0.03169 seconds