kepler Active Member Licensed User Longtime User May 2, 2015 #1 Hi, Today is not my day.... I'm using a ProgressDialog to monitor one of my routines in the Main project. Problem: the routine calls another routine in a Code module. So...the Progress wheel freezes. And I can't seem to call the bar in the code module.+ Can't figure a way out of this.... Kind regards, Kepler
Hi, Today is not my day.... I'm using a ProgressDialog to monitor one of my routines in the Main project. Problem: the routine calls another routine in a Code module. So...the Progress wheel freezes. And I can't seem to call the bar in the code module.+ Can't figure a way out of this.... Kind regards, Kepler
NJDude Expert Licensed User Longtime User May 2, 2015 #2 If it freezes it means there's a long process holding the main thread, you could add a DoEvents, that might help. Upvote 0
If it freezes it means there's a long process holding the main thread, you could add a DoEvents, that might help.
kepler Active Member Licensed User Longtime User May 4, 2015 #3 I think I've found where the program is freezing. It's in a Job.GetString line. Any way to get around this? Kind regards, Kepler Upvote 0
I think I've found where the program is freezing. It's in a Job.GetString line. Any way to get around this? Kind regards, Kepler
DonManfred Expert Licensed User Longtime User May 4, 2015 #4 What are you doing with the job.getstring? How long is the content you are getting? Upvote 0
kepler Active Member Licensed User Longtime User May 4, 2015 #5 I'm downloading some text data from a server. After the download, I use GetString to retrive the data. The size varies - 50kb to 500kb. Regards, Kepler Upvote 0
I'm downloading some text data from a server. After the download, I use GetString to retrive the data. The size varies - 50kb to 500kb. Regards, Kepler
Erel B4X founder Staff member Licensed User Longtime User May 5, 2015 #6 Which data are you reading? What are you doing with this string? Upvote 0
kepler Active Member Licensed User Longtime User May 5, 2015 #7 Hi, It's a return search from my astronomy website, that calculates some astronomical data. I pull that info and treat it in the app. The job is very fast - I can see that in the log. But getting the string from the download, it's a little delayed. Kind regards, Kepler Upvote 0
Hi, It's a return search from my astronomy website, that calculates some astronomical data. I pull that info and treat it in the app. The job is very fast - I can see that in the log. But getting the string from the download, it's a little delayed. Kind regards, Kepler
Erel B4X founder Staff member Licensed User Longtime User May 6, 2015 #8 Loading a 0.5M characters string can be a slow operation. Do you really need to load everything? Upvote 0