Can't process UIImage from UIImagePickerController and app crashes

Hello guys, I am new to iPhone sdk and can't figure out why my application crashes.
In the .h I have:
UIImage *myimage; //so as it can be used as global
-(IBAction) save;
@property (nonatomic, retain) UIImage *myimage;
In the .m I have:
@synthesize myimage;
- (void)viewDidLoad {
self.imgPicker = [[UIImagePickerController alloc] init];
self.imgPicker.allowsImageEditing = YES;
self.imgPicker.delegate = self;
self.imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
myimage = [[info objectForKey:UIImagePickerControllerOriginalImage]retain];
[picker dismissModalViewControllerAnimated:YES];
-(IBAction) process{
myimage=[self process:myimage var2:Val2 var3:Val3 var4:Val4];
UIImageWriteToSavedPhotosAlbum(myimage, nil, nil, nil);
[myimage release];
When the button process is clicked, the application crashes and really I have no idea why this happens. When i change it to:
-(IBAction) process{
myimage =[UIImage imageNamed:@"im1.jpg"];
myimage=[self process:myimage var2:Val2 var3:Val3 var4:Val4];
UIImageWriteToSavedPhotosAlbum(myimage, nil, nil, nil);
[myimage release];
the process button works perfectly...
Any help would be appreciated.
Thanks in advance

As a registered developer, you have access to the developer discussions area where you should post this question.

Similar Messages

  • How can I transfer all my music and apps from my computer to my new iphone?

    how can I transfer all my music and apps from my computer to my new iphone?

    This is one of the most basic of functions of the iPhone.  This is a good time for you to read the User Guide.  All the instructions on how to operate yor phone are included.  I suggest you read through it.
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • TS4291 I can't send mail from my iPad apps, I just get the error message, 'The recipient- was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.

    I can't send mail from my iPad apps, I just get the error message, 'The recipient… was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    eMail Groups - You can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Where can I find the purchases that were made from itunes and apps?

    Where can I find the purchases that were made from itunes and apps?

    You can view the full purchase history on your account via your computer's iTunes : log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases.
    On an iOS device you can only view the last 90 days purchases (and optionally contact iTunes Support if you have a problem with one of them) via http://reportaproblem.apple.com

  • Hi i just buy a macbook how can i transfer all my musics and apps from my iphone to my new itune?

    hi i just buy a macbook how can i transfer all my musics and apps from my iphone to my new itune?

    1) authorize iTunes on the new machine for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    for everything else, check out this post by Zevoneer.
    also, there are PhoneView and iRip.

  • My iPad is downloading my video purchases automatically, but it's only downloading two episodes from Supernatural S10 that I have watched and deleted. I can't stop it from downloading, and I can't download anything else because of it. Help!

    My iPad is downloading my video purchases automatically, but it's only downloading two episodes from Supernatural S10 that I have watched and deleted. I can't stop it from downloading, and I can't download anything else because of it. I don't know what to do. There is some sort of glitch happening and it's really affecting my iPad. I've tried letting it download but before it completes, it says it is unable to complete process and asks me to try again. I am on a limited interest data plan and can't afford these downloads to continue. What can I do?

    Have you tried deleting the App within the Settings menu (rather than from the Home Screen)?
    Settings>General>Usage>
    From the Apps list, find the App (press "Show all Apps" if the app is not in the immediately shown list), tap on the app you wish to delete, then tap "Delete App"

  • Hi all, My Old Laptop that had my Itunes, has died a death and cannot be saved. How can I save or access all my music and apps now? Can I set up a new Itunes account? Also I am getting an upgrade to Iphone 4 can I transfer all my music and apps on to it?

    Hi all, My Old Laptop that had my Itunes, has died a death and cannot be saved.
    How can I save or access all my music and apps now?
    Can I set up a new Itunes account?
    Also I am getting an upgrade to Iphone 4 ,can I transfer all my music and apps on to it?

    roaminggnome wrote:
    Why would you set up a new account?
    Copy everything from your backup copy of your old computer to your new one.
    Its wrong to assume that everyone has a backup copy.
    are you PC or Mac?

  • Can no longer find my music and apps on itunes and when i try to sync it tells me its going to erase all that is in my phone and sync the new itunes which has nothing in it

    can no longer find my music and apps on itunes and when i try to sync it tells me its going to erase all that is in my phone and sync the new itunes which has nothing in it

    See Empty/corrupt library after upgrade/crash or
    Recover your iTunes library from your iPod or iOS device.
    tt2

  • I am getting no sound from all of the game apps on my ipad. i.e. angry birds, scrabble, but I can still get sound from the ipod app.  also I can hear the games if I am using earphones

    i am getting no sound from all of the game apps on my ipad. i.e. angry birds, scrabble, but I can still get sound from the ipod app.  also I can hear the games if I am using earphones

    You have your mute button on.  In Settings check to see if you have Lock Orientation checked or Mute checked on the right hand side.  If you have Mute checked, all you need to do is click the mute button above the volume control buttons on the upper right hand side of your iPad.  If you have Lock Orientation checked in settings, you double click your home button and the most recent apps will appear.  Swipe your finger to the right until the Mute icon appears on the left side.  Touch it and you will unmute system sounds.

  • How can I stop iTunes from transferring purchased apps from iPad to computer?

    How can I stop iTunes from transferring purchased apps from iPad to my computer? I don't want them taking up space on my computer. iPad backups and apps on the cloud are enough to ensure my apps are backed up, so I don't understand why they need to be on iTunes too. I'm running Mavericks, iTunes 11.1.5 and iOS 7.0.6.

    There isn't an app for that!
    As far as I can tell there is no option to give you that control. It is worth noting that apps can be withdrawn from the store at any time. Should your device need restoring you need all the apps in your library to transfer to it before the app data can be successfully restored. Pulling that all down from the cloud would be time consuming.
    If space is becoming an issue you should consider moving the library to a bigger drive (which you should also backup to another).
    As a temporary measure you could try deleting some larger apps using Finder from within iTunes/iTunes Media/Mobile Applications while keeping the entries in your library. iTunes may complain during syncs that it cannot copy apps to the device because they cannot be found, but it should not clear them from the device. Test first on a single app that doesn't have any data that you would mind losing in case the behavior has changed from the last time I tested it.
    tt2

  • HT1296 can i sync content from "safe note" app from iPod to iPhone?

    can i sync content from "safe note" app from iPod to iPhone?

    No.
    If you aren't syncing contacts with a supported address book app on your computer, and/or not syncing contacts over the air with an email account on your iPhone that supports this with a number of accounts that do which are free including a free Apple iCloud account, and your iPhone's backup is not being done wirelessly with a free Apple iCloud account and you don't have a backup for your iPhone on a computer, your contacts will be lost.

  • Whenever I reply to an e-mail the window comes up but without the paper airplane in the top left corner.  The only way to send the reply is to close it and save as a draft.  Then I can pull it up from Drafts and it has the airplane on it.

    Whenever I reply to an e-mail the window comes up but without the paper airplane in the top left corner.  The only way to send the reply is to close it and save as a draft.  Then I can pull it up from Drafts and it has the airplane on it.

    Launch Mail.
    Click "New Message" in the Toolbar.
    When the new message window opens up, click "View" menu in the menu bar.
    Select "Show Toolbar" from the dropdown.
    or
    Select "Customize Toolbar from the dropdown.
    When the Customize Toolbar sheet drops down, drag  "Send" button
    or  drag "default set" into the toolbar.
    Click "Done".

  • How can i transfer my Ipad Library and Apps to a new laptop - my old one died

    How can i transfer my Ipad Library and Apps to a new laptop - my old laptop died before i could backup my library to an external hardrive

    You will need to do this via iTunes to start with as you need to copy your iTunes files to the new computer.
    If you have everything on your iPad you can select "transfer purchases..." when plugging your iPad into your new computer and in iTunes (right/ctrl click the iPad icon) after telling iTunes to not sync this iPad.
    Once the items are in the new iTunes then when it asks if you wish to sync to this new iTunes your items will be copied to the iPad again.
    However if you do not have all iTunes items on your iPad, then you will need to follow the instructions on to move iTunes first, then deal with your iPad.
    Transfering your iTunes to a new computer:
    http://support.apple.com/kb/HT4527?viewlocale=en_US&locale=en_US

  • How can I transfer books from kobo ipad app to another ipad

    How can I transfer books from kobo ipad app to another ipad with a kobo ipad app.

    On the other iPad's kobo app, sign in. It should automaticaly load you books with your account. Hope this helps.

  • Just bought a new iPhone and am having trouble with iTunes and App Store. I can log in to Cloud, iTunes, and app store but once I try to download, it says "Youe apple id has been disabled". I've reset my password three times and have no issue on my Pad.

    Just bought a new iPhone and am having trouble with iTunes and App Store. I can log in to Cloud, iTunes, and app store but once I try to download, it says "Youe apple id has been disabled". I've reset my password three times and have no issue on my Pad.

    Hi FuzzyDunlopIsMe,
    Welcome to the Support Communities!
    It's possible that resetting your password multiple times has triggered this security.  Click on the link below for assistance with your Apple ID Account:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Here is some additional information regarding your Apple ID:
    Apple ID: 'This Apple ID has been disabled for security reasons' alert appears
    http://support.apple.com/kb/ts2446
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Click on My Apple ID to access and edit your account.
    Cheers,
    - Judy

Maybe you are looking for

  • By clicking on  a button all the check boxes i have should be checked

    Hi all, Im having a button 'SELECT ALL', by clicking on that all the check boxes i have in my view should be checked. Help me out with procedure and the sample code. Thanks & Regards, Suresh

  • PDF Files in Safari

    In the "good old days," Safari used to open all PDF files in a window within Safari, using an Acrobat product by default, and without asking me each time what application I wanted to use. Now, after some software crashes, Safari asks me to pick an ap

  • Slider not rendering font size of text on another page

    I am using a slider to control the font size of the text. On one page, I have the slider setup as follows: <Grid Grid.Row="3" Margin="10,4.5,0.667,0">     <Slider x:Uid="FontSlider" x:Name="FontSlider" Header="Select font size" HorizontalAlignment="L

  • From PP to DVD - simpliest way ?

    Hi gentlemen, I have about 1 hour of video, on the timeline and with to burn out a test DVD of this footage. I chose the export function, then Adobe Media encoder -> MPEG2-DVD ......but PP wants to burn out a .m2v video file. ?? .... I want to burn a

  • Unable to download OS X Mavericks through app store

    I've tried all day to download but it wont do anything. Need help