10-20-2007, 04:35 PM
Updated.
QM crashes when the thread ends. But if there is a small delay or just Sleep(0) before ending, then always works well. The new version of the functions automatically calls Sleep(0). Didn't find the reason and not sure if it will work well on all computers. If still not, try to replace Sleep(0) to wait 0.05.
Php engine is not so lightweight as VBScript. It creates 7 extra threads (VBScript - 1), 2 of them with hidden windows, 4 of them remain even when the thread ends.
QM crashes when the thread ends. But if there is a small delay or just Sleep(0) before ending, then always works well. The new version of the functions automatically calls Sleep(0). Didn't find the reason and not sure if it will work well on all computers. If still not, try to replace Sleep(0) to wait 0.05.
Php engine is not so lightweight as VBScript. It creates 7 extra threads (VBScript - 1), 2 of them with hidden windows, 4 of them remain even when the thread ends.