this is why i do this:
TTCPWindowLayerServer * srvtcp = new TTCPWindowLayerServer();
srvtcp->CreateServer(0);
i dont want to call join cause i don't want the main thread to be paused at all,
however it may seem that android automatically crashes my app, since i think it thinks the UI Thread is being suspended, thus how is this even possible, when i spawn a thread so it shouldnt matter from which place i spawn it, it should independly even when im creating server class in that ui thread, but if it is so, then i just grab my pc and throw it into river.
looks like you cant stall ui thread with some standard function even for 20 seconds, but you cant stall it with a thread for even a microsecond., and my app base is always dependnt on ui thread since i call onTap(x, y) from java to execute cpp code.....
either i thro pc and phones to the river or make a bypass by using join and somehow proceed with stalled threads. giving up seems easier