On Sun, 29 Apr 2001, Andreas Beck wrote:
> > Is there a way to ask libggi, how often an extension is attached to
> > it?
>
> You did read my mail "Re: ggiExtensionAttach problem" ? You get told how
> often an extension was already attached when you attach it.
Yep. That allowed me to fix the ggi*Attach() functions in the
extensions. TNX.
> However I'd like to know why you want to know it ?
I want to know that _before_ calling ggiExtensionDetach(), because
ggi{GA|Ovl|Blt}Detach() want to free private structure in the last
instance, which are stored in the visual. And when I call
ggiExtensionDetach() before, then a segfault occures. Maybe
ggiExtensionDetach() frees the priv, but it can't free a dynamic list
at all...
Actually, I did the work with the patch attached to my other mail.
It works fine for me.
> I mean when you need it, you just attach it, when you don't need it anymore
> you detach. Please don't try any "if it already is attached, I don't need to
> attach" games.
Don't worry about that. :)
> - you don't know what the user or other libs do in the meantime.
That's why I will ask in the ggi*Detach() function and not hold a
static global variable holding the return code of
ggiExtensionAttach().
CU,
Christoph Egger
E-Mail: [EMAIL PROTECTED]