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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File not found error 1

Status
Not open for further replies.

BRADENSTOKE

Programmer
Jan 2, 2003
24
GB
I have written an application to ftp files from a Unix server (using NMFTP).
When I run the app. from a PC which does not have Delphi installed I get "File not found" on startup.
If I hit the return key the app. runs OK.
There is no indication what file is "not found".
The program works fine, but the initial error message is puzzling, any ideas ?
 
Sure that IE (at least 4.0) is installed?

HTH
TonHu
 
Yes IE 5.5 on both PC's.
The prog is written in Delphi 4 Professional.
 
maybe there is an dll file missed. try checking which line is causing the error.that usually gets you closer to the solution. [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Thanks BobbaFet,
Yes it probably is a dll but the fault only occurs on a PC without Delphi, so I cannot debug it when it fails.
Other programs run OK. I will just have to laboriously go through dlls in Delphi, although I have never had to ship dll's for a simple exe before. Frank.
 
Can you make a version of the program that will let you showmessages as you pass various steps in your .DPR? That way you can narrow the problem down. "The difference between practice and theory is that in theory, there is no difference between practice and theory" - Somebody's tag line I stole
 
Thanks bbegley.
I used showmessage in Form.Create

The problem was :
DirectoryListBox1.Directory := 'tmp';
should be
DirectoryListBox1.Directory := 'c:\tmp';
I thought that DriveComboBox1.Drive := 'c'; would have taken care of that, but on closer inspection I see that I did not include the lines -
FileListBox1.Directory := DirectoryListBox1.Directory;
etc.

If only the error message was "tmp not found" instead of "file not found" !!!
Thanks again,
Frank. Frank.
 
I would reccomend using GetEnv('tmp') instead of 'c:\tmp' as not all users of your app have a c: drive, or no \tmp dir in there [bomb]

HTH
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top