Re: Problem instantiating an array
Re: Problem instantiating an array
- Subject: Re: Problem instantiating an array
- From: Wim Lewis <email@hidden>
- Date: Tue, 7 Dec 2010 10:43:15 -0800
On 7 Dec 2010, at 10:11 AM, Dennis wrote:
> But if for example I declare int test[16], the debugger shows the array "test" with 16 members. That's not happening in the case of my code with allColumns. It's displaying an array of -1 members.
It's possible that the debugger simply doesn't know how to discover the length of a variable-length C array (it's a relatively recent addition to the language). Have you tried changing the array size to a literal 15? The array should have the declared size anyway (and asking the debugger to shoe element 3, etc., should still work) even if the debugger doesn't know its size.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden