PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Elias Montoya on August 25, 2007, 11:51:05 PM

Title: Opening Forms from within FF_WinMain hangs app.
Post by: Elias Montoya on August 25, 2007, 11:51:05 PM

Paul, i have a login form that i dotn want to call every time i run my program
while i debug my app, si , i didnt made the login form the main form.

Instead, i did it by adding:

Call Login_Show(0, %TRUE)

In FF_WinMain, but after Login_Show() finishes, nothing continues to happen.
The app remains "running" until i close it from the task manager.

If i REM the Login_Show() from FF_WinMain(), everything else works fine.
is this a docummented behaviour? or did i hit something?

BTW, if i make the Login_Show() the default form, everything works perfect, i just
dont want to see the login screen while debugging.

Title: Re: Opening Forms from within FF_WinMain hangs app.
Post by: TechSupport on August 26, 2007, 12:05:47 AM
Elias, you can not open a form during FF_WinMain because there is no message pump running at that point. Try the suggestion in the following thread: http://planetsquires.com/support/index.php?topic=1791.0
Title: Re: Opening Forms from within FF_WinMain hangs app.
Post by: Elias Montoya on August 26, 2007, 12:13:36 AM

I see. Thanx paul, ill read that and see what i can do. :)