User Tools

Site Tools


start_function

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
start_function [2018/10/29 10:05] – created wolfgangriedmannstart_function [2018/10/29 10:07] (current) wolfgangriedmann
Line 1: Line 1:
-====== Start() function with [STAThread] attribute ======+====== Start() function needs the [STAThread] attribute ======
  
 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.1540807541.txt.gz · Last modified: 2018/10/29 10:05 by wolfgangriedmann