FTP CHAT! Timer lags

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
eriger777
VIP - Donator
VIP - Donator
Posts: 3
Joined: Fri Feb 12, 2010 4:35 pm

FTP CHAT! Timer lags
eriger777
Hello I've recently created an ftp chat for a group of moderators, It works perfectly fine however the timer1 that downloads the chat.txt, It lags the form is there anyway I could make the chat not lag. I've tried multi-threading I've failed at that. I will gladly upload the source if you would like. Is there anyway I could remove the lag?
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: FTP CHAT! Timer lags
comathi
Since every few seconds, the chat program has to contact the ftp server, then download the file, a lag is created. However, using an ftp chat, I do not think you can make a better way of updating your program, at it will always need to contact a server.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: FTP CHAT! Timer lags
mandai
You can make the application more responsive by handling the data transfers in a different thread.

Though FTP is not designed for real time chat.
3 posts Page 1 of 1
Return to “Coding Help & Support”