PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Opening Forms from within FF_WinMain hangs app.  (Read 236 times)

Elias Montoya

  • Guest
Opening Forms from within FF_WinMain hangs app.
« on: August 25, 2007, 11:21: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:

Code: [Select]
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.

Logged

TechSupport

  • Guest
Re: Opening Forms from within FF_WinMain hangs app.
« Reply #1 on: August 25, 2007, 11:35:47 PM »

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
Logged

Elias Montoya

  • Guest
Re: Opening Forms from within FF_WinMain hangs app.
« Reply #2 on: August 25, 2007, 11:43:36 PM »


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