I have an app that allows the user to tranfer data from one database to another. I wish To add a cancel button.
The user is unable to click the button during the transfer process since the primary thread is busy doing the transfer work. I can not run my DAO transfer operation in a secondary thread since DAO only runs in primary threads(or atleast thats what Microsft says, but even when I tried it I had some memory leak issue come up).
I know this issue have been solved by many application before, which was easy if you did the work in a worker thread. However, lie I said before DAO does not run in secondary(worker) threads and so I am not sure what to do.