Re: Multi-Threaded 'Get' Example - WeOnlyDo Discussion board

Re: Multi-Threaded 'Get' Example (General questions)

by ActiveGreg, Monday, February 23, 2009, 18:55 (5753 days ago) @ wodDamir

Damba,

Thanks for the example...

In trying to use an array, this does not appear to work:

Dim WithEvents http1(3) As wodHttpDLXCom

Can you provide an example of using an array?

Also it seems with blocking on, each thread/instance will have to wait on the other to complete...

What is the implication of setting blocking off? I was wondering if it were possibily to use it asycnronously.

Greg

Greg,

It's simple as declaring two instances, something like this (VB6 syntax):

Dim withevents http1 as wodHttpDLXCom
Dim withevents http2 as wodHttpDLXCom

and initializing them using New statements:

Set http1 = new wodHttpDLXCom
Set http2 = new wodHttpDLXCom

Ofcourse, you can also use an array to create multiple instances.

Hope this helps.

Regards,
Damba


Complete thread: