• 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: GDB crashing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB crashing


  • Subject: Re: GDB crashing
  • From: Philip Aker <email@hidden>
  • Date: Sat, 14 Apr 2007 23:34:42 -0700

On 2007-04-14, at 21:13:41, Ed Martin wrote:

the actual line in my source code is the property >= kColFirst, the crash happens when i click "Step Over" and the application goes to this line

        if (property >= kColFirst){

this is happening inside an Item-data callback for the DataBrowser

Just guessing -- we really need to see code -- but one thing to be aware of with DataBrowser is that Apple reserves column values less than 1024.
I believe that most Mac folks would naturally use a switch on legitimate FourCharCode values in DB callbacks:


In header
enum {
	kColFirst = 'Frst',
};

In callback:

	switch( property ) {
		case( kColFirst ): {
			// do stuff
			break;
		}
	


Philip Aker email@hidden _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: GDB crashing
      • From: Ed Martin <email@hidden>
References: 
 >GDB crashing (From: Ed Martin <email@hidden>)

  • Prev by Date: Re: GDB crashing
  • Next by Date: Re: Bus error with gcc on simple function?
  • Previous by thread: Re: GDB crashing
  • Next by thread: Re: GDB crashing
  • Index(es):
    • Date
    • Thread