[vorbis-dev] new DLL additions in core libs
Chris Wolf
cwolf at starclass.com
Wed Sep 12 17:16:21 PDT 2001
>> On 9/12/2001 at 5:30 PM xiphmont at xiph.org wrote:
>>
>> >On Wed, Sep 12, 2001 at 02:02:36PM -0700, Chris Wolf wrote:
>> >> In that case, I think I have an alternative workaround, so that we can
>> >lose the DLL
>> >> shared memory stuff...
>> >
>> >What's the idea?
>> >
>> >Monty
>>
>> Well, I was going to try it first to make sure it worked... I was
>thinking
>> instead of using statically initialized arrays in registry.c, use
>dynamic allocation
>> something along the lines of _vi_psy_copy, which does not have this
>problem.
>
>OK. So the basic problem is that static externs are unsharable?
>
>Monty
If you want to maintain data hiding (encapsulation), you could replace the exportbundle static arrays
with copy functions along the lines of _vi_psy_copy, thus you would have a sort of lazy initialization,
and the allocation would take place in the caller's DLL.
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev
mailing list