Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exception thrown (origin unknown)

Status
Not open for further replies.

peterworth

Programmer
Aug 18, 2004
80
GB
when stepping through my program, it gets to a line which calls a function (let's call it x) and then jumps out of the current function (y) back to the catch statement in the function that called y (z). even though i'm pressing F11 when the trace gets to the line that calls x, it never goes inside x, just jumps straight to the catch statement. i never see anything thrown. anyone know why this might be? thanks.
 
Without seeing any real code that's impossible to say, though I'd expect something like
Code:
class Foo
{
public:
	int Bar() { return m; }
	int m;
};
...
  Foo* foo = NULL;
  foo->Bar();
to bug out immediately...

/Per

"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."
 
ah, sorted it now, sorry. it was just that the function being called was in a different dll.
 
Just a side note -- one way you can single-step in, even if it is in a different DLL (without debug symbols, for example), is to switch to the disassembly listing first. Then at least you will see the assembly instructions of the function you are calling.

Otherwise if you try to single-step from a source line it will not do it, because there is no source available for what you are calling.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top