How to avoid "Application not responding"

cmweb

Active Member
Licensed User
Longtime User
Hello,

my apps grabs about 2000 bitmaps from a sql database and shows them in a scrollview with imageviews.

Collecting these 2000 bitmaps needs a little bit time. On slower devices, the message "application not responding" appears.

My question is: How an I avoid that message?

- Should I use a service to collect the 2000 bitmaps?
- Should I use a thread?
- Would "DoEvents" help?

I tried to use sql.begintransaction .... sql.endtransaction, but I'm always running in an error message ("cursor couldn't initalize" or something like that), so I didn't use sql.begintransaction.

Are there any general hints how to avoid "application not responding" messages?

Best regards,

Carsten
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…