EXC_BAD_ACCESS on SourceTypeCamera...?

Discussion in 'iOS Development' started by cybohemia, Feb 7, 2009.

  1. cybohemia

    cybohemia New Member

    Joined:
    Jan 25, 2009
    Messages:
    49
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    I'm using the UIImagePickerController to access the camera but when I get to the line:


    imagePicker.sourceType = UIImagePickerContollerSourceTypeCamera;

    I get a "EXC_BAD_ACCESS" error on the console.

    Has anyone encountered this problem?

    (I'm running a Device 2.2 Release build off my iPhone.)
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    I've never had that problem, and I do quite a lot with the camera. Can we see the snippet of your code so we can try to resolve the issue?
  3. cybohemia

    cybohemia New Member

    Joined:
    Jan 25, 2009
    Messages:
    49
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    I ended up moving a number of things around in the code and re-starting the device and the problem went away. The code changes were wishful/hopeful random changes so my guess is that the device reboot may have helped. (I'm not sure why but there does seem to be some voodoo stuff sometimes...)

    Thanks!

Share This Page