Code: Select all
SetTimer(timer,200)
test()
test(){
a := 0
try{
a:="something" ; should be string to reproduce the issue
Sleep(1000) ; to wait timer
return a ; a will be set to "" after return
}finally{
if a ;suppose always true, but a is "" when called in timer thread
msgbox "yes"
}
}
timer(){
SetTimer(timer,0)
test()
}