Questions tagged [win32exception]

Win32Exception Class is part of .NET Framework and is used as wrapper of Win32 error codes.

Win32Exception Class is part of .NET Framework and is used as wrapper of Win32 error codes.

81 questions
0
votes
1 answer

What causes Win32exception "The specified procedure could not be found"?

What exactly does this exception mean, and why it is happening? More info: This is where it happens: Id = GlobalAddAtom("aString"); if (Marshal.GetLastWin32Error() != 0) { throw new Win32Exception(); } I know that GlobalAddAtom is indeed in…
user2320724
  • 666
  • 3
  • 10
  • 18
0
votes
3 answers

Why does .NET not clear errors internally?

I am running the following scenerio: SafeFileHandle handle = Win32API.CreateFile((deviceName + "\\" + pipeName), DesiredAccess.GENERIC_WRITE | DesiredAccess.GENERIC_READ, …
SwDevMan81
  • 48,814
  • 22
  • 151
  • 184
0
votes
4 answers

Error - file not found when it is definitely there

I am trying to run a process with System.Diagnostics.Process.Start(), but am getting the following error: System.ComponentModel.Win32Exception: The system cannot find the file specified I double checked the path, and even copied the string to a cmd…
Baruch
  • 20,590
  • 28
  • 126
  • 201
0
votes
2 answers

Win32Exeption: The operation completed successfully... graphics

Ive searched some fo a solution but not a single person shows a solution... I would appreciate if someone could explain why it occurs and how to solve it (in a simple way) :) Occurs in same place all the time... a couple of minutes after i start the…
user1344948
  • 141
  • 1
  • 3
  • 11
-1
votes
3 answers

System.ComponentModel.Win32Exception: 'Error creating window handle.'

My problem is: System.ComponentModel.Win32Exception: 'Error creating window handle'. I know I can solve this problem with Dispose(), but when I use it in the program, I'm displaying another error: System.ObjectDisposedException: 'Can not access a…
-1
votes
1 answer

Win32 Exception: Access is denied while attempting to use OpenProcess

this error is appearing while I am attempting to do two things. while attempting this (Code block 1): _class = new Proc(Process.GetProcessesByName("procname")[0]); then in the class Proc whats happening is public Proc(Process _SelectedProcess) { …
Srdjan N.
  • 1
  • 4
1 2 3 4 5
6