[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSTask causes crashes in windows
From: |
andre levy |
Subject: |
NSTask causes crashes in windows |
Date: |
Tue, 07 Sep 2004 15:48:36 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 |
in: static DWORD WINAPI _threadFunction(LPVOID t)
there is code reading:
for (;;)
{
NSConcreteWindowsTask *task;
[tasksLock lock];
task = (NSConcreteWindowsTask*)NSMapGet(activeTasks, (void*)taskId);
[tasksLock unlock];
if (t == nil)
{
return 0; // Task gone away.
}
switch (WaitForSingleObject(task->procInfo.hProcess, milliseconds))
...
}
the test for task gone should probably be:
if (task == nil)
{
return 0; // Task gone away.
}
we found that bug because the appli crashed unexpectedly (obviously!)
--andre
thanks
--andre
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- NSTask causes crashes in windows,
andre levy <=