windowserror

WindowsError: priveledged instruction when saving a FreeImagePy Image in script, works in IDLE

I'm working on a program to do some image wrangling in Python for work. I'm using FreeImagePy because PIL doesn't support multi-page TIFFs. Whenever I try to save a file with it from my program I get this error message (or something similar depending on which way I try to save): Error returned. TIFF FreeImage_Save: failed to open fil...

Disabling Windows error reporting (Dr. Watson) for my process

I have an application that is hosting some unstable third-party code which I can't control in an external process to protect my main application from nasty errors it exhibits. My parent process is monitoring the other process and doing "the right thing (tm)" when it fails. The problem that I have is that Dr. Watson is still detecting c...

"WindowsError: exception: access violation..." - ctypes question

Howdy all - Here is the prototype for a C function that resides in a DLL: extern "C" void__stdcall__declspec(dllexport) ReturnPulse(double*,double*,double*,double*,double*); In another thread, I asked about how to properly create and send the necessary arguments to this function. Here is the thread: http://stackoverflow.com/question...

How to workaround Python "WindowsError messages are not properly encoded" problem?

It's a trouble when Python raised a WindowsError, the encoding of message of the exception is always os-native-encoded. For example: import os os.remove('does_not_exist.file') Well, here we get an exception: Traceback (most recent call last): File "<stdin>", line 1, in <module> WindowsError: [Error 2] 系統找不到指定的檔案。: 'does_not_exist....

WindowsError [error 5] Access is denied

Hi, I'm using the killableprocess package (built on top of subprocess) for running processes Whenever I run the "killableprocess.Popen(command)" piece of code in my script I get the following error: File "killableprocess.py", line 157, in _execute_child winprocess.AssignProcessToJobObject(self._job, hp) File "winprocess.py", lin...