Building Development and Diagnostic Tools for .Net,5 - .NET Development,
Recent update: 2008-3-21

Attaching multiple debuggers to a target (Re: Multithread stepping)

454 byte By FranciscoG at 2008-3-7
I need to attach different debuggers (each one is a different process) to a different target thread in the same process. I have built a prototipe that attaches to a thread after that I try to attach mcordbg to the same process and failed to do that. That's the meaning of the sentence: "I'm ...

MDbgValue

824 byte By GilesBathgate at 2008-3-6
There dosen't seem to be a very handy way of Getting and Setting the Value of the MDbgValue Here is some code I use to Get the Value Private Function ExtractValueType(ByVal val As MDbgValue) As String 'This is a bit of a hack to get the value out. 'because mdbg doesn't seem to provide a ...

Multithread stepping

361 byte By FranciscoG at 2008-3-5
Hello, If I have a process with several threads, ?can mdbgeng or a tool using ICorXX API step code in different threads at the same time and independently? I have tried StepOver in that case but the non-active threads of the process run when I step on the active thread. I'm interested on a ...

NUnit

449 byte By KingKarter at 2008-3-3
Hi guys,please ,can some one help me with NUnit.Assert.AreEqual(10,5,"Some message")The above line of code will result in fail and displaying a message on the GUI of NUnit. IS THERE any way to capture that message and instead of displaying that on to the NUnit gui...or in addition to ...

ICorProfilerCallback learning : Please help get me started

885 byte By RobBowman at 2008-3-1
Hi everyone,I would like to experiment with and learn about ICorProfilerCallback2 using the express edition(s) and/or the platform sdk. Can this be done and, if so, are there any "getting started" guides?My c++ skills are very rusty, so I would prefer to work in c#, but am I correct in thinking ...

SetIlFunctionBody. How to free memory of old body

614 byte By SergeyKanzhelev at 2008-2-28
Hi,Do I have to free the memory, where the method body have been located after SetIlFunctionBody?I have the Profiler that rewrites the body of some methods. Earlier I've freed the old method bodies' memory using code: CComPtr<IMalloc> pDealloc = NULL;CHECK_COM(ecatLocal, CoGetMalloc(1, ...

how to attach to debugger in-process

411 byte By eran at 2008-2-27
Hello,I would like to catch all the excpetions in my application (handled + unhandled excpetion) and write to to a trace i have. The catching should be in-process (from the executable code).I know how catch the unhandled exceptions (registering to the event in the appDomain). What i need to ...

Calling Win32 API from Assembly Language

148 byte By SachinPatole at 2008-2-26
How do I call a win32 API function from assembly language? Basically I need to call functions from kernel32.dll from assembly language.

How to change method at runtime.

702 byte By Neo_ms at 2008-2-25
Hi,Supose we have a method named method1. If we run our app in debug mode, we can stop at a brake point and than chagne some code and continue to run the app. Is there a way to do it using code? When I searched I only found useful Reflection.Emit namespace yet it can only build dynamic things, ...

TCP sniffer

299 byte By JoaquínRaya at 2008-2-24
Hello, Is there any way to look at what is being sent/received over the network by an application? I am building a web service and it's client, and I would like to see exactly what they are sending and receiving over the wire with something outside of visual studio. Thanks a lot

How to indentify a managed exe or dll.

118 byte By DanBaumbach at 2008-2-23
What's the best way to identify a managed exe or dll so one knows what debugging interface to use. Thanks. - Dan.

help debug a 1.1 process

479 byte By shehan at 2008-2-22
Hi All,I'm getting the following message when I try to attach to a process:"Can't debug a version 1 CLR process ("v1.1.4322"). Run application in a version 2 CLR, or use a version 1 debugger instead."If it helps...The process/application I want to attach to was developed ...

How to change method at runtime.

702 byte By Neo_ms at 2008-2-22
Hi,Supose we have a method named method1. If we run our app in debug mode, we can stop at a brake point and than chagne some code and continue to run the app. Is there a way to do it using code? When I searched I only found useful Reflection.Emit namespace yet it can only build dynamic things, ...

Multiple Managed Debugging Sessions under one ICorDebugInterface

175 byte By DanBaumbach at 2008-2-21
After I get an ICorDebugInterface can I open more than one debugging session, each in a different thread, with it? Or do I need an interface pointer for each session. - Dan.

ICorDebug and "Debugger Users"

349 byte By Wizard_01 at 2008-2-20
HI,Recently I started Visual Studio.NET under an account that was not the member of "Debugger Users" and it didn't work. It's Visual Studio.NET feature or a requirement for debugging managed/unmanaged code under Windows ? Requires ICorDebug to be run under "Debugger Users" ...

Interop Debugging with ICorDebug

936 byte By DanBaumbach at 2008-2-20
I'm working on a debugger using the ICorDebug interfaces. I'vem only just started and I'm trying to get a proof of concept for my boss. I'm able to launch or attach to managed apps and I'm getting all the proper DebugManagedCallback calls for attach, create process, load module, etc.Things ...

Debugging mscorwks

52 byte By YuhongBao at 2008-2-20
BTW, why does the DLL names starts with mscor. Core?

Debugging mscorwks

1889 byte By YuhongBao at 2008-2-19
>What if you did stop inside the runtime?>What if we did allow a debugger to stop at a native breakpoint inside the runtime, but just refused to execute the helper-thread and thus >temporarily disable managed-debugging functionality? In theory, this would work. In practice, it would be ...

CLRProfiler crashes aspnet_wp

2364 byte By Alan4s at 2008-2-18
I'm trying to use the CLRProfiler to profile an ASP.Net application. Somehow, it's gotten into a state where it crashes aspnet_wp. Running the same app without profiling works fine. The event log entries when it crashes are:Event Type: ErrorEvent Source: .NET Runtime 2.0 Error ReportingEvent ...

Executing Native Code From A Managed Thread

1677 byte By mclagett at 2008-2-17
Hi --I'm about to reread the Geoff Schilling/Dave Stutz book -- which, now that I know what I need to learn from it, will be much more meaningful and useful to me than when I read it the first time, But before I do I thought I would ask one basic question that you guys might be able to inform ...

Dotfuscator 3.0 doesn't work

453 byte By MC8005 at 2008-2-16
I obfuscated my Pocket PC application. I do not use reflection and couldn't find an reason in the documentation why this should not work. I run the app and the main grid doesn't even fill. So then I tried turning it off for forms, but it ignores me and obfuscates everything anyway.There is no ...

ILAsm syntax

589 byte By KaMePL at 2008-2-15
hello there,I'm not sure if this forum the most appropriate place to ask this question, but i'll try...I need to write simple console application in ILAsm as a part of my diploma and I hardly understand why below code works (compiles and executes in ilasm):ldstr "Enter a"call void ...

reflector tool in .Net

297 byte By divyamittal at 2008-2-15
hi, when i try to open a system dll "sfc.dll" in the reflector tool, then it does not get opened in the reflector. it shows an error "sfc.dll does not contain a CLI header" can anybody tell the cause for this and resolve the issue? regards, divya

ICorProfilerCallback::Shutdown not called

628 byte By ThomasD14 at 2008-2-15
Hi all, I run NCover to get coverage results from my .Net assemblies. In somecircumstances I get no coverage information. After some investigationsI found that NCover uses the profiler callback and the shutdowncallback is not called in this case. Which circumstances may lead the CLR not to fire ...

ICorProfilerCallback::Shutdown not called

628 byte By ThomasD14 at 2008-2-15
Hi all, I run NCover to get coverage results from my .Net assemblies. In somecircumstances I get no coverage information. After some investigationsI found that NCover uses the profiler callback and the shutdowncallback is not called in this case. Which circumstances may lead the CLR not to fire ...

What is 0x8013134b error code?

180 byte By QueryBoy at 2008-2-15
Does anyone know what does the COM error code 0x8013134b stand for? I get this when I try to attach to an running managed process by calling ICorDebug::DebugActiveProcess().

CLRProfiler crashes aspnet_wp

2364 byte By Alan4s at 2008-2-14
I'm trying to use the CLRProfiler to profile an ASP.Net application. Somehow, it's gotten into a state where it crashes aspnet_wp. Running the same app without profiling works fine. The event log entries when it crashes are:Event Type: ErrorEvent Source: .NET Runtime 2.0 Error ReportingEvent ...

how send an email with the html controls?

334 byte By Kalees at 2008-2-14
Hi All,I need to send a email with the html controls like textboxes and dropdowns with predefined values from the sql server database and get back the changes which are made by the email receiver and store it into the database.How can I acheive this? Could anyone help me please?Thanks,Kaleeskaleeswa...

deployment from octopus tool

299 byte By divyamittal at 2008-2-14
hi, when i try to deploy my application with the octopus tool on vista, it gives me an error on the prerequisite check that "access for the "octopus.test.file.bin" is denied". unable to resolve the problem... can anybody help me out? regards, divya

reflector tool in .Net

297 byte By divyamittal at 2008-2-13
hi, when i try to open a system dll "sfc.dll" in the reflector tool, then it does not get opened in the reflector. it shows an error "sfc.dll does not contain a CLI header" can anybody tell the cause for this and resolve the issue? regards, divya

How to get ICorDebug being used by Visual Studio?

51 byte By AndreiFaber at 2008-2-13
Is there any way to do this (from add-in or macro)?

DynamicILInfo.GetTokenFor

1629 byte By mclagett at 2008-2-12
Just want to make sure I understand for what things I need to get tokens and insert them into the byte code stream I am generating. I believe it is anything that is referenced in the byte code stream that would have a metadata token associated with it. Working from the overloads for the ...

Newbie question about MDBG sample

1512 byte By joepeer at 2008-2-11
Hi,I'm trying to figure out how the Mdbg sample works so i tried to create a simple debugger handling breakpoints.So this is a sample of my code: public void Start(Projet proj) { _debuggerMdbg = new MDbgEngine(); _debuggerMdbg.Options.CreateProcessWithNewConsole = true; //Fire event ...

Mdbg Sample Updated

1754 byte By JonLangdon-MSFT at 2008-2-10
The CLR debugging services team has released an updated mdbg sample. You can find it here: http://www.microsoft.com/downloads/details.aspx?FamilyID=38449a42-6b7a-4e28-80ce-c55645ab1310&DisplayLang=en. A big thanks to the folks on the team who helped get this release together.Updates in this ...

Is there by any chance an unmanaged version of Light Weight Code Generation API?

236 byte By mclagett at 2008-2-10
This would be exceedingly useful since the byte code generation I am doing I would like to continue to do in an unmanaged envrionment with the framework I already have in place. Thanks for any assistance anyone can provide.

Is an assembly the only possible target for an emitted method?

769 byte By mclagett at 2008-2-8
I am wondering if there is any way to emit a method and its supporting metadata without having to create a full-fledged assembly? I want to be able to emit individual methods on the fly and feel that it's rather heavy handed to create a whole assembly just for one method. What I would ideally ...

How increases the CodeCompileUnit in method to the code file in

322 byte By ChrisJiang at 2008-2-8
Hi all, I'm developing a designer.I want to use CodeCompileUnit to produce a method code,then increases these code to the code file appropriate position(Looks like the dissimilarity which in vs does),ask how I should do? Also or generates CodeCompileUnit by code file,how does that do? ...

Avaya CTI Screen popping in .NET

554 byte By bVJk at 2008-2-7
Hello everybody, We are working on a web based application for a call center, my task is to develop a page that displays the incoming phone number on an agents computer. They have a Avaya phone setup installed here. After reading a few documents I learned that the Avaya has some software that ...

ICDILFrame2::EnumerateTypeParameters() question

906 byte By alastairf at 2008-2-7
Hi,given the following snippet:class GC <V> { public V f1; public GC( V x) { this.f1 = x; } public void p(V v) { V v2 =v; System.Console.WriteLine(" f1 " + this.f1 + " v " + v + " v2 " +v2 ); } }class App { static void Main() { GC<int> x1 = new ...

Debugging Custom Attributes

1371 byte By kenlefeb at 2008-2-7
Is there something special I need to do, in order to set a breakpoint and step through a custom attribute?I have a class like this: public class SecureClass { [ApplicationPermission(SecurityAction.Demand, CustomPermissions.UserAccessPermission)] [MyTest] public bool WasSuccessful() { return ...

Expanding the forum's scope

3352 byte By JonLangdon-MSFT at 2008-2-7
You might have noticed the change to the name and description of this forum. We’ve expanded its scope from debugging/mdbg to general managed-code tool development. This includes debuggers, profilers, IL compilers, obfuscators, health monitors etc. We appreciate the participation so far ...

Help!My program sometimes can't exit normally

236 byte By wuyueduzun at 2008-2-6
when click X or other exit entry, OS asks user to report error to MS, I can't find any error, when use windbg, it report: Unknown exception - code c0020001 (first chance) Does anybody have the same problem and solve this problem?

How can I tell if I am being called from funceval

778 byte By capslock at 2008-2-6
Hello Mike,I have the same problem, but my situation does not involve multiple threads. I have written my own debug trace listener, so that I can display my own "Assert Failed" dialog. If I hit a breakpoint and examine a variable, the code being executed by the funceval sometimes ...

Help!My program sometimes can't exit normally

236 byte By wuyueduzun at 2008-2-5
when click X or other exit entry, OS asks user to report error to MS, I can't find any error, when use windbg, it report: Unknown exception - code c0020001 (first chance) Does anybody have the same problem and solve this problem?

Server Debug

533 byte By AlexanderShashkin at 2008-2-5
Hi all,When I need to ajust unhandled-exception debugger behaviour on Microsoft Windows Server 2000 (2003), I realize that there is no such key as HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgJITDebugLaunchSettingSo the question is - where is the analogous of parameter at the Sever ...

Image File Execution Options

232 byte By acedog at 2008-2-4
Can I specify mdbg as the Debugger in HKLM/Microsoft/Windows NT/Current Version/Image File Execution Options/debugee_name and get the debugee to start with mdgb attached? This is useful for debugging services when they start.

What happens when I kill debugee using task manager?

276 byte By DavidSrbecky at 2008-2-4
<p style="margin-bottom:0cm"> <p style="margin-bottom:0cm">What happens if the debugger is doing something and the debugee is suddenly killed by task manager? I am trying to ensure that my debugger does not crash when this happens. What errors should I expect?

Any plans to gui display il VM?

66 byte By mwindham at 2008-2-4
It would be cool if there were a visualization of the il VM stack.

ICDType <-> MD Type signatures

844 byte By alastairf at 2008-2-4
Hi,Is there any straightforward way to connect the type tree obtained fromicdilframe2::enumeratetypeparameters for the frame of a method on a generic class to the corresponding typespec entry for the class instance on which the method is being invoked? The typespec token can, at least in some ...

ICorDebugController::Stop problem

1028 byte By Wizard_01 at 2008-2-3
Hello,sometimes calling the method ICorDebugController::Stop NEVER terminates nor returns S_TIMEOUT or something like that. It returns only if I terminate process manually by Task Manager.A time ago I was not able to stop my application in Visual Studio. After a minute, VS shows a form ...

.NET Development

Site Classified