Hi,
My app does not always seem to quit, i am using...
App.getApplication().exit();
The window will disappear, but the app will still be running in the background, but only sometimes.
I have determined that the cause is a database connection awaiting a response from the db server. At any one time in the app there could be either none, or many db connections awaiting responses.
The data is fetched from the DB by a method or thread creating an instance of a class that creates a connections and then uses a method in that class to submit a query and return the results.
My question is how do i access current instances of these classes? (that could be instantiaed from anywhere in the app, i.e. from within different forms)
If i can do this then i can create a flag that gets set when a query is in progress and then test all the flags in these instances before calling getApplication.exit();
One idea i did think of is adding some code to the DB connection class so that it adds itself to a Vector in the main app when it gets created so that i have easy access...any thoughts on this?
Thanks.
My app does not always seem to quit, i am using...
App.getApplication().exit();
The window will disappear, but the app will still be running in the background, but only sometimes.
I have determined that the cause is a database connection awaiting a response from the db server. At any one time in the app there could be either none, or many db connections awaiting responses.
The data is fetched from the DB by a method or thread creating an instance of a class that creates a connections and then uses a method in that class to submit a query and return the results.
My question is how do i access current instances of these classes? (that could be instantiaed from anywhere in the app, i.e. from within different forms)
If i can do this then i can create a flag that gets set when a query is in progress and then test all the flags in these instances before calling getApplication.exit();
One idea i did think of is adding some code to the DB connection class so that it adds itself to a Vector in the main app when it gets created so that i have easy access...any thoughts on this?
Thanks.