| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Store on FTP tool version 1.5.0.0 |
| User783 Posts: 15 Member Since: 03/27/01 |
posted April 18, 2001 2:36 PM I've just downloaded the new FTP and DartSock tools, and am having a problem with Store. The call is FtpCommon.Store sRemoteFileName, sParam2 where sParam2 contains the data to be stored in the file sRemoteFileName. In this case, sParam2 contains a single line which happens to end with a space, a carriage return and a line feed. If I remove these then the data is saved correctly, if not I get "Error 257: An Error occured while performing a File I/O operation". It works with my previous version 1.0.43.0. Is this a known bug? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 18, 2001 2:54 PM Please give an example of text that causes the problem. I tried several things here and was not able to duplicate. Thanks, Tony Priest Dart Tech Support |
| User783 Posts: 15 Member Since: 03/27/01 |
posted April 18, 2001 4:23 PM I'm sending a crontab entry and storing it temporarily in a file. It's of the form: * * * * * filename The program I'm currently repsonsible for goes back to PowerTCP days, and I've been upgrading to the new tools whilst trying to minimise other changes. It happens that the entries are separated by a space and carriage return linefeed characters, so the last entry has one as well. I think it is the last line which causes the problem. The particular text I happen to be using at the moment is: 0 1 * * * /export/home/lynne/dir12.sh<Asc(32)><Asc(13)><Asc(10)> The filename happens to be .wxcrontab.dat |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 18, 2001 5:18 PM That was a good one! The last change we made involved throwing an error if the data param was a file and it was locked. The test we used looked to see if the file existed. In your case the text you want to send contains "*" which is invalid in a filename and our test treated this the same as a lock. I made a fix to the FTP dll and uploaded an update, which is available here: http://www.dart.com/downloads/update.exe It will be available in a while on the main site: http://www.dart.com/downloads/update.exe Thanks for your patience! Tony Priest Dart Tech Support |
| User783 Posts: 15 Member Since: 03/27/01 |
posted April 18, 2001 5:24 PM Wow! I'm impressed! Thanks for your speedy response! Lynne |
| User783 Posts: 15 Member Since: 03/27/01 |
posted April 18, 2001 6:01 PM ..Oops. It seems I was prematurely enthusiastic.. I've just downloaded the update, but it doesn't seem to have made any difference... I've checked windows/system - the dates are all today's and the dartftp.dll version is 1.5.0.2. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 18, 2001 7:09 PM Are you sure you are using the exact same code that you posted before? It worked fine for me. Are you sure that the setup did not ask you to reboot and you did not do it? Thanks, Tony |
| User783 Posts: 15 Member Since: 03/27/01 |
posted April 18, 2001 7:35 PM Yes I am using the exact same test. No, the setup did not ask me to reboot. Incidentally, in establishing that it was the new ftp dll,I was able to just swap the new dartftp.dll for the old one in windows\system without needing to reboot. In fact, I have just replaced your new dartftp.dll (V1.5.0.2) with the old (V1.0.43.0) one, and everything is fine. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 18, 2001 7:43 PM I'm sorry, but I am unable to confirm this. Please post the EXACT call that you make to store and tell me EXACTLY what happens when you call it. Here's what I did that worked: Ftp1.Store "testfile.txt", "0 1 * * * /export/home/lynne/dir12.sh<Asc(32)><Asc(13)><Asc(10)>" I did this on a Windows 2000 machine. Tony |
| User783 Posts: 15 Member Since: 03/27/01 |
posted April 18, 2001 8:39 PM The details are as in my previous messages. The Error event fires immediately. The Dart Error code is ptFile 11102 (not 257 - that was being reported by our software), the message is: An error occured while performing a File I/O operation. This happens when I run the program with the new dll in windows/system. If I overwrite it with the old one and rerun the program everything is fine. I'm working on a Windows 2000 machine. I hesitate to mention this, but is it possible that you re-compiled and posted the original code instead of your bug-fixed version? |
| User783 Posts: 15 Member Since: 03/27/01 |
posted April 19, 2001 11:08 AM ..Correction. I am not working on a Windows 2000 machine, I'm working on a Windows 98 one. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 19, 2001 11:29 AM That's what I thought. I'll bet the function returns a different error in 95/98. At this point my recommendation to you is to write the data to a file first, then send the file. It may be awhile before we get this officially resolved. Sorry, Tony |
| User783 Posts: 15 Member Since: 03/27/01 |
posted April 19, 2001 11:43 AM OK. I'll await developments... Thanks for your prompt responses. Lynne. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 23, 2001 5:26 PM The latest update is now available. This update contains the latest versions of all of our DLL's. The DLL's affected since the last update are: DARTSOCK.DLL DARTFTP.DLL You can get the update from: http://www.dart.com/downloads/update.exe for complete details of the changes see: http://www.dart.com/downloads/update.txt Sincerely, Tony Priest Dart Tech Support |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|