Can someone explain me the difference between :
CreateThread <-> CreateVOThread
ExitThread <-> ExitVOThread
TerminateThread <-> TerminateVOThread
EnterCriticalSection <-> VOEnterCriticalSection
LeaveCrititalSection <-> VOLeaveCriticalSection
Are these functions just wrappers, or do they something special -
maybe GarbageCollection etc...
Dirk
From VO 2.6 Help System (look for "thread")
[First of all, threads in a CA-Visual Objects 2.6 application should not
be created by calling the Windows API function CreateThread() directly,
but by calling the CA-Visual Objects 2.6 runtime function
CreateVOThread(). This function is called exactly like CreateThread()
and actually it calls CreateThread() internally. CreateVOThread() also
performs some additional initializations in the kernel runtime.
Similar to CreateVOThread() there is an ExitVOThread() function that
should be called instead of ExitThread(). However, try to avoid exiting
a thread in a CA-Visual Objects 2.6 application by calling ExitThread()
at all. Instead, exit your threads by returning from the thread entry
point function.]
Regards,
Carlos
I have read that to, but what means :
"CreateVOThread() also performs some additional initializations in the
kernel runtime."
What does this do ?
Dirk
> "CreateVOThread() also performs some additional initializations in the
> kernel runtime."
>
> What does this do ?
Maybe memory allocation, critical section or something else that helps the
system stay stable.
Why do you need to know though??
--
HTH
Steve
Last I heard, there was no difference and CreateVOThread just called
CreateThread. Of course I've been wrong before...
--
Ginny
"Dirk (Belgium)" <dirk.he...@pbprojects.be> wrote in message
news:qvkvk01r3rl6jnfek...@4ax.com...
Long ago, I had problems when using the function VOSendMessage()
Now I only use SendMessage()
Maybe this is the same with these VO-Functions ....
Also, Maybe it's important for GC, so I have to known.
Dirk