NSThread in Debug mode loading code issue
NSThread in Debug mode loading code issue
- Subject: NSThread in Debug mode loading code issue
- From: Marc Van Olmen <email@hidden>
- Date: Sat, 17 Jun 2006 14:26:17 -0400
hi,
I create a thread that is doing the following:
anObject = [[MyBitmap alloc] initWithContents:aPath];
When I create 2 of those threads right after each other. There is an
issue that in one of the threads the variable
anObject == NULL.
I noticed that in the other thread it is like busy loading the code
for MyBitmap ( it is busy loading also some CoreGraphics code.
So my guess is that the ZeroLink has issues when it is loading a
class and not 2 threads can do this at the same time?
Because I also noticed the following:
I noticed that when I wait for example 1 second after the first
thread is created and I create my second thread there is no problem.
Also in release build there is no problem. Also When I create the
first threads and wait a second, i can create without any problem in
debug mode a number of threads very quickly and it seems to work fine.
Is this a known issue or you think the issue must be something else?
regards
marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden