Outline ·
[ Standard ] ·
Linear+
Multi Thread for Message Queue in VB6
|
TSwingwp
|
Oct 7 2007, 04:49 AM, updated 19y ago
|
|
I hv been tryin some ways to multithread in VB6, somehow they r not safe & msg might lost in da middle
Message queuin is for my sms gateway.. I know VB.net can multithread but my systems r stil runnin on VB6, sometimes d outgoin sms might slow on peak hour mayb 1-3 sms per second, my queue cld hv up to 5000 items & more so they hv to queue up for 20+ minutes to b release, however wen it is not peak hour I can get 8 smses per second
usually da queue stay at 1000 items.. so a multithread is a gd for my system cos it can reduce my wait time at least below 1 minute
|
|
|
|
|
|
sleepsleep
|
Oct 7 2007, 07:44 AM
|
|
would suggest you write the threading part in a dll file and call from vb.
|
|
|
|
|
|
TSwingwp
|
Oct 7 2007, 12:26 PM
|
|
do U hv any sample code on tat? Thks
|
|
|
|
|
|
sleepsleep
|
Oct 7 2007, 08:21 PM
|
|
hmmm, maybe google around? if i got time, i write one sample for you
|
|
|
|
|
|
TSwingwp
|
Oct 8 2007, 12:57 AM
|
|
ya thnks for helpin, I hv tried some of da samples search from google and stil lookin for a better 1
|
|
|
|
|
|
wKkaY
|
Oct 8 2007, 02:27 AM
|
misutā supākoru
|
How is the queue stored?
|
|
|
|
|
|
dstl1128
|
Oct 8 2007, 12:08 PM
|
|
VB6 is not multithread aware. Even if you could import any WinAPI and multitreaded DLL, chances that it will behave correctly is very low.
|
|
|
|
|
|
TSwingwp
|
Oct 8 2007, 12:43 PM
|
|
outgoin SMSes r store inside Message Queue msmq, da trick I can implement is seperate them into diff queues & process by diff app atda same time
yup da DLL make the VB hang alot
|
|
|
|
|