Click here to Skip to main content
15,891,567 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPlease help with Enter Key! Pin
Member 167164825-Jul-05 20:22
Member 167164825-Jul-05 20:22 
GeneralRe: Please help with Enter Key! Pin
Yulianto.25-Jul-05 20:27
Yulianto.25-Jul-05 20:27 
Generalmaking data report for letter Pin
Member 214622225-Jul-05 20:11
Member 214622225-Jul-05 20:11 
GeneralRe: making data report for letter Pin
Dave Kreskowiak26-Jul-05 3:53
mveDave Kreskowiak26-Jul-05 3:53 
QuestionAny samples on System Configuration forms? Pin
Zakiro25-Jul-05 15:47
Zakiro25-Jul-05 15:47 
AnswerRe: Any samples on System Configuration forms? Pin
Dave Kreskowiak26-Jul-05 3:48
mveDave Kreskowiak26-Jul-05 3:48 
GeneralNeed help with VB Winsock & SNMP Pin
donjuane25-Jul-05 12:02
donjuane25-Jul-05 12:02 
GeneralRe: Need help with VB Winsock & SNMP Pin
progload25-Jul-05 13:42
progload25-Jul-05 13:42 
Don, MultiThread It....

You've almost come up with your own answer from your question:

"I am using, single threaded send a query and wait for response."

"This can take hours, especially over a moderatly slow connection."


There is literaly ton's of VB example Code & controls out there about udp MultiThreading & pooling in VB.
(I'm assuming your working in VB 5 or 6 and Not the .Net framework.)

The doEvents() inside of the do loops... bad idea.. I haven't see your code but it would not be a
big surprise, to find it is only recieving the last request.

A lot of the documentation on multithreading is geared toward it's "use" with winsock, have a look thru the MSDN Library CD's that came with the version of VB your using. and MSDN on the net still has a few bit's and pieces on multitheading....in the older versions of VB.(but getting harder to find)

"Google is your best friend:"
http://www.google.com/search?hl=en&q=vb6+udp+MultiThreading[^]

(If you are working in the .Net Framework check out the Threading ClassSmile | :)

.NET Framework Developer's Guide
Threading

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconthreading.asp?frame=true


.NET Framework Developer's Guide
Managed Threading Best Practices

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconmanagedthreadingbestpractices.asp?frame=true


.NET Framework Developer's Guide
Thread Pooling

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconThreadPooling.asp

Hope this helps
GeneralAccess methods in other interfaces on DLL/com-objets Pin
MaWeRic25-Jul-05 11:28
MaWeRic25-Jul-05 11:28 
GeneralRe: Access methods in other interfaces on DLL/com-objets Pin
progload25-Jul-05 13:52
progload25-Jul-05 13:52 
GeneralRe: Access methods in other interfaces on DLL/com-objets Pin
MaWeRic25-Jul-05 18:22
MaWeRic25-Jul-05 18:22 
GeneralRe: Access methods in other interfaces on DLL/com-objets Pin
progload25-Jul-05 18:54
progload25-Jul-05 18:54 
GeneralSorry disregard my message Pin
progload25-Jul-05 13:57
progload25-Jul-05 13:57 
GeneralPicture from video Pin
lespaul3625-Jul-05 10:11
lespaul3625-Jul-05 10:11 
GeneralRe: Picture from video Pin
progload25-Jul-05 11:15
progload25-Jul-05 11:15 
GeneralError Code 3021: Pin
amitranjanmishra25-Jul-05 3:43
amitranjanmishra25-Jul-05 3:43 
GeneralRe: Error Code 3021: Pin
Rob Graham25-Jul-05 4:48
Rob Graham25-Jul-05 4:48 
GeneralDatagrid - Select row Pin
directred25-Jul-05 1:22
directred25-Jul-05 1:22 
GeneralRe: Datagrid - Select row Pin
directred25-Jul-05 1:30
directred25-Jul-05 1:30 
GeneralRe: Datagrid - Select row Pin
Member 210009525-Jul-05 18:40
Member 210009525-Jul-05 18:40 
GeneralRe: Datagrid - Select row Pin
rudy.net26-Jul-05 6:22
rudy.net26-Jul-05 6:22 
Generalnewbie project help!!!! Pin
24-Jul-05 23:14
suss24-Jul-05 23:14 
GeneralRe: newbie project help!!!! Pin
Dave Kreskowiak25-Jul-05 5:51
mveDave Kreskowiak25-Jul-05 5:51 
GeneralRe: newbie project help!!!! Pin
26-Jul-05 1:40
suss26-Jul-05 1:40 
GeneralRe: newbie project help!!!! Pin
Dave Kreskowiak26-Jul-05 1:46
mveDave Kreskowiak26-Jul-05 1:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.