• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSThread in Debug mode loading code issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSThread in Debug mode loading code issue
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: CLI open -a myApp fileName - not working
  • Next by Date: Re: Blocking loops
  • Previous by thread: Making NSTableView Fields Selectable, But Not Editable
  • Next by thread: Re: NSThread in Debug mode loading code issue
  • Index(es):
    • Date
    • Thread