[python-win32] Re: FetchProgress event problem

2005-12-23 Thread Roger Upole
It's likely your recordset and connection objects are going out of scope before they get a chance to fire any events. As soon as the function exits, both of the COM objects will be released. Also, you might want to use the named constants from win32com.client.constants in place of hardcoded value

Re: [python-win32] FetchProgress event problem

2005-12-23 Thread Tim Roberts
On Thu, 22 Dec 2005 10:15:29 -0500, Dawid Zamirski <[EMAIL PROTECTED]> wrote: >I'm trying to track recordset loading progress (it is loaded >asynchronously), but neither FetchProgresss or FetchComplete event is >launched. I played with WillMove events in sychronous mode and they work >just fine

Re: [python-win32] FetchProgress event problem

2005-12-23 Thread Dawid Zamirski
The objects last quite long because it's a huge database (about 73 records) and it takes a few minutes to load, that is why I wanted to track the progress so the user know that something is happening. As for now, I implemented "pulse" progress bar to notify the user of activity, however acc

Re: [python-win32] FetchProgress event problem

2005-12-23 Thread Dawid Zamirski
That was just a typo when I was posting to the list :-). In real code I have the recordset setup correctly, it's just the FetchProgress and FetchComplete events that do not work. Tim Roberts wrote: > On Thu, 22 Dec 2005 10:15:29 -0500, Dawid Zamirski <[EMAIL PROTECTED]> wrote: > > >> I'm tryi