Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6702863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:06:12+00:00 2026-05-26T07:06:12+00:00

My application needs to free a very large hash table, and it is incredibly

  • 0

My application needs to free a very large hash table, and it is incredibly slow in debug mode, so slow that I can not realistically work with it…but in release mode I have no debug symbols at all..
I need to debug the executable and understand I should be able to get it to link with release versions of the crt libraries.
I have done this by changing my “code generation” options to use “multithreaded dll” rather than “multithreaded debug dll”, however when I put a breakpoint in my hash table free routine and follow it through to the actual free call, it is using a function in a debug dll.

Anything else I can try? Is it a better option to work with the release configuration and try and get that to generate symbols for the stuff I actually need to debug?

(vs 2010 btw)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:06:12+00:00Added an answer on May 26, 2026 at 7:06 am

    You can have debug symbols despite using release CRT and having all the optimizations turned-on. In fact this is what Visual C++ defaults to in Release configuration (see the Project Properties / Configuration Properties / C/C++ / General / Debug Information Format; and Linker / Debugging / Generate Debug Info). Please note that optimized code might be harder to debug – order of instructions may be changed and some pieces may be optimized-away entirely, causing some unexpected behavior when stepping through the code.

    BTW, to turn-off the debug CRT, it is not enough to just change “Multi-threaded Debug DLL (/MDd)” to “Multi-threaded DLL (/MD)”, you also need to remove _DEBUG from Preprocessor Definitions.

    That being said, the slowness you are experiencing may not be the consequence of your program at all – this may a debugger artifact (i.e. the slowness of reading large data structures for the purpose of displaying them in debugger UI). Please try running your program (Debug or Release configuration – it does not matter much) outside debugger and see if this makes a difference.

    If so, and you can’t make your hash table smaller just for the purpose of debugging, you’ll have to either resort to “printf debugging” (i.e. manually insert diagnostics) or possibly try the remote debugging.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK, so I have a very large multi-threaded unmanaged c++ application (server) that runs
My application needs to know the path to a directory where it can store
Our application needs a simple scheduling mechanism - we can schedule only one visit
I found out that if my application has much free memory available it uses
I'm making a little application that needs to know how long the user has
Analyzing a WCF client application (that I did not write and still do not
I have an application developed using .net that needs to be installed in different
we need reports in our web application and there is the free ReportViewer Control
I have this idea for a free backup application. The largest problem I need
My application needs to execute a fairly complicated series of queries against a database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.