use of SafeArray pointer in vc++ dll to access structure Array passing from...
hello guys ..i am trying to implement some coding to pass a structure array from vb.net to a vc++ dll. To access the array i amusing theSafeArray pointer in vc++. I don't have a depth knowledge about...
View Articlec# 4.5.1 MarshalAs(UnmanagedType.BStr) bug
I have a program in c# that calls a number of powerbasic created dlls. Each dll has one exported function that takes an int and a Bstr as input and returns a Bstr. The following is a simplified...
View ArticleIs SynchronizationContext using InvokeRequired?
Hi,When using Invoke you usally also check the InvokeRequired, how does this work with SynchronizationContext (Send/Post)? Will it internally check InvokeRequired or is it more or less the same as just...
View Articleboth mscorlib 2.0 and 4.0 referenced in a library, safe or not ? (and 2.0.5.0...
I have a strange problem with a referenced library which target both mscorlib 4.0 and mscorlib 2.0, resulting in warnings when I reference this library in further libraries.To reproduce this problem...
View ArticleAssembly resolution in hosted environment
Hi,the issue arises in the following context:MS Word -> .dot -> unmanaged library A (vb6) -> managed library B -> managed library CThe managed libraries are not strongly named and not...
View ArticleCLR Profiling API problem: IL rewriting issue "System.IO.FileLoadException:...
Failure details: System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at...
View ArticleICorProfilerEvents out of sequence.
Hi everybody. I am working on a profiling agent. Among other things it analyzes the active threads' status. To be successful it has to match thread names to IDs. Here is a problem though: When I run a...
View ArticleCOM interop and CLSCTX_ENABLE_CLOAKING
Is it possible to create out-of-proc COM object while thread is impersonating (analog of native CLSCTX_ENABLE_CLOAKING)?
View ArticleTroubles loading C++\CLI assembly in a WebApp with IIS 6
We are upgrading .NETweb application to .Net Framework 4.0 and recompile in VS 2010.The application uses several boost dlls. We got below error. But it same issue didn't happen in the past when we use...
View Articleneed help on code access permissions for a plugin system
HelloI've developed a plugin system for my server based application. Users can write their own code for manipulating the main application and this code is compiled and invoked by...
View ArticleAccess Violation in .NET 4 Runtime in gc_heap::garbage_collect with no...
Hi all,We are experiencing an access violation in the .NET 4.0 runtime, in a piece of code that uses NHibernate heavily. None of our own code interops with native code directly, nor does the 3rd party...
View ArticleConfigurationSectionCollection contains many system names besides my custom...
Here is my config file:<?xml version="1.0" encoding="utf-8" ?><configuration><configSections><section name="MySection" type="MyApp.MySectionClass,...
View ArticleHow would you push login credentials to a landing page?
I am looking into a solution for pushing a user's login credentials to a landing page with options for different sites to go to.Basically the user will sign in and then be redirected to a landing page...
View ArticleWhat is the use of Password datatype on the ComponentModel.DataAnnotations?
I applied this annotation of type Password to one of my attribute on the DataModel attribute like following[Required, DataType(DataType.Password)] public string Password { get; set; }but there is not...
View ArticleMicrosoft Speech Platform Generated WAV licencing
Hello,I'd like to know the license attached to the sound (wav) files generated by the Microsoft Speech Platform TTS API. I know that the license of the platform itself can be used for commercial...
View ArticleI've found a gliche a bug that is potentially hackable forget security for...
potential bug when deleting and creating accounts :)
View ArticleProfiler works only with admin privileges
I'm working on a .NET profiler that monitors all .NET processes (environment variables are set globally (system and current user variables)), the profiler works fine when a process is run with admin...
View Articlemshtml failing to work in release mode
hi,mshtml works perfectly when built in debug mode.But if the mshtml is built in release mode when a single user access the dll we find no issue.but when multiple user access the dll, we get COM...
View ArticleForce no string interning.
I have an application that crashes due to an OutOfMemoryException. It uses a great deal of unique strings during its processing. In order to avoid this OutOfMemoryException, I have forced it to...
View ArticleMarshal.FreeHGlobal(bufferIntPtr) memory leak used in HttpModule Callback
In HttpModule callback, Marshal.AllocHGlobal(size) is ued to initialized a buffer pointer for unmanaged code processing. After processing, use Marshal.FreeHGlobal to free it. But memory leak is...
View Article