Cannot create a file when that file already exists?
-
good afternoon, all I tried to debug this app who has memory leak. when I place the "@ERR,hr" on the watch window - which works same as "int test = GetLastError();", I got this meassage "0x000000b7 Cannot create a file when that file already exists", when the app is over this line: BillMaster = new billmstr; if I clicked F5 or F10 it will let me keep going on debug, but what exactly is this messages mean? billmaster is already exists? thanks.
-
good afternoon, all I tried to debug this app who has memory leak. when I place the "@ERR,hr" on the watch window - which works same as "int test = GetLastError();", I got this meassage "0x000000b7 Cannot create a file when that file already exists", when the app is over this line: BillMaster = new billmstr; if I clicked F5 or F10 it will let me keep going on debug, but what exactly is this messages mean? billmaster is already exists? thanks.
The message means you're trying to create a file on disk, when that file already exists. You can set your streams to overwrite files, perhaps that's what you need to do ? Christian Graus - Microsoft MVP - C++