Disk write in a "for" loop with RwMutex never happens

rikki cattermole rikki at cattermole.co.nz
Mon Aug 29 15:52:31 UTC 2022


After a bunch of playing around I managed to determine that it is as 
simple as the mode.

exists(dbFileName) ? "r+" : "w+"



Will fix it.

Of course you shouldn't delete the file like that method is doing. It 
should probably reinitialize the FILE* descriptor.


More information about the Digitalmars-d-learn mailing list