start_function
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
start_function [2018/10/29 10:05] – created wolfgangriedmann | start_function [2018/10/29 10:07] (current) – wolfgangriedmann | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Start() function | + | ====== Start() function |
The Start() function in migrated VO applications needs to have the [STAThread] attribute: | The Start() function in migrated VO applications needs to have the [STAThread] attribute: | ||
- | [code visualfoxpro][STAThread]; | + | <code visualfoxpro>[STAThread]; |
- | function Start() as void[/code]. | + | function Start() as void</code> |
If this attribute is not set, you may experience strange crashes. As sample: when opening a printer selection dialog in an application without this attribute the application crashed. After adding the attribute, the printer selection dialog showed up correctly and the application does not crashed anymore. | If this attribute is not set, you may experience strange crashes. As sample: when opening a printer selection dialog in an application without this attribute the application crashed. After adding the attribute, the printer selection dialog showed up correctly and the application does not crashed anymore. | ||
start_function.txt · Last modified: 2018/10/29 10:07 by wolfgangriedmann