Re: [python-win32] BSTR

2006-04-14 Thread Gabriel Genellina
> P.S.: Gabriel, yes, I have put Sleep(1) now, even > though it > worked without the parenthesis too, even thought it > shouldn't, > right? Well, it "worked" in the sense that it gave no errors because time.sleep is a valid Python expression, but it has not the desired effect. It's a common pitfal

[python-win32] BSTR

2006-04-14 Thread Reiner M. Stoss
Tim, yes, I had tried all these weird ideas already ;-) Same exception error. As I just wrote in my first reply, the problem seems that the variant argument that should contain the path+filename is a VT_ERROR, whatever that means. I don't have too much experience so far with PythonWin. I just use

[python-win32] BSTR

2006-04-14 Thread Reiner M. Stoss
Mark et al., > Python will *always* (unless an object's typelib indicated otherwise) pass > a VT_BSTR when a string literal is specified. I'm afraid I can't > speculate on what the problem may otherwise be. As additional information to our problem I want to mention that other methods which need

Re: [python-win32] Runnin Python app as service with separateconsole

2006-04-14 Thread Michael Li
Hi, Mark Thank you very much. Now my python server works perfectly by adding signal handler to intercept CTRL_LOGOFF_EVENT. Best regards. Michael Li Michael Li wrote: > Hi, Mark > > Thank you very much. > I will try it. > > Best regards. > Michael Li > > Mark Hammond wrote: > >> Your proce

Re: [python-win32] BSTR

2006-04-14 Thread Gabriel Genellina
Some remarks (altough not directly related to your current problem): > >while CCDCamera.ImageReady == False: > > time.sleep Should be time.sleep(1) or something. Remember that in Python you always need to use () to call a function. >if CCDCamera.LinkEnabled == False: It's not a good idea to

Re: [python-win32] BSTR

2006-04-14 Thread Tim Roberts
On Thu, 13 Apr 2006 23:21:26 +0200, "Aleksandar Cikota" <[EMAIL PROTECTED]> wrote: >I'm beginner in Python and need help. I'm writing software for a robotic >telescope. For CCD camera control we use MaxIm DL (Diffraction Limited). I >have a problem with CCDCamera.SaveImage. > >Here is the code (