CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > C++ and WinAPI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    C++ and WinAPI Discuss Windows API related issues using C++ (and Visual C++). This is a non-MFC forum.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 4th, 2009, 01:19 AM
    Peter_APIIT Peter_APIIT is offline
    Senior Member
     
    Join Date: Apr 2007
    Location: Mars NASA Station
    Posts: 1,379
    Peter_APIIT will become famous soon enough (80+)
    [RESOLVED] The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Hello to all, i have developed an application that required this dll must resize along the exe.

    When i execute the exe, it pop out a error message like the _malloc_dbg could not be located.

    I wonder what is .lib for this dll.

    AFAIK, there must be some export library file that need to used together with dll.

    Please help.

    Thanks.
    __________________
    Thanks for your help.
    Reply With Quote
      #2    
    Old November 4th, 2009, 01:30 AM
    Snoopy07 Snoopy07 is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 14
    Snoopy07 is an unknown quantity at this point (<10)
    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Hi
    msvcr71.dll is a process belonging to the Microsoft C Runtime Library program . msvcr71.dll is a module containing standard C library functions such as printf, memcpy, and cos. It is a part of the Microsoft C Runtime Library.

    _malloc_dbg

    requires the header <crtdbg.h>.

    maybe you forogot to include it.
    Reply With Quote
      #3    
    Old November 4th, 2009, 03:49 PM
    MrViggy's Avatar
    MrViggy MrViggy is offline
    Elite Member
     
    Join Date: Feb 2002
    Posts: 3,775
    MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)
    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Quote:
    Originally Posted by Peter_APIIT View Post
    Hello to all, i have developed an application that required this dll must resize along the exe.

    When i execute the exe, it pop out a error message like the _malloc_dbg could not be located.

    I wonder what is .lib for this dll.

    AFAIK, there must be some export library file that need to used together with dll.

    Please help.

    Thanks.
    Did you compile the "Release" version of the EXE? Judging by the name of the unfound function, it looks like it's a debug version.

    Viggy
    Reply With Quote
      #4    
    Old November 6th, 2009, 02:14 AM
    Peter_APIIT Peter_APIIT is offline
    Senior Member
     
    Join Date: Apr 2007
    Location: Mars NASA Station
    Posts: 1,379
    Peter_APIIT will become famous soon enough (80+)
    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    I link with the MSVCR.dll but i just renamed it to MSVCRD.dll.

    I compile in debug version.
    __________________
    Thanks for your help.
    Reply With Quote
      #5    
    Old November 6th, 2009, 11:37 AM
    MrViggy's Avatar
    MrViggy MrViggy is offline
    Elite Member
     
    Join Date: Feb 2002
    Posts: 3,775
    MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)
    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Well, that's the problem then. You can't rename the release DLL to the same name as the debug DLL. That function is a debug function and is not compiled into the release DLL.

    Either compile in release, and link with the release CRT library; or compile in debug and link with the debug CRT library.

    Viggy
    Reply With Quote
      #6    
    Old November 6th, 2009, 11:30 PM
    Peter_APIIT Peter_APIIT is offline
    Senior Member
     
    Join Date: Apr 2007
    Location: Mars NASA Station
    Posts: 1,379
    Peter_APIIT will become famous soon enough (80+)
    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    I really thanks for your advice.

    What is the difference between a debug dll and release dll ?
    What kind of symbol that is available in debug mode but not in release mode ?

    A billion thanks for your help.


    Problem solved.
    __________________
    Thanks for your help.

    Last edited by Peter_APIIT; November 6th, 2009 at 11:51 PM.
    Reply With Quote
      #7    
    Old November 9th, 2009, 12:00 AM
    Paul McKenzie Paul McKenzie is offline
    Elite Member
    Power Poster
     
    Join Date: Apr 1999
    Posts: 20,404
    Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)Paul McKenzie has a reputation beyond repute (3000+)
    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Quote:
    Originally Posted by Peter_APIIT View Post
    I link with the MSVCR.dll but i just renamed it to MSVCRD.dll.
    You shouldn't be fooling around with those DLL's like that.

    Those DLL's are part of the 'C' runtime library, and renaming them not only causes issues with your application, but any application that requires those DLL's will not work properly.

    No programmer needs to rename these DLL's -- the problem is your code or whatever else you're doing, not the names of DLL's that millions of computers around the world rely on.

    Regards,

    Paul McKenzie
    Reply With Quote
      #8    
    Old November 9th, 2009, 12:46 PM
    MrViggy's Avatar
    MrViggy MrViggy is offline
    Elite Member
     
    Join Date: Feb 2002
    Posts: 3,775
    MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)MrViggy has much to be proud of (1500+)
    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Quote:
    Originally Posted by Peter_APIIT View Post
    I really thanks for your advice.

    What is the difference between a debug dll and release dll ?
    What kind of symbol that is available in debug mode but not in release mode ?

    A billion thanks for your help.


    Problem solved.
    The debug versions have been compiled with compiler/linker debug options enabled; and possibly may contain more functions then release (optimized) versions.

    Viggy
    Reply With Quote
      #9    
    Old November 10th, 2009, 02:43 AM
    Peter_APIIT Peter_APIIT is offline
    Senior Member
     
    Join Date: Apr 2007
    Location: Mars NASA Station
    Posts: 1,379
    Peter_APIIT will become famous soon enough (80+)
    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Thanks.
    __________________
    Thanks for your help.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > C++ and WinAPI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 12:24 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009