Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 22nd, 2005, 05:16 AM
hithere's Avatar
hithere hithere is offline
Learner
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: India
Posts: 450 hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 12 h 13 m 21 sec
Reputation Power: 17
Inet component is giving problem

Hi all,
I am having inet component in the form. Thru that i am copying one file from ftp server to client machine. The file is copied but the vb project gets hanged.
The code is as

Inet1.Execute, "GET" file_to_be_copied, Path_to_copy
Do while Inet1.StillExecuting = True
Loop
End

But after Inet1.Execute the form gets hanged even though Inet1.StillExecuting is equal to false .So please can someone tell me how to end the execution after the file is copied.

Thanx in advance.

Reply With Quote
  #2  
Old February 25th, 2005, 10:10 AM
Yeruhn's Avatar
Yeruhn Yeruhn is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Netherlands
Posts: 428 Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 16 h 35 m 27 sec
Reputation Power: 10
Maybe you should build in a delay in your loop, or call doevents, so other processes will get some time to do their thing...

Reply With Quote
  #3  
Old February 25th, 2005, 11:30 AM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 4
Quote:
Originally Posted by hithere
The code is as

Inet1.Execute, "GET" file_to_be_copied, Path_to_copy
Do while Inet1.StillExecuting = True
Loop
End

But after Inet1.Execute the form gets hanged even though Inet1.StillExecuting is equal to false .So please can someone tell me how to end the execution after the file is copied.

Not sure but...
Do while Inet1.StillExecuting = True
doevents
Loop

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Inet component is giving problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway