Hi NG,
currently I am working on a add-in which shell read the callstack and write
it to a file.
The question is, how can I read the current callstack of a debugged
application with a add-in?
I assume there are some framework classes, that can help me on this task but
I have no idea which ones that are.
Thanks for hints and help on this problem in advance.
Regards
Rainer Queck 3 1582
Hi Rainer,
I think you can use the Thread.StackFra mes property to get the call stack:
#Thread.StackFr ames Property (EnvDTE) http://msdn2.microsoft.com/en-us/lib...ames(VS.80).as
px
Please let me know if this works for you.
Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Hello Walter,
thanks for your help.
"Walter Wang [MSFT]" <wa****@online. microsoft.comsc hrieb im Newsbeitrag
news:Sr******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Rainer,
I think you can use the Thread.StackFra mes property to get the call stack:
#Thread.StackFr ames Property (EnvDTE) http://msdn2.microsoft.com/en-us/lib...ames(VS.80).as
px
Please let me know if this works for you.
Yes it looks, like this brings me closer to the solution, but ....
itterating through the stackframes, how can I find out (by code) which
stackframe belongs to the method, where I set the breakpoint at?
Regards
Rainer
Hi Walter,
"Rainer Queck" <Ra****@noemail .noemailschrieb im Newsbeitrag
news:Oc******** ******@TK2MSFTN GP03.phx.gbl...
Yes it looks, like this brings me closer to the solution, but ....
itterating through the stackframes, how can I find out (by code) which
stackframe belongs to the method, where I set the breakpoint at?
Just found the answer to my question:
EnvDTE.Thread aThread = dte.Debugger.Cu rrentThread;
gives me what I need.
Thanks for your help!
Regards
Rainer This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jaime Rios |
last post by:
Hi,
I created a COM AddIn for Word that performs the functions
that it needs to, but I needed to add the ability for the
toolbar created by the COM AddIn to remember it's last
position and whether it was docked or not. I added the
following code to my "OnConnection" function but it fails
with an error, "Run-time exception thrown :...
|
by: jchao123 |
last post by:
Dear All,
I have an MDB file (Access 2000/XP) which contains generic routines I
use in various apps (eg, API calls, File access classes etc).
I have compiled into an MDE file which I reference in VBA from my other
Access applications.
This works fine and I'm quite happy with it... except for one area;
error handling. In most of my...
|
by: Zeng |
last post by:
Hello,
In my code, when I run into an error, I would like to dump the callstack
into error log, how do I do that w/o throwing an exception then catching it
just to get the callstack? Exception structure has callstack information
but I thought there must be a way to directly retrieve it. Thanks!
|
by: Nak |
last post by:
Hi there,
Is it possible to retrieve the callstack at runtime in a VB.NET
application? I wish the verify that specific methods have been called as a
security measure. Thanks in advance.
Nick.
|
by: guilligan.geo |
last post by:
Hello,
I'm trying to create an addin for Outlook 2002 using the one provided
in the demo of win32com as a starting point. I've been able to do my
addin and test it if I go the "standard" way (using the python
interpreter). But now, I want other poeple to use it to I want to
freeze it for windows using py2exe and py2exe is giving me a...
| |
by: seannakasone |
last post by:
Is there a way to get the callstack level in c++? for example, take
the following code:
void call3() {
//callstack level would be 3
}
void call2() {
//callstack level would be 2
call3();
|
by: Joseph Geretz |
last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now,
just a couple of days.
Suddenly though, running my project in Debug launches Outlook as specified,
but no breakpoints are hit in my source code. The Addin isn't being loaded.
If I create a new Addin program from scratch, e.g. AddIn1, it loads up fine
from Outlook. I...
|
by: Joseph Geretz |
last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to
use VSTO. I've gotten this to the point where my VSTO Addin installs its
Menu items and Toolbar buttons when Outlook launches. I've wired up my event
handler to each Menu item and toolbar button. (I use the same Event handler
and I use the Tag property which is...
|
by: Christof Nordiek |
last post by:
Hi,
I created an Addin Project with the Addin-Project-Wizzard in VS2005. I added
some code from a Knowledge Base How To und built the project.
It worked, and the Addin got registered with Outlook.
Now my questions are:
How an when did the registering took place?
Whre is the informations stored, to wich Application the Addin should be...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |