Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new TFileStream, FileClose and delete TFileStream

Status
Not open for further replies.

finnmike

Programmer
Oct 17, 2001
50
DE
Dear guys (thats both boys and girls!),

quite a while ago I had a problem with dead Files on my machine.
It helped to do "FileClose(MyFileStream->Handle)" before I did the
"delete myFilestream".

That worked under win98, win2k.
Now I tested the program with memory sleuth, and this is an error, as the "delete" won't find the filestream object anymore, but still the executables run.
It also runs with XP home.
BUT, now I have BCB5 running on XP home, and the exe stumbles over this "delete" in DEBUG mode, and only here.


Is this a case of properties? (e.g. do I need to set for pentium instructuion set or so? currently it is x486).

I would appreciate some help!

Best regards
Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top