Thread

AWSDKOCX: Multiple Asynchronous Object Changes (Sdk)

AWSDKOCX: Multiple Asynchronous Object Changes // Sdk

1  |  

grimble

Oct 22, 2000, 8:09am
Hi,

I'm writing a bot (in VB - thanks MrGrimm) that controls a number of picture
objects and often "blasts" 14-16 asynchronous object change calls in quick
succession through AWSDKOCX. This works like a dream for a while but after a
seemingly arbitrary period of time, I "lose" some updates. I get a new
object number back from the object change call, but no update and no
callback. This has two nasty effects on the bot activity:

(a) The pictures don't get updated - which is the whole point.

(b) I now have an object number which doesn't actually relate to the object
(since the original call gave me a new one but didn't make the change).

I can get around (b) programatically if I need to, but that's not the point.
I need the pictures to change at about the same time, not wait for a few
seconds and reset the object number and repost the call.

Anyone else have this kind on problem? I have had VB dropping important
events on me before (especially with a busy winsock control), but I don't
think this is related to that.

Any help would be greatly appreciated.

Thanks

Grimble

the derek

Nov 12, 2000, 6:10am
seems like an odd problem why dont you post your code in cell_object and the
code you use to do the change?

[View Quote] > Hi,
>
> I'm writing a bot (in VB - thanks MrGrimm) that controls a number of picture
> objects and often "blasts" 14-16 asynchronous object change calls in quick
> succession through AWSDKOCX. This works like a dream for a while but after a
> seemingly arbitrary period of time, I "lose" some updates. I get a new
> object number back from the object change call, but no update and no
> callback. This has two nasty effects on the bot activity:
>
> (a) The pictures don't get updated - which is the whole point.
>
> (b) I now have an object number which doesn't actually relate to the object
> (since the original call gave me a new one but didn't make the change).
>
> I can get around (b) programatically if I need to, but that's not the point.
> I need the pictures to change at about the same time, not wait for a few
> seconds and reset the object number and repost the call.
>
> Anyone else have this kind on problem? I have had VB dropping important
> events on me before (especially with a busy winsock control), but I don't
> think this is related to that.
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Grimble

grimble

Nov 12, 2000, 7:24am
No matter which way I tried it, it still happened - even if I totally
ignored the callbacks to ensure I wasn't tying up the processor.

Its all pretty arbitrary when it happens, but I've found that if I restrict
the number of outstanding updates to about 5 ( :O( ) by queuing them, then
it only disconnects about once every 100 updates or so. I just do an
incremental requery if that happens to reset all the objects. Its all a bit
aritrary really when it happens.

This was the same as a post called "Bots Disappearing" (the thread in the
bots NG) - seems to be an accepted problem. I was in AlphaWorld when I had
the problem. I'm going to see if its still a problem in a private, locally
hosted world at some point and also try it in C++.

Anything significant that I learn, I'll feedback into the NG.

Thanks.

Grims.

[View Quote]

the derek

Nov 12, 2000, 6:55pm
i would contact mrgrimm i dont use the callbacks often because they dont relly
work well for me for example if i use the login callback the bot gets a "no
connection" error

[View Quote] > No matter which way I tried it, it still happened - even if I totally
> ignored the callbacks to ensure I wasn't tying up the processor.
>
> Its all pretty arbitrary when it happens, but I've found that if I restrict
> the number of outstanding updates to about 5 ( :O( ) by queuing them, then
> it only disconnects about once every 100 updates or so. I just do an
> incremental requery if that happens to reset all the objects. Its all a bit
> aritrary really when it happens.
>
> This was the same as a post called "Bots Disappearing" (the thread in the
> bots NG) - seems to be an accepted problem. I was in AlphaWorld when I had
> the problem. I'm going to see if its still a problem in a private, locally
> hosted world at some point and also try it in C++.
>
> Anything significant that I learn, I'll feedback into the NG.
>
> Thanks.
>
> Grims.
>
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn