joe at strout dot net wrote:
> On Sep 28, 2007, at 19:13 UTC, Fargo wrote:
>
>
>> They fail to initialize unless there's a msgbox in them.
>> Presumably other code items could achieve the same result, but I
>> haven't tried much, and none of what I tried would produce the
>> result. The timer class exhibits similar behavior, in that if it
>> will only fire once unless a msgbox is in the Action event.
>>
>
> A MsgBox has the effect of forcing an event loop to be serviced. I
> suspect that you've tied up the main event loop with some tight loop of
> your own. Instead, you should drive your animation either from a
> thread or a timer (I usually use a Timer in my own games).
>
> HTH,
> - Joe
>
> --
> Joe Strout -- joe at strout dot net
> Strout Custom Solutions, LLC
>
> _______________________________________________
>
No loops at all so far. I do have another timer running to adjust the
position of the 3d model, which, at least in some previous efforts,
didn't seem to cause any issues. I'll knock that out for a bit and see
what happens.
Thanks,
Fargo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|