Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Apr : App can't see file that app created D7

www.cryer.info
Managed Newsgroup Archive

App can't see file that app created D7

Subject:App can't see file that app created D7
Posted by:"Jon Jacobs" (jon.jaco..@snelling.com)
Date:11 Apr 2007 05:42:06

My app receives data via TCP, writes it out as a zip file on a server, then unzips the contents (a text file) to another folder on the server, deletes the original zip file.

Then it loads the text file to memory. Oops, it can't. It can't see the file it just created. I set a breakpoint just before that point. I CAN see the file with Windows explorer (from the same machine from which I run the app). I CAN open the text file with Notepad. I single step to where I load the file to a TMemoryStream. I get an exception that the file can't be found. The file name and path is exactly what I see with Windows explorer.

What can I do to make the file visible to the app?

Jon

Replies:

www.cryer.info
Managed Newsgroup Archive