Re: Need Win Guru/Tester
- Posted by "C. K. Lester" <cklester at yahoo.com> Jan 13, 2003
- 462 views
Pete! Thanks so much! After I sent that last post, I realized that my loop should probably be more controlled... that I really didn't have a hook into it (like you did with the done variable). However, didn't know where to go with it so I'm glad you responded. How would you resolve this, however: the loop uses done, but then it exits if done is true inside the actual looping code. What I'm thinking is that it can be optimized or done differently so there aren't two tests for done in the same loop code. while done=0 do -- here's done SDL_PumpEvents() if done then exit end if -- here's done Again, much appreciated! -ck ----- Original Message ----- From: "Pete Lomax" <petelomax at blueyonder.co.uk> To: "EUforum" <EUforum at topica.com> Sent: Monday, January 13, 2003 1:03 PM Subject: Re: Need Win Guru/Tester On Mon, 13 Jan 2003 12:10:41 -0600, "C. K. Lester" <cklester at yahoo.com> wrote: > >Windows gurus... Please go here and test the available code: > >http://www.cklester.com/euphoric/win32lib_sdl_test.htm > >The program simply attempts to open an SDL resizable window from within a >IDE-generated win32lib program. When I click <Close> the program crashes >with some memory error. RobC, could you please check this as well?! > change: setHandler( bttn_Close, w32HClick, routine_id("PushButton2_onClick")) to: setHandler( bttn_Close, w32HClick, routine_id("bttn_Close_onClick")) at the end of sdl_done() I added: done=1 and also put an extra exit line in the main loop as follows: while done=0 do SDL_PumpEvents() if done then exit end if --<< here Pete ==^^=============================================================== This email was sent to: cklester at yahoo.com TOPICA - Start your own email discussion group. FREE!