I'm trying to track down the cause of this message ' Application not responding, would you like to close it". My app has a service module that runs every 20 secs (it resubmits itself with StartServiceAt) to scan received text messages and process relevant ones and store them in a database. It also updates a global variable declared in module Main to indicate whether or not is has inserted any new rows into the database.
An activity module polls the database and display the contents of the text messages allowing the user to print or reply to them etc. This activity uses a timer to poll the database and also checks then to ensure that the scan service is running, restarting it if not. I also have some popup menus in this activity which allows the user to config various settings.
Sometimes I get the 'Not Responding' message but though it is not fully repeatable it seems to mainly occur when I have one of the popup menu panels displayed, one that requires user input.
It doesn't seem to happen in debug mode so I can't find it that way. Could it be caused by the interaction between the display activity and the scan service module - the display activity does access some globals in the scan service but not vice-versa. The scan activity only accesses one variable in the Main module.
Ta.
An activity module polls the database and display the contents of the text messages allowing the user to print or reply to them etc. This activity uses a timer to poll the database and also checks then to ensure that the scan service is running, restarting it if not. I also have some popup menus in this activity which allows the user to config various settings.
Sometimes I get the 'Not Responding' message but though it is not fully repeatable it seems to mainly occur when I have one of the popup menu panels displayed, one that requires user input.
It doesn't seem to happen in debug mode so I can't find it that way. Could it be caused by the interaction between the display activity and the scan service module - the display activity does access some globals in the scan service but not vice-versa. The scan activity only accesses one variable in the Main module.
Ta.