PRB: Active Documents Flash and Disappear When Run (207952)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q207952 SYMPTOMS
Active Document applications start and then immediately end. This may happen so quickly that the application does not even appear to start.
CAUSE
Here are three known causes for this behavior: - There is not a READ EVENTS command in the Run method of the ActiveDoc class.
- The ActiveDoc class is not the main program in the project. This normally causes the READ EVENTS in the Run method of the ActiveDoc class not to be encountered.
- The Windows' file association with the .app file extension is something other than "Visual.FoxPro.Application.6".
RESOLUTION
To troubleshoot the problem, verify the following: - Make sure that the ActiveDoc class is the main program in the project. To do this, select the ActiveDoc class in the Project Manager Classes tab and choose Set Main from the Project menu. The class should now appear in bold face.
Make sure there is a READ EVENTS command in the Run method of the ActiveDoc class. It should be after the menu (if any) and form is run.
If the ActiveDoc application still will not run after verifying both of the above, check the file association for the .app file name extension in the registry. Look under the following two keys:
HKEY_CLASSES_ROOT\.app
HKEY_LOCAL_MACHINE\Software\Classes\.app
Both should be set to "Visual.FoxPro.Application.6" for the Active Document applications to run properly. - Make sure there is a READ EVENTS command in the Run method of the ActiveDoc class. It should be after the menu (if any) and form is run.
If the ActiveDoc application still will not run after verifying both of the above, check the file association for the .app file name extension in the registry. Look under the following two keys:
HKEY_CLASSES_ROOT\.app
HKEY_LOCAL_MACHINE\Software\Classes\.app
Both should be set to "Visual.FoxPro.Application.6" for the Active Document applications to run properly. - If the ActiveDoc application still will not run after verifying both of the above, check the file association for the .app file name extension in the registry. Look under the following two keys:
HKEY_CLASSES_ROOT\.app
HKEY_LOCAL_MACHINE\Software\Classes\.app
Both should be set to "Visual.FoxPro.Application.6" for the Active Document applications to run properly.
STATUS
This behavior is by design.
REFERENCES
For additional information about Active Document applications, please see the following article(s) in the Microsoft Knowledge Base: 182579 HOWTO: Getting Started With Active Documents
182580 HOWTO: Setting Up a Quick Menu for an ActiveDoc App
186015 HOWTO: Pass Parameters to an ActiveDoc
197861 SAMPLE: ADOCtl.Exe Demonstrates Active Documents, RDS and ADO
190771 FILE: Vfp6rt.exe Distributing Run-Time Files w/ Active Document
Modification Type: | Major | Last Reviewed: | 9/11/2001 |
---|
Keywords: | kbActiveDocs kbprb kbprint kbReportWriter KB207952 |
---|
|