realbasic-nug
[Top] [All Lists]

Re: Totally stumped by class initialization weirdness

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Totally stumped by class initialization weirdness
From: Fargo <fargo at rpgportland dot com>
Date: Fri, 28 Sep 2007 12:56:24 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20070928193142 dot AF9A27D044F at mail dot verex dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>