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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:40:40+00:00 2026-06-13T11:40:40+00:00

I have a customer reporting a supposed resource leak in our product which used

  • 0

I have a customer reporting a supposed resource leak in our product which used mixed code. So I wanted to debug into it to see what was really going on. I’ve been experiencing weirdness like Visual Studio crashing, freezing during stepping through code and the debugger just stopping at random points with bad exit codes.

I narrowed it down to the unmanaged function that’s causing it, it’s a function started from another thread vs the main one. I keep thinking I have the exact line of code that causes it but the location of the problem seems to keep changing. So I got to the general location of the problem and started stepping through the assembly code, line by line.

I even moved my breakpoint to where the function first begins and boom when the debugger reaches that point if I step past it, it will exit. If I set my breakpoint 20 lines into the function instead, the execution makes it to that point, then I step past it and the debugger exits so I don’t believe it really has anything to do with what my function is really doing within { }.

When I do this with F10 the debugger stops and the exit code is STATUS_WX86_BREAKPOINT, when I do this with F11 it stops with the exit code STATUS_WX86_SINGLE_STEP. The names of the error codes make sense to me based on the type of stepping but don’t really tell me what’s wrong. When I run it again I try moving by breakpoint in the disassembly up thinking I’ll see what happened prior, the exit just happens earlier so it’s quite annoying. I’ve never encountered anything like this before and can’t find much on what this error really means I’m doing wrong?

Sometimes instead of exiting with a bad code, Visual Studio simply locks up on me.

  • 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-06-13T11:40:41+00:00Added an answer on June 13, 2026 at 11:40 am

    I tend to agree with the comment of @paddy it looks like the problem is from a different thread.
    Did you set VS to stop at first chance exceptions?
    In your case since it is unmanaged code I would set the debugger to stop at win32 exceptions and C++ exceptions (All of them).
    In case you don’t know you can do that from the debug menu -> Exceptions…

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

Sidebar

Related Questions

I have a Customer class that contains a property, MyProperty, which is of a
I have a Customer class which has a representative field....this field is initially blank
I have a bit of a challenge. In an earlier version of our product,
I have four entity Customer, product, order and order details. On my WPF window
Say we have customer table which has record CustId LastName 1 Hamlin In one
I am currently testing Telerik Reporting to replace our current report solution which is
Which reporting technology would fit for the best situation/type of product? I am now
I have a customer who wants an application for his travels where he can
I have an customer invoice table in my MySQL database with a DECIMAL(10,2) field
I have a customer dimension. While creating cube and defining dimensions the default attributes

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.