• 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
Initializing static C++ class variable in a HAL plugin problem (Modifié par Stéphane Letz)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Initializing static C++ class variable in a HAL plugin problem (Modifié par Stéphane Letz)


  • Subject: Initializing static C++ class variable in a HAL plugin problem (Modifié par Stéphane Letz)
  • From: Stéphane Letz <email@hidden>
  • Date: Mon, 31 Jan 2005 14:26:19 +0100
  • Resent-date: Mon, 31 Jan 2005 19:25:47 +0100
  • Resent-from: Stéphane Letz <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: CoreAudio API <email@hidden>

Hi,

I'm using an Objective C framework that implement some initializing code in its "load" method. This initializing code access a AudioHardarePlugIn loaded by the HAL. This plug-in use static C++ class variables. It appears that the static C++ class variables are not initialized properly.

I read in the following page that says "load " is executed before main :
http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/gcc/ objective-c.html


Since "load" is called early, it seems that static C++ class variables are not yet initialized.
I'm a bit confused : does the HAL plug-ins require some special linker option to be used to be sure C++ class variables will be initialized?


Of is the problem in the fact that Objective C load method should not be used this way?

Thanks

Stephane Letz

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


  • Follow-Ups:
    • Re: Initializing static C++ class variable in a HAL plugin problem (Modifié par Stéphane Letz)
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: Complex Play Thru app fails
  • Next by Date: Re: Apple Lossless
  • Previous by thread: Re: Complex Play Thru app fails
  • Next by thread: Re: Initializing static C++ class variable in a HAL plugin problem (Modifié par Stéphane Letz)
  • Index(es):
    • Date
    • Thread