Discussion in 'Mixed Languages' started by Muerto, Feb 21, 2016.
I hope these help.
Please remember that I'm not a VB programmer, so take my reply with a grain of salt.
In my form code, (Yes...Delphi has forms too. ) I would put a message handler and in my startup code and I would post a windows message (WM_USER + XXXX) to indicate that it was safe to create / execute my thread. (The message handler would start the thread.)
The other way (A little more complicated from a VB standpoint) would be to create a timer and start it when my initialization was complete. The OnTimer handler would execute the startup of the thread.
Just some thoughts FWIW...