realbasic-nug
[Top] [All Lists]

Re: CDDB2 and RB

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: CDDB2 and RB
From: Charles Yeomans <charles at declareSub dot com>
Date: Fri, 29 Sep 2006 15:03:28 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <CFEB2492-B91D-42E8-82F8-CBDC6C4CEF50 at med dot uni-muenchen dot de>
Probably you need the correct library for OS X, and you need to change the reference to that library in the declarations below.

Charles Yeomans

On Sep 29, 2006, at 2:57 PM, Dirk Varnholt wrote:

Hi.
After registering with gracenote i tryed to get some infos from the cddb2. Works fine. But on quit of the application it crashes. Here's the shortest code to show the problem.

Anybody did something with success? (i looked at tobyrush.com but his is for PPC, not Carbon)

  Dim erg as integer
  Dim m as new MemoryBlock(4)

Declare Function CddbMacInitialize Lib "CDDBCarbonLib" (that as Ptr, qdGlobals as integer) as integer Declare Function CddbControl_Shutdown Lib "CDDBCarbonLib" (that as integer) as integer Declare Function CddbTerminate Lib "CDDBCarbonLib" (that as integer) as integer

  erg=CddbMacInitialize(m,0)
  ' initialize more, do lot of stuff. everything works fine
  erg=CddbControl_Shutdown(m.long(0))
  erg=CddbTerminate(m.long(0))
  ' but if i terminate everything, the app crashes
  quit
_______________________________________________

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • CDDB2 and RB, Dirk Varnholt
    • Re: CDDB2 and RB, Charles Yeomans <=