Visual Studio Development Bookmark and Share   
 index > Visual Studio Debugger > How come 'IDebugThread2::EnumFrameInfo' method is called twice?
 

How come 'IDebugThread2::EnumFrameInfo' method is called twice?




When SDM gets a breakpoint event, it calls IDebugThread2::EnumFrameInfo method to get the top stack frame, as I know.
But here, I've found some weird actions like, functions for creating stack frame have been called twice, not once. (the hitting breakpoint event has occured just once though). It seems to waste costs by creating duplicated and unnecessary stack frames.

How come the method is called twice? Any chance to make it called just once?
sweetie☠ Tuesday, October 06, 2009 6:25 AM
Other parts of the debugger may need to enumerate the stack frames with different flags. This depends mostly on what windows are open. There is no guarantee that it will only be called once.
rchiodo - MSFT  Tuesday, October 13, 2009 6:16 PM
Other parts of the debugger may need to enumerate the stack frames with different flags. This depends mostly on what windows are open. There is no guarantee that it will only be called once.
rchiodo - MSFT  Tuesday, October 13, 2009 6:16 PM

You can use google to search for other answers

Custom Search

More Threads

• Debugger steps into strongly typed dataset code marked with DebuggerNonUserCodeAttribute with Enable Just Me Code
• Debug HTML embedded Windows control
• Debug in release mode
• Web Services.
• Property Evaluation Failed on Debug.Assert() or Unhandled Exception
• (0x0eedfade) occurred in the application at location 0x7c81eb33
• Variable don't show in Autos Window in Dynamically Generated Code
• How to set BreakPoint while debug remotely
• VS .NET 2003 Debugger Hangs
• How to view the contents of DataSet at runtime?