I have been struggling with threads but got it working now. The only problem is two compiler warnings in one line...
The line of code is
Code: Select all
hThr = _beginthreadex(NULL, 0, @HandleUpdates, NULL, 0, NULL)
It gives these warnings:
warning 3(1): Passing different pointer types, at parameter 3 of _BEGINTHREADEX()
warning 4(1): Suspicious pointer assignment
The function declaration in process.bi is:
Code: Select all
declare function _beginthreadex (byval as any ptr, byval as ulong, byval as function stdcall(byval as any ptr) as ulong, 'byval as any ptr, byval as ulong, byval as ulong ptr) as uintptr_t
Any help is appreciated, Wilko