• 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
Re: Problem instantiating an array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem instantiating an array (From: Dennis Birch <email@hidden>)
 >Re: Problem instantiating an array (From: Ken Thomases <email@hidden>)
 >Re: Problem instantiating an array (From: Dennis <email@hidden>)

  • Prev by Date: Re: Problem instantiating an array
  • Next by Date: Re: Problem instantiating an array
  • Previous by thread: Re: Problem instantiating an array
  • Next by thread: Re: Problem instantiating an array
  • Index(es):
    • Date
    • Thread