Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Browsing all 1710 articles
Browse latest View live

contravariance Action and delegate

Hi,        Why assigning action to d works.. But it does't compile for delegate. Action<Base> action = (x) => { Console.WriteLine(x.GetType().Name); }; action(new Base()); Action<Child1>...

View Article


Creating files in the GAC at runtime

Hi;I'm working with a 3rd party product that has a managed assembly and two native DLLs - identical except one is x86 the other x64.The managed assembly has these DLLs embedded as resources and when we...

View Article


Internals of String type and String.Intern()

I've lately been analyzing (and trying to improve) performance of a string intensive application. When checking the way strings are stored in memory in the .NET framework I came across this funny...

View Article

Retrieving the COM class factory for component with CLSID...

Hi,I have outlook installed in a windows 7 server and i'm accessing it from another machine with another credential.In the server in outlook exe in programfiles\office12 i have added...

View Article

Constructor of a parent class is not getting executed

Hi,         I have created a container class with two public nested class, The constructor or static constructor is never getting called. How are we able to access nested class like accessing a static...

View Article


How to pass an array of structures from MFC to C#

I have a legacy MFC application that I wish to have interact with a C# library.In C# I have something like:namespace MyManagedLibrary { [ComVisible(true)] [StructLayout(LayoutKind.Sequential, Pack =...

View Article

C# COM Client calls C++ COM Server, exception :The RPC server is unavailable

Here is C# COM Client application to call C++ Com server (it is a Windows Service exe), It will throw following exception:System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is...

View Article

Get memberOf properties for child domain user from root domain GC

Hey, guys.I have a parent domain "parent.com" and a child domain "child.parent.com". User A belongs to the parent domain and user B belongs to the child domain.I connect to the GC of the parent domain...

View Article


Not able to access Navision web services from PHP

We are following blog post by Freddy to access navision web services from our PHP application. PHP application is on Linux server with Apache. You can search for Game4U in google and you will find the...

View Article


ATL/CLI dll loading issue

I have a COM/ATL DLL (Built in VS2012) that is built with /cli, and references a .NET assemly to do much of its internal work. The problem I am having is registering the DLL - it won't register unless...

View Article

Image may be NSFW.
Clik here to view.

CLR Profiler heap graph missing 85% of the allocated objects

When looking at the Heap Graph report in CLR profiler, it appears to be missing 85%+ of the allocated objects.Here is a screenshot:The allocation graph correctly shows 174Mb in the root.Expected: The...

View Article

digitally sign certifcates

I just purchased a certificate from Symantec and I have to digitally sign it, but I don't know how and the links that Symantec gave me are not helpfulI have to use the following:...

View Article

32 bit System.Data.dll picked up in 64 bit exec

When compiling for 64 bit, I get an error saying that the assembly System.Data.dll targets different processor. It's picking up System.Data.dll from C:\Windows\Microsoft.NET\Framework\v2.0...  There is...

View Article


Legacy Application and .NET web application

My company has a home-grown Fortran program build on Unix AIX 5.3.  Is it at all possible to call a windows or web application from Fortran and pass values to a windows GUI? The only logic that needs...

View Article

AppDomain.CreateDomain throws OutOfMemoryException after upgrading to 4.5

Hi,We have a .NET COM component that creates a new AppDomain and loads another assembly in that domain. The assembly and the COM component are built using Visual Studio 2010 SP1 and .NET 4.0. It all...

View Article


Problem with IMetaDataEmit::Merge()

Hi, I am trying to instrument methods in mscorlib.dll and put method calls into my own proxy methods into them. Now, I know I cannot add AssemblyRefs from mscorlib.dll to my proxy.dll because mscorlib...

View Article

Finalization of .NET COM exposed component (CCW)...

Hi everyone!Here's my problem :COM has a deterministic way of freeing components (when reference counter hits 0), whereas NET uses a garbage collector for memory management... (so far so good :p)When...

View Article


SOS: Link a !TraverseHeap object root with a thread id

Hi there,The !TraverseHeap command dumps the objects on the GC heap.  In the resulting output, it includes the root objects, e.g.:r 0x0000000000191400 0x0000000000191408 0x0000000000191410...

View Article

problem passing safe array

I have a safe array I need to pass from vb.net to unmanaged c++ code. How do I pass a safe array with a subtype of VT_UI1?  I have only cause the code to crash my program when it gets to passing the...

View Article

pass SAFEARRAY of BSTR from C++ to C# DLL

My code is soemthing likeBSTR vb[20]; //heap alloc or _bstr_t no helpSAFEARRAY* sa = SafeArrayCreateVector(VT_BSTR, 0, 20);long m =0;SafeArrayPutElement(sa, &m, vb);_exten_obj->GetData(sa);...

View Article
Browsing all 1710 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>