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 7553307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:00:50+00:00 2026-05-30T11:00:50+00:00

I am dealing with a very peculiar problem at the moment: I have an

  • 0

I am dealing with a very peculiar problem at the moment: I have an application that is fully working in Debug-Buildmode, whether I run it from the MSVC environment or start the built executable myself. If I build this application in Release-Buildmode, it is fully working when I run it from the MSVC environment, but shows unexpected behavior when I start it myself.

What differences between the Debug and Release mode could be the reason for this behavior, and why do the problems only occur when I start the executable manually?

It’s hard to give code, since it is quite a big project and I have absolutely no clue what could be causing the problem. The program flow is basically:

  • Read settings from file (not the problem, double checked the read values, and used an ini- and the libconfig++-library to be sure)
  • Distribute values to seperate classes (double checked the passed values)
  • One of these classes starts a thread (boost::thread) and triggers callback functions on certain events (these do NOT trigger if release build is executed manually)

Something that I could imagine might cause problems, but I am not sure of:

  • Since the classes were written by different people, there is inconsistency between the usage of std::string and std::wstring. I am converting from one to another using std::wstring(s.begin(), s.end()) and vice versa.

Could this be the reason for my problems, and if yes, how do I solve the issue? I would really appreciate some help on this. Thanks in advance.

Update:

  • The program does not crash and variables do not seem to have different values when I use the infamous print-debug method (since in the debugger everything works out fine)
  • I have read that unitialized variables could be causing this issue and triplechecked every variable used by me, and every variable is initialized properly
  • In unit tests, every module I am using works as expected (though I’m not sure I got the border cases right everytime, since I have not written all modules myself).

Update 2:

  • While disabling optimization step by step and bringing the release buildmode closer to the debug buildmode I was able to narrow the problem down: **In the code generation tab, my program works with the Multithreaded-Debug-DLL, not the Multithreaded-DLL, regardless to optimization settings.

This seems to be a nice accomplishment, yet I lack the understanding for this problem.

  • 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-30T11:00:51+00:00Added an answer on May 30, 2026 at 11:00 am

    Add logging, or eliminate some code blocks. This should allow to find where problem arises. For differences look here:

    What is the difference between Debug and Release in Visual Studio?

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

Sidebar

Related Questions

We have a very strange issue that we're dealing with. We have an MVC
I am dealing with very primitive HTML construction that goes like this: <a NAME=header1></a><b><font
I'm having a very hard time dealing with multipart/form-data requests with my java application
We have a query in our system that has been a problem in the
I'm very confused with this wee little problem I have. I have a non-indexed
I am dealing with a very strange and rather simple problem about 2 days
I'm very new to dealing with bits and have got stuck on the following
I have a very simple C# question: aren't the following statements equal when dealing
I'm dealing with a strange problem. I have a GUI built using swing. Its
I am dealing with a very simple RESTful Rails application. There is a User

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.