Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / My FTP wont Disconnect

Author
Message
The Lone Programmer
23
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 20th Nov 2003 03:00
Hi,
This FTP deal is really screwing me over. When I exit out of a program that I made it does not log out of the FTP. As a result of this I am unable to save anything until the FTP session shorts out.

I have placed a:
ftp disconnect

inside my code and still nothing. The program usually stays open for 3-5 minutes while it tries to log out.

Again I am unable to save my work until it logs out. How do I properly make it log out. How many FTP Disconnects do I need in my code?

Get back to me
Nicolas

spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 20th Nov 2003 03:23
It's getting late here (1:20 am) and I'm falling asleep. If no-one has helped I'll have a look in the morning as I've got day off work.

1.
Are you FTP'ing to a pc on your network or a remote server over the net?

2.
What sort of FTP commands are you doing. sending, getting, etc.

3.
What FTP server is it and how do you know it has not logged out properly.

Boo!
The Lone Programmer
23
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 20th Nov 2003 03:33
Ok here are the answers to your questions:

1. I am logging into a FTP over the net (Netfirms FTP)

2. I am mainly sending and receiving files. Sometimes deleting

3. It is not logged out. It minimizes at the bottom and stays like that. I am unable to re-open the ftp with the same file.

Well maybe you can help because I am having no luck. Not a single other person knows how to do ftp so I am out of luck.

Later
Nicolas

CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 20th Nov 2003 04:26
maybe try a Terminate command just prior to the disconnect?

-RUST-
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 20th Nov 2003 15:52
I've tried everything and can not replicate your problem. Sorry!

I can ftp to my own pc, my work pc, my website

This is one of the tests I used which simply writes a list of files on remote server:



It definately disconects from FTP site because I have access to FTP servers. DB program is not left in taskbar.

Have you upgraded to 5.1 as I know this fixes the problrm of FTP commands maximising and minimizing the window when connecting / disconnecting.

Boo!
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 20th Nov 2003 17:34 Edited at: 20th Nov 2003 17:35
I can't recreate the problem either.

Put
cls
print get ftp status()
wait key
at the end of the program, does it print a 1 or a 0.

I have a problem that programs run by the compiler don't exit, I have to kill them in task manager. Do you have the same problem with the ftp if you run the compiled exe by double clicking in explorer not by pressing f5 in the ide.

Start a msdos command window and run "netstat -a" is the connection still there?

dbpro : p166mmx @ 233 : 256mb : sb 128pci : sis onboard

Login to post a reply

Server time is: 2026-07-26 20:16:57
Your offset time is: 2026-07-26 20:16:57