Itunes SDK with  Delphi

I am using the Windows iTunes SDK with Delphi. I have iTunes 9.1.0.79 installed. When my application starts iTunes is not running. When I execute 'iTunesApp := COitunesapp.Create;' the following exception is raised: exception class EOleSysError with message 'Server execution failed, ClassID: {DC0C2640-1415-875C-6F4D769839BA}'.
iTunes eventually starts and displays its browser window.
This error seems to be a timeout error because it does not occur when iTunes is running when my application starts.
How can I determine when iTunes is ready to accept the 'COitunesapp.create' without producing the error?
Thanks,
Graham Lawrence

Hi Graham
Finally someone using Delphi and iTunes SDK.
Maybe we could have some exchange of thoughts etc.
I haven't seen this problem yet, but I have just recently upgraded to 9.1.
I can't really see how you could check if itunes are "ready" if it's not running.
Did I get it right?
1) itunes not running.
2) Your program connects to itunes and get an exception.
3a) You handle the exception and the program keeps running.
4a) itunes starts "later"
3b) You close the program after the exception.
4b) itunes starts "later"
Regards
Thomas ([email protected])

Similar Messages

  • Where has the iTunes SDk gone?

    I keep finding links to the iPhone SDK but none of them work once I login to the developer site.
    Has this now been deprecated by the iPhone SDK>
    I am looking for the windows COM itunes SDK. Essentially I need to write a touch screen interface for my iTunes and work and use the iTunes library to do so. I also want to build a web interface that I can control the system from say my iPhone as well or another computer in the house.
    Anyway is the iTunes SDK still available anywhere or should I look at the iPhone SDK instead?
    Dan

    Can you use the iTunes Visual Plug-ins SDK instead? I was able to download it from this link: [https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bun dleID=19923].
    The link to iTunes COM for Windows SDK seems to have been redirected to the ADC member front page. However I can't find any notice that it's been discontinued, not even one other forum message or blog from anyone else who can't find it. So could just be a temporary problem. I would contact ADC and/or file a bug against the link.
    I don't understand how you might solve your problem with the iPhone SDK. Maybe if you explain exactly how you want to use an iPhone, someone here will be able to help.
    \- Ray

  • Sharing one itunes account with two computers

    I used to share my itunes account with my sister and our ipods were synched to one computer. We now have two new computers and would still like to continue to share that account. Is it possible to open the same account on two separate computers?

    Explain how you transfer content manually.
    Control-click or right-click it in iTunes, choose Get Info, locate the music files, move them to the other computer's hard disk as you would any other type of file, and then drag them into the open iTunes window. By default on a Mac, dragging them to the open iTunes window also copies them to the hard disk.
    (40011)

  • Can i use 2 ipad's on the same itunes account with different apple accounts?

    Both me and partner have an ipad 4. Though we only have one computer, can we use the same itunes but with different apple acount without any issues? We use some of the same apps, but my partner plays fx Baldus Gate and is worries that save files will be corrupted.

    Each iPad should be linked to its owner's personal, private and nonshared AppleID. In the Mac, each one should have a different login account so each has their own iTunes Library containing your iPad's details. When you use iTunes on the Mac, since each logs in with a different login and corresponding Home directory, iTunes picks up the correct AppleID.

  • Does iTunes come with 32bit and 64bit install?

    I have Windows 7 and it's a 32bit and 64bit Gaming Laptop G73SW.
    I've done all the troubleshoot tips, which has just made my computer worse.eg all icons changed, things now missing, so probably have to do a System Retore to get it all back.
    Every time i speak to Apple,  they're suggestions just make my computer stuffed, iTunes takes over all my programs etc.
    Simply put: Does iTunes come with a 32bit and 64bit Install??? If not i won't be using that program.
    Which makes it hard for my line of work atm as an Alpha and Beta Games Tester for many Private Platforms i play on.

    open minds entertainment wrote:
    It's 1 Computer especially made for games
    Well genius, it's either a 32bit or 64bit system, it cannot be both.
    Please learn to clearly describe the situation or it is unlikely that appropriate and relevant assistance will be provided.
    Keep in mind, these are user to user support forums.  The attitude that you spewed above is unlikely to get you any further assistance.

  • Why when I try to login the Itunes Connect with my Apple ID it always says: "Apple ID does not have permission to access iTunes Connect."?

    Why when I try to login the Itunes Connect with my Apple ID it always says: "Apple ID does not have permission to access iTunes Connect."?

    Look on one of your bank statements and be sure to enter the billing address exactly as it shows on the statement. Some folks forget where they actually get the statement. They put their home address in iTunes/Mac App Store and they actually get the statement at their place of employment or vice versa.

  • My old laptop crashed, and took my iTunes account with it.  I got a new laptop, and want to sync my iTouch to my new iTunes account.  It gives me an error message stating that I can't sync to multiple iTunes accounts, but I can't access my old one!  Help!

    My old laptop crashed, and took my iTunes account with it.  I got a new laptop, and want to sync my iTouch to iTunes.  It gives me an error message stating that I can't sync to multiple iTunes accounts, but I can't access my old one! 
    How can I get my new iTunes account to allow me to Sync my iTouch?  The only option it gives me is to "transfer purchases" from my iTouch to iTunes, but that is only about 25% of my iTunes library-most of it is CDs I have uploaded.  How can I Sync without losing all my music from my iTouch???
    Also, I have lectures and photos, etc. on my iTouch that I don't want to lose.
    I've tried a few of the iPod copy programs-the free ones and the ones you have to pay for, but I can't find one that will work for ALL my content on an iTouch.
    Right now, I can't get anything from my iTouch to iTunes, and I can't update my iTouch with my new iTunes purchases, so I'm stuck!  Help!

    Also-I tried to use my backup hard drive, but I wasn't able to drag/transfer/send/move any of my muic files onto my iTouch when the iTouch was connected to my computer.  I can't figure out why it won't let me do that. 
    The only thing I can see when I open my iTouch on my computer is my file with photos.  I can't see videos, music, or anything else.  What's going on?

  • HT3819 How does this work if i want to share my itunes library with my daughter who has an ipod touch with a different Apple ID??

    How do i share my itunes library with my daughter who has an ipod touch with her own separate Apple ID???

    Can you help me...is it possible to do Home Sharing with my brother who has his own Apple ID for his devices (iPhone, iPod, iPad, MacBook) when I have my own Apple ID for my iPad and iPod? Please explain if possible.  Thanks....

  • Itunes opens with error -50

    Itunes opens with error -50 on my Mac. Once open signing in causes error 5002. Signing in from App store just fails. My Mac pc does not appear to be registered anymore and I can't sign in. On screen Support buttons don't connect so can't contact support online. Tried all the work arounds in discussions but no joy. Even tried deleting itunes to start agin but you can do that apparently. For one work around I Signed in through Safari to change payment details but payment option was not displayed. Getting really p'd off.  All is ok on my iphone/ipad etc but not my main pc. Any printable suggestions appreciated.

    Found a fix that worked, didnt even need to refresh the network settings
    Click the Finder icon in the Dock.
    Choose Go to Folder from the Go menu.
    Type:  /Library/Preferences/SystemConfiguration
    Click Go.
    In the Finder window, locate the file named "NetworkInterfaces.plist" and drag this file to the Trash.
    Restart your computer.
    Once your computer has restarted, you will not be able to connect to the Internet. You will need to refresh your network settings to be able to connect again:
    Choose System Preferences from the Apple () menu.
    Choose Network from the View menu.
    If you're using Mac OS X v10.4, choose New Location from the Locations menu.
    Click Apply Now at the bottom right.
    If your network connection requires any special settings, you will need to put them back in at this point. You would have received these from your ISP or network administrator.

  • I live in Italy and opened my itunes account with an Italian credit card. I want to access only English itunes and Apple said I need to open separate accounts. Any suggestions?

    I live in Italy but am Australian and opened my itunes account with my Italian credit card and address, but that does not let me access itunes in any English country which is what I had wanted. Apple tell me I need to open separate accounts, complete with address and tel. Yesterday they told me I could do that with an itunes prepaid card but on the Aust itunes store the card was considered invalid (obviously because it is in Euro) Any suggestions? I am sure I am not the only person living in another country who needs access to itunes in their mother tongue......how backward is Apple!

    To be able to download content from another country's store you need a valid billing address in that country, and be in that country when buying from it.
    Apple can only sell content where the content provider's grant them licenses to do so, so if the music etc that you want to buy isn't available in the Italian store then it's because the provider's aren't letting Apple sell it there. Do you have access to other music purchase download sites which have the content that you want ?

  • Sharing Itunes library with another User Account & Fast Switching

    Hi. I recently purchased a new iMac G5 and am in the process of setting it up to be used by 2 separate users (girlfriend and me). I apologize in advance if this is more of an Itunes issue and not solely an Administration issue.
    My question deals with creating a new user account on my Mac (with Fast Switching) and allowing my girlfriend to share my iTunes library with the ability to transfer music to her ipod when she is logged into her own unique account. I will be the Administrator on the Mac.
    We are trying to avoid loading our music two times into the Mac under each of our logins. Is there a way that we can share the music I have already loaded into my Itunes library when she is logged into her account so that she can transfer to her ipod and create her own distinct playlists? If so, any advice on how to enable this would be greatly appreciated.
    Thanks.
    Seth
    iMac G5   Mac OS X (10.4.3)  

    Unfortunately, baltwo's solution will not allow your girlfriend to create any playlists or copy songs to iPod.
    The easiest thing would be to share the entire music folder, so anyone of you can listen to your music.
    You'd have two options.
    If you want to be using the exact same library, so any playlist you created can be edited by your girlfriend and vice versa:
    1. Go to yourusername/Music/iTunes. You'll find two files called "iTunes library" and "iTunes music library" Copy them to your desktop, so you'll have a backup just in case.
    2. Move your yourusername/Music folder to computer/users/shared. (The folder will be copied ONLY in case your using FileVault, so you'd have to delete the original User/Music folder after making sure you'd got a functional copy at computer/users/shared) Select users/shared, press "apple+i" to get the info window, go to "Ownership" change all permissions to "read & write" and hit "apply to enclosed items"
    3. In case you're using FileVault, either delete or rename the original Music folder within your own account. Again, not necessary as long as FileVault isn't enabled.
    4. Select computer/users/shared/music, hold down "ctrl" while clicking on it and choose "create alias" from the contextual menu. Copy that alias into your homefolder as well as your girlfriend's account (need to log in) and rename it to "music" without the "alias" at the end.
    5. Launch iTunes. Done.
    6. Don't worry, in case you don't see your music. I've used a slightly different approach, yet this one should work totally fine.
    If you want to listen to the same music, yet be able to set up your own playlists, ratings etc.:
    For your account:
    - go to yourusername/Music/iTunes, move "iTunes Music" to computer/users/shared and change ownership according to #2.
    - If FileVault is enabled, check #3. Of course, you want to rename the original "iTunes Music" in this case.
    - create an alias for computer/users/shared/iTunes Music and copy the alias to yourusername/Music/iTunes. Rename it to "iTunes Music" without "alias".
    - Launch iTunes. Should be working the way it used to. Quit.
    For your girlfriend's account:
    - log in, copy alias to username/Music/iTunes, rename alias.
    - Launch iTunes, go to File-> Add to Library, select username/Music/iTunes/iTunes Music, choose.
    That's it.
    The only downside is, only one user at a time can access the music folder, so if you're logged in and running iTunes, you're girlfriend, logged in via fast user switching, won't be able to open iTunes until you quit it for yourself. Haven't found a way around this yet.
    Fell free to report any issues.
    huhh...rather long posting...

  • I tried to install the new iOs 7 on my iphone 4, but it wasn't completed (showing error 4005). Now, my iphone is stuck on the itunes' logo with the usb cord, and I can't use my phone. And itunes doesn't detect my iphone when I connect it on my computer.

    Hi everyone! I tried to install the new iOs 7 on my iphone 4, but it wasn't completed (showing error 4005). Now, my iphone is stuck on the itunes' logo with the usb cord, and I can't use my phone. And itunes doesn't detect my iphone when I connect it on my computer, so I can't put it in recovery mode or someting like that... What can I do?? I tried everything they tell me to do in the apple support but nothing seems to work. Thank you!

    No problem, glad to help!
    Update: my PC USB hub was connected to a USB 3 port, I connected the 30 pin cable directly to my PC, And the restore worked just fine. Restored phone from iCloud backup and seems to be working fine.

  • I tryed to update my iphone and now my phone screen show the itunes logo with a wire and won't turn on, i tryed to update my iphone and now my phone screen show the itunes logo with a wire and won't turn on

    i tryed to update my iphone and now my phone screen show the itunes logo with a wire and won't turn on, i tryed to update my iphone and now my phone screen show the itunes logo with a wire and won't turn on

    Did you try to connect in recovery mode to your computer, explained in this article?
    iOS: Unable to update or restore

  • Using stored procedures with a timestamp parameter with Delphi  and ADO

    Dear Oracle experts,
    I have a problem concerning using a stored procedure with Delphi.
    I try to use a stored procedure which hast two input parameters ( a integer and a timestamp).
    The timestamp parameter is my problem since I would like to use the "to_timestamp"
    Oracle-function to create the timestamp parameter to be inserted into my procedure.
    If I insert the to_timestamp statement as a adodatetime I have to perform the conversion to the oracle timestamp in my application.
    If I want to use the to_timestamp statement I have to use the ftstring datatype but in that case I get an error because I use a string as input for my procedure were it awaits a timestamp.
    So the problem seems to be that the function call "to_timestamp" is not interpreted if it is transferred through my ADO component.
    Do you know how to use a procedure with Delphi (ADO) with a function as input parameter ?
    Best regards,
    Daniel Wetzler
    P.S. :
    This is the Delphi code to use my Procedure.
    FactsTempDS:=TADODataset.Create(nil);
    Sproc1 := TAdoStoredProc.Create(nil);
    Sproc1.Connection := TDBConnection(strlistConnectionstrings.objects[iConnectionIndex]).Connection;
    Sproc1.ProcedureName := 'ECSPACKAGE.PROCFINDINITIALSWITCHSTATE';
    Sproc1.Parameters.CreateParameter ('SwitchID',ftInteger,pdinput,0,0);
    //Sproc1.Parameters.CreateParameter ('StartTime',ftdatetime,pdinput,50,0);
    Sproc1.Parameters.CreateParameter ('StartTime',ftString,pdinput,50,0);
    Sproc1.Parameters.Findparam('SwitchID').value:=SwitchID;
    Sproc1.Parameters.FindParam('StartTime').Value:= 'to_timestamp(''2005/12/30 19:36:21'', ''YYYY/MM/DD HH:MI:SS'')';
    Sproc1.CursorType := ctKeyset;
    Sproc1.ExecuteOptions:=[];
    Sproc1.Open;
    Sproc1.Connection := nil;
    FactsTempDS.Recordset:= sproc1.Recordset;
    if FactsTempDS.RecordCount=0
    then raise Exception.Create('No line switch variable found for switch '+IntToStr(SwitchID)+' before starttime. Check BDE dump filter.')

    I have my entity manager setup in a singleton.
    I'm finding it's costly to generate the emf, but if I don't close the em (enitity manager) and emf (entity manager factory) my open cursor count climbs until I exceed the max number of open cursors on the database (11g RAC)
    I'm committing the connection, and uow, and closing the em at the end of each call.
    But until I close the emf, the open cursors aren't released.
    TransactionhistoryPkg tranPkg = new TransactionhistoryPkg(conn); //Class created over database package via JPublisher
    tranPkg.transactionhistoryInsSp(insertTrans.getCardId()); // executes db package
    tranPkg.closeConnection();
    conn.commit();
    uow.commit();
    uow.getAccessor().decrementCallCount();
    em.close();
    Am I missing something really obvious here??
    btw - I found this link helpful in troubleshooting the max cursors issue: https://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingORA-1000MaximumOpenCursorsExceededPattern.html

  • I have an iTunes account with a $25.00 credit but everytime I go to purchase a song, it goes to my credit card details. How do I use the iTunes credit and not the credit card?

    I have an iTunes account with a $25.00 credit but everytime I go to purchase a song, it goes to my credit card details. How do I use the iTunes credit and not the credit card?

    Just to confirm, you are logged into the iTunes Store using the account in which the balance exists, and the balance is showing at the top of the iTunes Store window? And you're not trying to purchase gifts for someone else?

Maybe you are looking for

  • Facing Issue with Stock Ageing report

    In Blocked Stock Ageing report Output, I am facing following issues 1. Stock is correct but once we include the "Reason For Movement" then the aging is getting wrong  and in some cases value is coming Negative. 2. In some cases "Reason For Movement"

  • Excise invoice number in Billing document number

    Hi Customer incoming payments are made with reference to Excise invoice number. We dont have this number while clearing incoming payments through F-28. How can we bring in Excise invoice number in the accounting document for billing invoice ( thro' V

  • Print GL Report by Financial Posting Period in General Settings

    Hi With reference to Message 859185, we would like to request for improvement to have an option to select Financial Period range according to the Posting Periods define in General Settings in order to obtain a more accurate Financial result when prin

  • Organizing Itunes for multiple artists

    Is there a way to to make a song with multiple artists appear under the names of both the artists? Is there a character I can use so that the song appear under each artist's list and doesn't create a special folder for the two artists together? For e

  • Ram preview not playing from first frame

    Anyone else having problems with Ram preview playing back from a different spot in the timeline OTHER than the first frame? I have seen this happening consistently since the latest update (2014.2). I checked my preferences, and made sure nothing is a