Re: [python-win32] Missing memory de/allocation in com server causes APPCRASH?

2013-12-17 Thread Wedel, Jan
Hi all, I actually wrote a reply but it seems it has never been sent or I just it to Rogers address instead of the mailing list. To answer your (Rogers) suggestion again: The value that gets partially overwritten is 32Bit where the first 16Bit gets overwritten. Plus, this only happens for the

Re: [python-win32] Exception handling wrapper/function for somethinglike a whole class

2013-12-17 Thread Jacob Kruger
Ok, one thing now came across is the cgitb module, and, the following bit of code somewhere near top might help it at least log errors a bit better: import cgitb, os cgitb.enable(format="text", logdir=os.environ["APPDATA"] + \\appAuthor\\appName) That should then, hopefully, at least generate a

[python-win32] monitoring access to files

2013-12-17 Thread OptiCar
Hello, i've not found method or module on python to monitor access to file, on linux i've found dazuko, all i found can monitor change, deleting renaming, i've secondarly to monitor process, windows title and user operations, in my research, i found that it is possible to catch the interruption 21

Re: [python-win32] monitoring access to files

2013-12-17 Thread Jacob Kruger
In windows at least, I can use os.stat(sFileName) to retrieve file attributes, including modified time, accessed time, etc.? Haven't used it, but, anyway: http://docs.python.org/2/library/os.html#os.stat Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...'

Re: [python-win32] Bypassing gen_py, accessing makepy-generated class directly

2013-12-17 Thread Mark Hammond
[oops - resend with cc to list] It should be fine if the typelib itself doesn't register, so long as the objects themselves are registered. You should still run makepy over the typelib normally (so the generated file is still in the normal directory), but generating it to its own file should

Re: [python-win32] Bypassing gen_py, accessing makepy-generated class directly

2013-12-17 Thread Mark Hammond
oops 2 :) - where I said "-i" I meant "-o" Mark On 17/12/2013 10:13 PM, Mark Hammond wrote: [oops - resend with cc to list] It should be fine if the typelib itself doesn't register, so long as the objects themselves are registered. You should still run makepy over the typelib normally (so the

Re: [python-win32] Bypassing gen_py, accessing makepy-generated class directly

2013-12-17 Thread Jim Bell
Thanks everyone for the info. Generating with -o is fine, needs no fixups that I can tell. I was confusing bypassing the gen_py mechanism (which is possible) with bypassing the entire COM registration (which isn't possible). makepy presents everything pythonishly, but ultimately it still needs