Check for loaded DLLs

Hi , I wanted to pass on one of the methods that has helped in the past, in debugging client server applications, in which you may have several version of your dll. Making use of small utilities like WPS/Killer/Nuke in determing the DLL that is lodaed at run time. This helps you to sometimes sort of understand in which portion of your application, a problem occurs.

This becomes really useful when you distribute your software to users not necessarily in the same location and on diverse platforms (w3.1,w95, nt and so on). Sometimes a dump of the active dll's helps you nail down the problem.



Comments

  • 뭔소리여

    Posted by Legacy on 01/16/2004 12:00am

    Originally posted by: 흐미

    영어를 모른게 뭔소린지 하나도 모르겄네 ㅡ.ㅡ;

    Reply
  • Here's some utilities

    Posted by Legacy on 03/09/1999 12:00am

    Originally posted by: Steve Greenland

    There is a nice DLL listing tool at http://www.sysinternals.com/ , along
    with a bunch of other cool tools.

    steve

    Reply
  • Here this should work

    Posted by Legacy on 03/02/1999 12:00am

    Originally posted by: Michael

    // MODULE INFORMATION
    
    // maybe from MSDN listing - modified since then

    unsigned char *p = NULL;
    MEMORY_BASIC_INFORMATION info;
    char mod_list[2048]; // space for retrieved mod names.
    char mod_name[MAX_PATH];
    mod_list[0] = '\0';

    for( p = NULL;
    VirtualQuery(p, &info, sizeof(info)) == sizeof(info);
    p += info.RegionSize )
    {
    if ( (info.AllocationBase == info.BaseAddress) &&
    (GetModuleFileName((HINSTANCE)info.AllocationBase,
    mod_name, sizeof(mod_name))) )
    {
    strcat(mod_list, mod_name);
    strcat(mod_list, "\r\n");
    }
    }
    MessageBox(NULL, mod_list, "Modules", MB_OK);

    Reply
  • Check for loaded DLLs

    Posted by Legacy on 01/05/1999 12:00am

    Originally posted by: T. Sandy Matthews

    Sounds like a good idea. But I am reminded of the old joke:
    Do you know how to keep an idot in suspense?
    I'll tell you tomarow!
    What I am getting at of course, is where is the example?

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • CentreCorp is a fully integrated and diversified property management and real estate service company, specializing in the "shopping center" segment, and is one of the premier retail service providers in North America. Company executives travel a great deal, carrying a number of traveling laptops with critical current business data, and no easy way to back up to the network outside the office. Read this case study to learn how CentreCorp implemented a suite of business continuity services that included …

Most Popular Programming Stories

More for Developers

RSS Feeds