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

Math.Round() problem - inconsistent result

The problem I am having is that when I use the following Math.Round() code, it rounds up to the nearest whole number but that is not consistent with different input values.double result = 0;double...

View Article


Can a dll call methods in the calling class?

I am creating a pretty complex app that controls a high end radio.  In addition to my app I want to integrate an open source program that does the following:It creates a tcp server and listens for...

View Article


.NET profiling API and object allocation

Hi! Is it possible to get using the .NET profiling API the thread in which an object was allocated? There is the "ObjectAllocated" method we can override but it doesn't give us any clue which thread...

View Article

Retrieve object name from id

Hi everyone,As the title indicates, I'm writing a silverlight profiler (using .NET Profiling API) and I want to get object name from its ID, I only managed to get its type.Thanks.

View Article

Writing Silverlight Profiler for other browsers

Naily Hedi asked a question on my blog, which I'm moving to this forum:"I'm working on a silverlight profiler. Actually, I'm setting environment variables globally so that the profiller DLL is loaded...

View Article


Programm crash during startup ....

Hello, when I start an application (PicoScope V6) on my W7-32/SP1 (all patches installed) the programm will not start and I got a strange error message:Beschreibung:  Stopped working Problemsignatur:...

View Article

.NET profiling API and suspending + resuming the process.

Hi! Is it possible to suspend a .NET process when I receive an event so I can process it and then resume the process (using the .NET profiling API) ? thanks! :)

View Article

.Net's MD5CryptoServiceProvider().ComputeHash and Java's similar algorithm...

 Hi,          I am stuck up with an issue while verifyng files downloaded from our Portal. The portal is used to distribute softwares to the end users and off-late, we had developed a Java Applet based...

View Article


Image may be NSFW.
Clik here to view.

problem with AppDomain

I have have asked before about how to use the Appdomain to be able to load and unload Dll file and in the same time be able to pass arrays. And actually someone whom I thank a lot recommended me to use...

View Article


Performance issue with PropertyDescriptorCollection.GetValue()

Hi,I have observed the performance issue with PropertyDescriptorCollection.GetValue() function. I am trying to implement the functionality where we export the data into the file. So I am calling below...

View Article

How to use a safe handle for Winusb InterfaceHandle?

I have a Visual C# application that uses the WinUSB API to access USB devices.The Winusb_Initialize function accepts a SafeFileHandle obtained with CreateFile and returns an InterfaceHandle defined as...

View Article

Principal.IsInRole first call is slow

I have a windows forms application running on .NET framework 4.0 on Windows 7 Professional client machines. The application was performing fine for about a year. In the code there is a call to process...

View Article

How to add AssemblyDescriptionAttribute to ICodeCompiler

Hi every oneI made a console with ICodeCompiler but when i run my console it doesn't have Description in "Task Manager/Processes" and it doesn't have AssemblyDescriptionAttributeNow how can i add...

View Article


Program crashes on startup, but works when moved to another folder.

I've got a whacky situation that I can't seem to figure out.  We have a distributed client/server application written in C# using .Net 2.0.  It runs fine...for days, for weeks, everything is pee-chee....

View Article

Application crashes on the main form constructor call deep inside .Net framework

One of our customers experiences a problem with our GUI app. It crashes on start during main Form initialization somewhere inside .Net Framework. This exception cannot be cought by standard .Net...

View Article


custom errors mode to off

i keep getting the message "turn customErrorsmode=Off" can someone please explain how i do this, i am a complete novice with this sort of thing and really need a walk through guide so if someone could...

View Article

Policy.11.0.Microsoft.Office.Interop.Excel not redirected

Hi,Here is the situation:I`m using a 32bit program in VB which uses the Microsoft.Office.Interop.Excel.dll which is added as a reference to the project and points to v11 (Office 2003) of the above...

View Article


Access Violation Exception in Marshal.PtrToStructure in vb.net

I have below code snippet, which gets a pointer from a C API which is defined in a dll. Using marshalling I am trying to get the structure array, which is my...

View Article

cast from Iunknown to another type

hi , i need to cast a variable from Iunknown type to another type(SpaceClaim::Api::V10::Session^)i m working with c++/cli  and i can't find any solution to fix that prb here is the code...

View Article

Access 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 Article
Browsing all 1710 articles
Browse latest View live


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