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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:38:36+00:00 2026-06-17T08:38:36+00:00

So, here’s the problem I have. void * something = ???; void (*fun)(void*) =

  • 0

So, here’s the problem I have.

void * something = ???;
void (*fun)(void*) = ???;

try
{
    fun(something);
}
catch (...)
{
    assert(false);
}

I’ve been tasked with establishing why the assert is getting fired. Unfortunately I don’t get to change the above code. Furthermore this is in a multi-threaded environment and it’s during shutdown of the program. The part that does the try/catch is unlocked quite purposefully in the real world code. When I try to step through the program it suddenly just disappears on me…I can’t even step TO the right fun() call, let alone into it.

My only recourse seems to be to put a breakpoint in the catch(…) and examine whatever is there. Unfortunately this tells me nothing as I don’t know what fun really is nor what something is.

My only hope at this point is that I can somehow talk the Visual Studio debugger into telling me what ... is and I’d be overjoyed if I could find out where it was thrown. It’s not in the auto list at least…might it be elsewhere? Is there any way for me to make progress here or am I screwed? I feel screwed…

====

Update: There was an external program killing mine when it didn’t shut down in time. That’s why stepping made it disappear. Had nothing to do with threads.

Once I realized that I was able to turn on exceptions as suggested. Unfortunately there was no place that throws one…it was an access violation. The function being stored gets pounded somehow.

  • 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-17T08:38:36+00:00Added an answer on June 17, 2026 at 8:38 am

    Try to use Visual Studio functionality that breaks execution when an exception is thrown. Go to Visual Studio main menu Debug -> Exceptions and tick all exceptions.

    This way visual studio will stop when your exception is thrown and you will know what it was.

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

Sidebar

Related Questions

Here is my problem: I have a chatapplication and the messages are displayed in
Here is my problem.. I have the option to create(add) two new input fields,
Here's the code I have. It works. The only problem is that the first
Here's the problem....I have three components...A Page that contains a User Control and a
Here is the Javascript I currently have <script type=text/javascript> $(function() { $('.slideshow').hover( function() {
I have a jquery bug and I've been looking for hours now, I can't
Here is the two scripts I have Script 1: <? include('config.php'); $json = $_POST['payload'];
Here is my AsyncTask. Getting exception in the AsyncTask.. private class GetCategories extends AsyncTask<String,
Here is what I'm trying to do: I have a wrapper box .box-body and
Here are the yammer api docs: http://developer.yammer.com/restapi/ Am I missing something here? How can

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.