在调用gethostname的时候,如下dll被加载了:
Loaded 'C:\WINNT\system32\rnr20.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\iphlpapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\icmp.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\mprapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\activeds.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\adsldpc.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rtutils.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\setupapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\userenv.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasapi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasman.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\tapi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\dhcpcsvc.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\winrnr.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasadhlp.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\msafd.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\wshtcpip.dll', no matching symbolic information found.
而gethostname在整个程序运行中我只需要调用一次.我不希望这些dll常驻内存,ws2_32.dll我动态加载的.调用gethostname后我释放了这个dll.但是如上的dll却没有跟着释放掉.这是什么意思?dll不是有应用计数吗?还有谁在用这些没有释放的dll?有没有办法释放掉这些dll?高手们请发表一下意见.
Loaded 'C:\WINNT\system32\rnr20.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\iphlpapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\icmp.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\mprapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\activeds.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\adsldpc.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rtutils.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\setupapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\userenv.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasapi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasman.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\tapi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\dhcpcsvc.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\winrnr.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasadhlp.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\msafd.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\wshtcpip.dll', no matching symbolic information found.
而gethostname在整个程序运行中我只需要调用一次.我不希望这些dll常驻内存,ws2_32.dll我动态加载的.调用gethostname后我释放了这个dll.但是如上的dll却没有跟着释放掉.这是什么意思?dll不是有应用计数吗?还有谁在用这些没有释放的dll?有没有办法释放掉这些dll?高手们请发表一下意见.
使得编译器自动加载