On Wed, Jun 4, 2008 at 11:45 AM, Piotr Strzelczyk <[EMAIL PROTECTED]> wrote: > >> I still don't get my Tick function called... >> (my timer seems to be ok, it returns correct value for >> GetInterval and IsRunning.) >> > Strange, I have no problems with it. > But I'll try to ask some silly questions which may help you: > I what part of program timer should work? All events work when the > program is in main loop (e.g. initialization is ended). > Do you have multithread program (corutine)? Events has to be processed > in `main' thread. >
I start the timer while initializing, and my program "ends" into the main loop, the GUI is otherwise active, so I the main loop must be running. (This is for testing purposes, I added the timer stuff to an existing application) My Tick function currently just prints a message (which is redirected to a texty box in application). The message appears if I directly call the tick function, but not from the timer. No coroutines. I have to do some more tests, my wxLua base application is not from the current wxLua distribution (instead it was originally based on version from long time ago, and I have updated it where I have noticed it necessary). Eero ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ wxlua-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxlua-users
