Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to use HTMLHistory Pin
Dave Kreskowiak16-Feb-06 14:27
mveDave Kreskowiak16-Feb-06 14:27 
Questionhow to prevent from kill process from task manager ? Pin
hdv21216-Feb-06 12:20
hdv21216-Feb-06 12:20 
AnswerRe: how to prevent from kill process from task manager ? Pin
Curtis Schlak.16-Feb-06 12:58
Curtis Schlak.16-Feb-06 12:58 
AnswerRe: how to prevent from kill process from task manager ? Pin
Colin Angus Mackay16-Feb-06 13:04
Colin Angus Mackay16-Feb-06 13:04 
GeneralRe: how to prevent from kill process from task manager ? Pin
hdv21216-Feb-06 21:08
hdv21216-Feb-06 21:08 
GeneralRe: how to prevent from kill process from task manager ? Pin
leppie16-Feb-06 22:20
leppie16-Feb-06 22:20 
GeneralRe: how to prevent from kill process from task manager ? Pin
Dave Kreskowiak17-Feb-06 5:40
mveDave Kreskowiak17-Feb-06 5:40 
QuestionCode injection for debugging Pin
malharone16-Feb-06 10:59
malharone16-Feb-06 10:59 
I am not sure how to achieve this:

In my VS 2k3 solution, I have about 12 projects and about 9000 methods. What I need to achieve is, for every method insert a try/finally block.

So, the following example shows before and after.
<big>//BEFORE</big>
private void HelloWorld(int x, string y, object z)
{
    //... some code
}


<big>//AFTER</big>
private void HelloWorld(int x, string y, object z)
{
    try
    {
        CallAutoMethod1(this, "HelloWorld");
        //... some code
    }
    finally
    {
        CallAutoMethod2(this, "HelloWorld");
    }
}


My goal is to be able to get a trace of when the method was entered and when it was exited. I was initially planning on doing this as a pre-build event through VS macros (using VS APIs) but I do not want to modify the code. Any suggestions?

Can I modify the DLL assemebly and programmatically insert the try/finally?

And what I am trying to achieve cannot be accomplished through a Profiler. I have tried about dozen of them.

Thanks,

- Malhar
AnswerRe: Code injection for debugging Pin
leppie16-Feb-06 12:09
leppie16-Feb-06 12:09 
QuestionHeader Text in a DataGrid Pin
mostafa_h16-Feb-06 10:55
mostafa_h16-Feb-06 10:55 
AnswerRe: Header Text in a DataGrid Pin
Tom Wright16-Feb-06 11:59
Tom Wright16-Feb-06 11:59 
GeneralRe: Header Text in a DataGrid Pin
mostafa_h16-Feb-06 19:41
mostafa_h16-Feb-06 19:41 
QuestionDotNetFramework Pin
mehrdadc4816-Feb-06 10:50
mehrdadc4816-Feb-06 10:50 
AnswerRe: DotNetFramework Pin
Colin Angus Mackay16-Feb-06 13:11
Colin Angus Mackay16-Feb-06 13:11 
QuestionSimple regular expression replace Pin
Luis Alonso Ramos16-Feb-06 9:41
Luis Alonso Ramos16-Feb-06 9:41 
AnswerRe: Simple regular expression replace Pin
Le centriste16-Feb-06 10:06
Le centriste16-Feb-06 10:06 
AnswerRe: Simple regular expression replace Pin
Guffa16-Feb-06 10:29
Guffa16-Feb-06 10:29 
AnswerRe: Simple regular expression replace Pin
leppie16-Feb-06 11:04
leppie16-Feb-06 11:04 
GeneralRe: Simple regular expression replace Pin
Luis Alonso Ramos16-Feb-06 12:52
Luis Alonso Ramos16-Feb-06 12:52 
GeneralRe: Simple regular expression replace Pin
leppie16-Feb-06 22:35
leppie16-Feb-06 22:35 
QuestionDataGridView frozen rows Pin
Wjousts16-Feb-06 8:51
Wjousts16-Feb-06 8:51 
QuestionWaiting for a Process to end without freezing the starting app Pin
Dan Neely16-Feb-06 8:43
Dan Neely16-Feb-06 8:43 
AnswerRe: Waiting for a Process to end without freezing the starting app Pin
Robin Panther16-Feb-06 8:58
Robin Panther16-Feb-06 8:58 
GeneralRe: Waiting for a Process to end without freezing the starting app Pin
Dan Neely16-Feb-06 10:26
Dan Neely16-Feb-06 10:26 
Questioncalcalate running time Pin
zhujp9816-Feb-06 8:35
zhujp9816-Feb-06 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.