Timer event when used causing PowerBuilder application crash. Application crashes at random time interval. Sometime it takes not more than a minute to crash and sometime there is no crashing even hitting with random mouse clicks, edit change and item change.
I cannot think of any test i can do to check the reason of crash. I dont know where to put TRY CATCH because code is very very simple. The doubtful thing is that the instance of the window i open with the timer set in its Open event makes application crash only when 2 instances are open at the same time.
The timer triggers a custom event and the custom event has one line of Retrieve function call for a DataWindow.
The doubtful thing with the retrievend Event of the Datawindow is Messagebox to display just a message saying 'data has been refreshed'.
1- The Open event sets timer for 10 seconds
2- Timer event calls dw_1.Retrieve()
3- RetrieveEnd event shows MessageBox
Is it in fact Timer event or something else causing the crash ?