Quantcast
Browsing all 1710 articles
Browse latest View live

.NET Runtime error ..eventId:1023

Hi all , I am back to this forum after a long time..Now currently I am battling with .NET runtime error 1023 & the details are as below:We have a .NET application which is developed using C#.NET...

View Article


Performance Difference on Compiled Executable

I have an application that have intense query to SQL Server database utilising SQLDataReader. The problem when built and executed on Windows 10 64 bit on two platforms, the performance differ...

View Article


Console.WriteLine "Probable I/O race condition" issue

I noticed that an I/O race condition is triggered when using Console.WriteLine.The following exception will be thrown, System.IndexOutOfRangeException: Probable I/O race condition detected while...

View Article

Why is File.Delete not working

My snippet of code is pasted in below. I have created the file I am trying to delete and then trying to delete it. I depend on it being gone in order to proceed properly. I've taken a directory...

View Article

Windows 10 Annivesary update with IE 11 breaks .NET control hosting

I realize this scenario has been on shaky ground for some time, but we have an application that does not run on an intranet, that requires the hosting of a .NET control to interact with some hardware...

View Article


System.Net.HttpWebRequest Connection Pool Behavior

Hello experts, Have questions about the behavior of the HTTP connection pool (ServicePoint) that backs the System.Net.HTTPWebRequest class. Quick "diagram" and background for discussion: Application...

View Article

High Memory Usage --- RegionUsageIsVAD

I have a NT Service crashed after run for one day,it caused by "out of memory exception";When i analyzed the dump file, i found the gcheap was only about 160MB,and the native heap was about 300MB,but...

View Article

Is there a way to wrap a COM dll so global data within the COM will NOT be...

Hi,I have created a small web app using VS2012 that accesses a COM dll that was created using MS C++6 but is now built under VS2012.  This COM dll is very large, very old and has a lot of global data....

View Article


CertMgr.exe adding password protected .pfx files

Not sure if this is the correct subforum.I'm trying to use CertMgr.exe to import a certificate into the currentUser trustedpublisher store.Syntax should be CertMgr /add OutputFile.cer /s /r currentUser...

View Article


Memory Profiling of the CLR

I need to get the CLR events whenever there is an GC allocation or clean up. I got the provider's GUID and the events' codes from the link...

View Article

Excel 2013 and 2016 VSTO Add-in

I'm running Windows 7 Professional SP 1 Processor: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz 2.50GHzRAM: 8.00 GB System Type: 64-bit Operating SystemVisual Studio Community 2015 14.0.25420.01 Update...

View Article

How to rewrite and check IL code more easy?

Hi!I instrument method System.Web.Mvc.ControllerActionInvoker.InvokeAction instrument [System.Web.Mvc.dll] which version is 3.0.0.0, but I got a VerificationException: Operation could destabilize the...

View Article

notifyIcon works with windows forms but not services....

If I create a NotifyIcon in a designer of a windows application and assign an icon to it - it works just fine.   It shows up in the tray, and behaves just as it should.However, if I create it in a...

View Article


WinUsb_Initialize returns FALSE, but GetLastError returns ERROR_SUCCESS.

Hi everyone.I am trying to develop WinUsb Application for HID device.At first, the usb device's "Device Handle" is got by CreateFile function. Next, I get VID and PID by HidD_GetAttributes function....

View Article

Image may be NSFW.
Clik here to view.

BackgroundWorker with Thread.Sleep()

Hi, I have a long-running task in BackgroundWorker's Dowork() as follows:private void BGWorker_DoWork(object sender, DoWorkEventArgs e) { while (true) { if (UDPSocket.Available > 0) {...

View Article


CrossContext exception on native to managed boundary

I have developed a C++/CLI application which return an object of ManagedSubscription to C# clients.ManagedSubscription receives a callback from C# clients, internally makes its own callback to...

View Article

Export managed function to unmanaged

Hi,I have a question about managed dll and i want to known if it is a good idea to modify the IL code in order to exports managed methods from dll.I have read the chapter 18 of the book "expert .net...

View Article


How to check if assembly exists and get assembly info in Profiler?

Hi,I use IMetaDataAssemblyEmit::DefineAssemblyRef method to define my probe reference.If I set the parameter ASSEMBLYMETADATA'sversion is 1.0.0, but the probe in GAC is 1.1.0, the w3wp.exe crash.So I...

View Article

System.Environment.get_CurrentManagedThreadId()

There have been various reports on this error...

View Article

ComInterop pass managed float[] as ref float

I have a ComInterop method with the signature in managed code (C#) ofvoid Foo(ref SOME_ENUM, ref float, ref int) where SOME_ENUM is a .NET enumThe actual unmanaged code wants fixed size arrays for the...

View Article
Browsing all 1710 articles
Browse latest View live


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