I've made a little application that dynamically loads snmpapi.dll and
mgmtapi.dll and uses SnmpMgrOpen etc. via function pointers.

Only problem I have with this is that 'FreeLibrary(handle_of_mgmtapi.dll)'
is taking a whopping 5 sec to complete!? How can I figure out what's
taking so long? If I do a static bind to the DLLs, all calls happens very
quickly.

I load snmpapi.dll, then mgmtapi.dll. I unload them in reverse order. But
the load/unload order doesn't seem to matter on the FreeLibrary() taking
so much time.

--gv