start_function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start_function [2018/10/29 10:06] – 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> | <code visualfoxpro> | ||
- | function Start() as void</ | + | function Start() as void</ |
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.1540807592.txt.gz · Last modified: 2018/10/29 10:06 by wolfgangriedmann