Message Box disappearing automatically

Inman

Well-Known Member
Licensed User
Longtime User
This issue started with B4A 2.0 only. In my app's main activity, there are at least 3 concurrent downloads happening directly using 2 httpclients (not with httputils). I have a function to show an msgbox. Problem is it will show the msgbox for a second and then disappears (as if someone clicked the ok button) and then continues with the download.

In the logs there are messages like sending message to waiting queue, running waiting messages (1) etc..so I think this has something to do with the new process queuing in B4A 2.0. The same code used to work perfectly on 1.x.

I tried calling the function directly and also with CallSubDelayed but the result is the same. Is there any solution to this?
 

Inman

Well-Known Member
Licensed User
Longtime User
Not sure about debug mode as I hardly use it but it definitely happens in release mode
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
Sorry it is a commercial app developed for a client. I realise it will be tough to debug this issue without go through the actual code. I was hoping you might have encountered similar issues in the past.

It's ok, for the time being I changed the msgbox call to another activity with lesser number of httpclient calls. Hopefully some day someone who is comfortable with sharing the complete project, might encounter this error.
 
Upvote 0
Top