This message is for Steve L. Hi steve, I have a large dialog based program. Most of the data is initialized in the routine mainsub. Ex. DATA MODELS(46) /'ALL'/
For the 1st time everything works fine- but when I hit run 2nd time from the dialogbox, somehow all the values of the variables are not the initial values even when we check them in 'mainsub'. They look like retained values from the previous run. Obviously the results are all wrong. In the dialog box I have-
hEvent=CreateEvent(NULL_SECURITY_ATTRIBUTES, .TRUE., .FALSE., NULL_CHARACTER) hEvent=CreateEvent(NULL_SECURITY_ATTRIBUTES, .FALSE., .FALSE., "MyEvent"C) hThread=CreateThread(NULL_SECURITY_ATTRIBUTES, 0, LOC(Mainsub), hEvent, 0, LOC(idThread))
What can be done to fix this problem?