Solved

how can i solve it?

Posted on 2007-11-28
3
767 Views
Last Modified: 2008-02-01
Hello Experts,
i got the same error "runtime error 35764 the connection is still on execution"
i am usgin a my ftp connection application and it send my file one by a timer funciont
any idea where is the cause?
0
Comment
Question by:aitsu01
3 Comments
 
LVL 8

Expert Comment

by:Barry62
Comment Utility
what is the code?
0
 
LVL 10

Accepted Solution

by:
3_S earned 50 total points
Comment Utility
you should disable the timer when it start the routine
timer.enable = false
and
timer.enable = true
when the routine is finished

between you set the code for your ftp connection

If you do not disable the timer and the routine takes longer to run than the time set for the timer the timer will start the routine several times (every time the interval of the timer is reached)
0
 

Author Comment

by:aitsu01
Comment Utility
Hello Experts,
well it seems solved now
i will attach here the problem's code:

BEFORE:
Private Sub Timer1_Timer()
Kill "c:\lmyfile.txt" " the ftp application was still on execution on the text file"
 Load my function
----------------------------------------------------------
AFTER

Private Sub TimerHook_Timer()

On Error Resume Next " it will be ignored"
Kill "c:\myfile.txt"
 Load myfuncion

this solution can be a bit dirty but it works,anyway i listen new more suitable solutions
for example now the problem that the new text file willl append at ever ftp sending with the old text file content,so it will be pretty big after.any good advice?Thank you ina dvance

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now