After reading docs, all seems correct, but actually the file seems not to be mapped. I'll ask that to dm newsgroup, but do you have a 10 lines sample to check that ?
Jean-Claude Wippler wrote:
Riccardo Cohen wrote:
I tried compiling metakit with DigitalMars compiler : http://www.digitalmars.com/ .
[very interesting results]
But i'm afraid there is a problem with memory management. At the end, digitalmars executable takes 38Mb of memory, and MSDEV executable takes 800 kb. I think the whole file is in memory.
This indicates that memory-mapped files are not being used.
Look at ResetFileMapping() in fileio.cpp and make sure the CreateFileMapping and MapViewOfFile calls return good values. If not, MK reverts to fully mem-resident reading of data, which grows to consume memory until the next Commit() or Rollback().
This is the modifications I made for DigitalMars :
- fileio.cpp : I removed _O_NOINHERIT ifdef __DMC__
- string.cpp : I added __DMC__ for #define strcasecmp stricmp
- win/config.h : I added __DMC__ with _MSC_VER >= 1000 for memory mapped file
Thanks, once you have the memory issue fixed, I'd like to integrate all changes.
-jcw
_______________________________________________ metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
-- Riccardo Cohen
Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
_______________________________________________ metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
