This message was deleted.
# kotlin-native
s
This message was deleted.
t
It's probably because your main thread ends after launching the other thread, thereby ending the program. Try putting a
Sleep(2000)
in your
main
after creating the thread.
Or something like this:
Copy code
val threadHandle = CreateThread(...)
WaitForSingleObject(threadHandle, INFINITE)