• 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: DKIOCCDREADTOC ioctl() fails during debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DKIOCCDREADTOC ioctl() fails during debugging


  • Subject: Re: DKIOCCDREADTOC ioctl() fails during debugging
  • From: "Justin C. Walker" <email@hidden>
  • Date: Wed, 31 May 2006 08:45:36 -0700


On May 31, 2006, at 07:48 , Stephen F. Booth wrote:

I have run into a rather strange problem I can't get my head around.

I have a program that works correctly when run from Xcode or Finder, but if I try to debug it a certain section of code fails every time. I am simply opening a CD using opendev() than calling ioctl() to read the disc's TOC:

_fd = opendev((char *)[[self deviceName] fileSystemRepresentation], O_RDONLY | O_NONBLOCK, 0, NULL);

if(-1 == ioctl([self fileDescriptor], DKIOCCDREADTOC, &cd_read_toc)) {

I've omitted the error handling code, but I do checking. opendev() works every time, but as I mentioned, ioctl() fails from the debugger. Any ideas why?

The system generally will tell you why something failed. I don't think anyone here is in a position to guess why.


Cheers,

Justin

--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >DKIOCCDREADTOC ioctl() fails during debugging (From: "Stephen F. Booth" <email@hidden>)

  • Prev by Date: Re: DKIOCCDREADTOC ioctl() fails during debugging
  • Next by Date: Re: launchd, agents and tn2083
  • Previous by thread: Re: DKIOCCDREADTOC ioctl() fails during debugging
  • Next by thread: forward-porting
  • Index(es):
    • Date
    • Thread