99% Unreachable Memory
Hi all,I have a .NET 4.5.2 app that is supposed to run continuously for months. The things it does are not particularly memory- or CPU-intensive, but it does create and destroy many objects, some of...
View Articleregasm and the codebase switch
Hello, I'm using regasm with the codebase switch. I get this warning: RegAsm warning: registering an unasigned assembly with /codebase can cause your assembly to interfere with other app. that may be...
View ArticleTesting /INTEGRITYCHECK property
I am trying /INTEGRITYCHECK linker option for enforcing digital signature check. For testing this property, I created a test certificate using Makecert, added it to trusted publisher. Then signed the...
View ArticleSystem.Reflection.Emit.AssemblyBuilder.DefineDynamicAssembly multithread...
Hello,I encountered an issue related to multiple calls to the DefineDynamicAssemblymethod from parallel threads. It cannot be reproduced reliably and occurs rarely. No exception is thrown. Application...
View ArticleCRL Profiler issue with System.Windows.Forms and System.Drawing.Icon
Hello,We are trying to write our own .NET profiler and we are encountering a weird issue. We have a PS script which loads theSystem.Windows.Forms module by doing[void]...
View Articlehow to get arguments in clr profiler
Hi,I am using GetFunctionEnter3Info() in EnterStub which I have hooked usingSetEnterLeaveFunctionHooks3WithInfo()But the arguments I get are the addresses but not strings, so when I try do a...
View ArticleTurning of ShadowCopy for AppDomian in runtime
HiWe have a webserviceclient developed in .NET 3.5 which we are having problems with regarding antivirus protections. The application is locally installed so there is no real security issue. For some...
View ArticleUnable to delete custom performance counter category
Hi, I have created a performance counter category and I am not able to delete it. Running this: ```powershell $categoryName = "NServiceBus"...
View ArticleContent of a newly created disk file
Suppose something like the following snippet:string filePath = @"C:\MyFolder\MyFile.dat"; var fs = File.Create(filePath); fs.SetLength(1000000000); fs.Close(); Is a newly created file always guaranteed...
View ArticleLoad DLL from different path (c++/cli DLL loads managed C# DLL) (help)
I am coming from this topic. I created C# DLL and use it inside C++/CLI as another DLL used in another c++ "DLL" call it Main DLL. All dlls have to be under one folder, which is not under exe....
View ArticleUnloading a dynamically loaded assembly
Okay,So there are moments where reflection is awesome. Other times, like this, it can be a royal pain.I have a system in place which allows the user to select an assembly and load it for evaluation of...
View ArticleCannot marshal from C# IReflect object to C++ IDispatch
HI,I am struggling with a problem for some time and I hope I can get some guidance here on the community forums. The problem is simple:I have a com interface: [ComImport]...
View ArticleCreate multiple instances WPF app under one app process (help)
I need run multiple instances of WPF app under one application process. For example if native DLL run under one application multiple times, it is working without problem even if that DLL call c++/cli...
View ArticleSystem access violation in C to C# interop code
Hello, I am attempting to use a C function through C# Interop and I am receiving an access violation on one function. I have tried a number of things and I can't seem to solve this. Here is the C code...
View ArticleThe type 'Conversions' exists in both 'Microsoft.VisualBasic.Core,...
Hi,I'm working on a C# project, and migrating it over to .NET Core.One of the problems I'm facing is the following error:The type 'Conversions' exists in both 'Microsoft.VisualBasic.Core,...
View ArticleAdding a listener to Microsoft word to identify the key pressed on keyboard
Hi All,I am trying to read the content of Microsoft word using a custom Add-in button press. Instead i want this process to be executed on runtime say on press of "Enter" button on keyboard. Is there...
View ArticleHow to get complete call stack of each thread -using dostacksnapshot
Hi, In my CLR profiler, I am going to get stack trace of each thread. For that, i set the event mask COR_PRF_MONITOR_THREADS | COR_PRF_ENABLE_STACK_SNAPSHOT in my profiler initialize function. When a...
View ArticleIOException: More Data is Available on Microsoft.Win32.RegistryKey.GetValueNames
RegistryKey testkey =...
View ArticleInstrumentation Profiler in CoreCLR - Ways to Load HelperAssembly in to...
I am trying to Instrument .NET Core web applications that runs on .NET Core 3.1 using CoreCLR Profiler. I have set the environment values CORECLR_PROFILER , CORECLR_ENABLE_PROFILING and...
View ArticleThread-safety while reading bool property without locks
I've been trying to track down an extremely weird issue that occurs very rarely and takes a long time to manifest. This code pattern seemed to stand out, and I wanted to ensure this is thread-safe. A...
View Article