@@ -38,9 +38,9 @@ void Thread::start() // startet den Thread
{
if( !run )
+ ref++;
#ifdef WIN32
threadHandle = CreateThread( 0, 0, threadStart, this, 0, &threadId );
- ref++;
#else
pthread_create( &threadHandle, NULL, threadStart, this );
#endif