Hi, I 've been searching in the forum's search to find an answer in the question in the thread's title. So far I have only come in to this:
But this is not my case. My case is the following. I found it easy in order to move desktop apps also to the web easily to handle all the procedures of the application in classes. Thus we move the classes to the web app and we just design the html and change slightly the code in the case of minor incompatibilities (f.e. table views). I 've found it though hard - although it seems to be working intermittently - to call external API's because you are calling with http job and you have to StartMessageLoop-StopMessageLoop for it. This subs that access the external APIs are called either by web request or inside the jar with a timer from the main module in the corresponding class. The web request seems to being handled correctly. But the timer works intermittently. Here is a shape of what I do. How do I handle in such situations StartMessageLoop-StopMessageLoop
Edit - wrong shape (in request the StartMessageLoop is called after the "Call the Sub that is called in Sub A".)
Detecting if StartMessageLoop is Active
Hello All, I am trying to find a way to detect if the StartMessageLoop is active or not. Something like: If StartMessageLoop Then StopMessageLoop. Is this possible to do in B4J? Thanks everyone for the great community!
www.b4x.com
But this is not my case. My case is the following. I found it easy in order to move desktop apps also to the web easily to handle all the procedures of the application in classes. Thus we move the classes to the web app and we just design the html and change slightly the code in the case of minor incompatibilities (f.e. table views). I 've found it though hard - although it seems to be working intermittently - to call external API's because you are calling with http job and you have to StartMessageLoop-StopMessageLoop for it. This subs that access the external APIs are called either by web request or inside the jar with a timer from the main module in the corresponding class. The web request seems to being handled correctly. But the timer works intermittently. Here is a shape of what I do. How do I handle in such situations StartMessageLoop-StopMessageLoop
Edit - wrong shape (in request the StartMessageLoop is called after the "Call the Sub that is called in Sub A".)
Last edited: