I have a problem with com's function CoFreeUnusedLibraries. It works fine if i
call it directly, but if you read in its documentation you can call CoLoadLibrary
with a flag bAutoFree. But if i use CoCreateInstance i cannot supply this
parameter.
Has anybody an idea? Is this a COM bug?
Bye
Bernd
"Bernd Unger" <b...@viewpoint-online.com> wrote in message
news:b58b01c0d6d6$e2d7c1f0$9ee62ecf@tkmsftngxa05...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnic...@geocities.com
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Bernd Unger" <b...@viewpoint-online.com> wrote in message
news:b58b01c0d6d6$e2d7c1f0$9ee62ecf@tkmsftngxa05...
If bAutofree is not set in CoCreateInstance - i do not understand the sense of
that stuff...
Bye
Bernd
.
So i think its ok, that a programmer can tell the server to go away at a defined
point in his application.
This "periodically call stuff" i read too in the msdn, but i disagree here
absolutly. It tastes a bit like polling - should i write each second line a
CoFreeUnusedLibraries to reduce the memory footprint of my application? Is that
really what the API designers suggests here? Dont think so...
So the bAutoFree flag seem to be the right thing, bad that i cannot set it in
CoCreateInstance ;-(
Bye
Bernd
.
I don't quite see the cause of your confusion. The documentation for
CoLoadLibrary states in no uncertain terms:
bAutoFree
[in] If TRUE, indicates that this library is freed when it is no longer
needed, through a call to either the CoFreeUnusedLibraries or CoUninitialize
functions. If FALSE, the library should be explicitly freed with the
CoFreeLibrary function.
--
With best wishes,
Igor Tandetnik
"Bernd Unger" <b...@viewpoint-online.com> wrote in message
news:2f9a01c0d78a$00012e70$b1e62ecf@tkmsftngxa04...
My Problem was to read the section of bAutoFree exactly. My opintion was, that
somebody does call CoFreeUnusedLibrary for me (would be nice).
Thanks for your answer.
Bye
Bernd
Bye
Bernd
..
.