win32exception

Unhandled Win32 exception

梦想的初衷 提交于 2020-01-04 04:10:16
问题 At runtime, when myApp.exe crashes i receive "Unhandled Win32 exception" but how would i know which exception was occurred? where did something went wrong? 回答1: For a Native C++ app see my earlier answer here: Detect/Redirect core dumps (when a software crashes) on Windows for catching the unhandled exception (that also gives code for creating a crash dump that you can use to analyse the crash later. If the crash is happening on a development system then in Visual Studio (I'm assuming you're

Win32Exception @ ServiceHost.Open() for WCF service

大兔子大兔子 提交于 2019-12-31 02:19:39
问题 I am working on writing BDD specifications for a broad set of WCF service infrastructure I am writing. I have noticed that each specification I write that involves a call to ServiceHost.Open(), that line takes a good 2 - 6 seconds to execute (the time keeps growing as I add more and more specs). I noticed that when this method is called, a Win32Exception is thrown: Win32Exception occurred Message: The specified domain either does not exist or could not be contacted. Stack Trace: at System

Win32Exception @ ServiceHost.Open() for WCF service

送分小仙女□ 提交于 2019-12-31 02:19:27
问题 I am working on writing BDD specifications for a broad set of WCF service infrastructure I am writing. I have noticed that each specification I write that involves a call to ServiceHost.Open(), that line takes a good 2 - 6 seconds to execute (the time keeps growing as I add more and more specs). I noticed that when this method is called, a Win32Exception is thrown: Win32Exception occurred Message: The specified domain either does not exist or could not be contacted. Stack Trace: at System

System.ComponentModel.Win32Exception: The operation completed successfully

谁说我不能喝 提交于 2019-12-28 05:14:07
问题 I am getting this exception sometimes while running my Windows Forms app for a long time: System.ComponentModel.Win32Exception: The operation completed successfully at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits) at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height) at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics

System.ArgumentException and System.ComponentModel.Win32Exception when getting process information

五迷三道 提交于 2019-12-24 01:21:29
问题 When i try to write process' information to console i get System.ArgumentException and System.ComponentModel.Win32Exception. What causes this? How can i stop having those? Process processListe = Process.GetProcesses(); for (int i = 0; i < processListe.Count(); i++) { try { string companyName = processListe[i].MainModule.FileVersionInfo.CompanyName; string fileVersion = processListe[i].MainModule.FileVersionInfo.FileVersion; Console.WriteLine(companyName + " " + fileVersion); } catch

C# System.ComponentModel.Win32Exception (0x80004005): Not enough storage is available to process this command

此生再无相见时 提交于 2019-12-23 02:28:22
问题 After running my application (.Net 4.5, 64-bit, WPF) a long time (one to two weeks) I encounter the following app crash: Faulting application name: XY.exe, Version: 2.12.2.2, Time: 0x5bade142 Faulting module name: KERNELBASE.dll, Version: 6.1.7601.24150, Time: 0x5b0cbc65 Exception code: 0xe0434352 Fault offset: 0x000000000001a06d Faulting process id: 0x8694 Faulting application start time: 0x01d457228a130410 Faulting application path: C:\Testsysteme\YY.exe Faulting module path: C:\Windows

Error using Process.Start()

99封情书 提交于 2019-12-14 03:18:36
问题 I am trying to run sysprep from a vb.net application, and even though the path and file name are confirmed accurate, it is returning that it can not find the file. I've tried using process.start, declaring as a new process, declaring the path separate from the file name. Here is the code as I would like it to be written, maybe someone could try it out and see if they come up with a solution? Private Sub btnsysp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsysp

change MessageDialog content or show new one from MessageDialog handler Windows Store app

牧云@^-^@ 提交于 2019-12-13 04:38:25
问题 I have MessageDialog dialogue responsible for delete confirmation. private async void ShowDialogClick(object sender, RoutedEventArgs e) { MessageDialog md = new MessageDialog("Are your sure you want to delete this?"); md.Commands.Add(new UICommand("Delete", new UICommandInvokedHandler(DeleteItemHandler))); md.Commands.Add(new UICommand("Cancel")); await md.ShowAsync(); } When user clicks Delete , DeleteItemHandler invokes operation on database, but how can I inform user about unsuccessful

What are the capitalized text identifiers for Win32 error codes called, and how can they be determined programmatically, given an error code?

断了今生、忘了曾经 提交于 2019-12-11 01:44:27
问题 In listings of Win32 error codes, each error has three components: The numeric error code A descriptive message An identifier consisting of capitalized words separated by underscores According to the documentation, the term "message identifier" refers to the descriptive message, but it doesn't say what the term is for the capitalized error name, and I haven't been able to find that anywhere. These identifiers appear to be analogous to what's called the "Error Id" in a PowerShell ErrorRecord