Scott.

thank you for your explanation.

Mounts is being used, but just not in the init function.
it is being used later in the code.

that is why i was geting confused because the 2 arrays, are not meant to hold the same type of data.
and right now, they contain mixed data type.

witch makes my other functions crash.

On 16-Nov-08, at 11:37 PM, Scott Ribe wrote:

At what point in the code are you checking? Is this a release build, or a
debug build in which you've gone & enabled some optimizations?

In the code you posted mounts is init'd (twice actually, which is
unecessary), then never used. It's perfectly possible that the two variables mounts & bonjourServices will be stored in the same register-- depending on
compiler settings.

In other words, the two arrays would certainly have different addresses. But since you're not referring to mounts after it's initialized, the space where the pointer to mounts is stored can be reused to store the different pointer
to bonjourServices.

Step it line by line, and watch the values of those variables. Or actually do something with mounts later in the method. Or get rid of mounts if you're
not going to use it.

--
Scott Ribe
[EMAIL PROTECTED]
http://www.killerbytes.com/
(303) 722-0567 voice



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to