Link to home
Start Free TrialLog in
Avatar of N P

asked on

Visual Foxpro have to double start application for it to work?

I am using visual foxpro 8.0.  I have to double start my application in order for my foxpro application to appear.  The first attempt shows nothing on the task bar but task manager shows under Apps.  Second attempt opens the application ok.  

here is my main.prg set are main startup.

on shutdown do myshutdown
do form frm_admin
read event
on shutdown

**my shutdown file**
&& myshutdown
clos all
clea all
clear events

what could be causing this issue?
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Independently on the CONFIG.FPW existence and instead of investigating the reason of your issue you may add the following line into main program:
_screen.Visible = .T.

Open in new window

Of course, you should ensure the frm_admin form does not hide the screen again.

Avatar of N P


I don't have a config.fpw, but you clued me into the foxuser.dbf.  I deleted foxuser.dbf and when I ran the application it recreate the foxuser.dbf resolving the issue.  Thanks for help pcelba our foxpro community. :)