The same thing happens with just this code running, and this code running with additional python code running in the process.
That was the first thing we tried to isolate -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Heller Sent: Tuesday, August 19, 2008 4:26 PM To: comtypes-users@lists.sourceforge.net Subject: Re: [comtypes-users] COM issues with IE7 and python,possibly the GIL? Thomas Heller schrieb: > MR Michael Robellard (5314) schrieb: >> We have created a COM object that runs under IE to implement the >> IURLSearchHook2 interface. This allows you to intercept invalid URLs and >> run a search for them in the address bar of IE. Everything has been >> running great on my XP box with IE6 installed on it. >> >> We went to test it on an IE7 machine and we have instant issues with it. >> When you search in IE7 using the code it will randomly hang the search. >> The rest of IE continues to function. If you then execute a second >> search in the address bar, it will execute the second search and then >> the hung search will successfully execute. >> >> Attached is a standalone python module that successfully reproduces this >> issue. You will need to add the following GUID as the only string value >> in the key: >> {0BC6E3FA-78EF-4886-842C-5A1258C4455A} >> to this key in the registry >> HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\URLSearchHooks > > Thanks you for preparing this standalone test case. I have tried it out > but as I said in posts before I cannot get it to work neither with a XP IE6 > machine nor with a XP IE7 machine. I will try it out over the weekend > when I find a different machine. It took me quite some time to figure out where MY problem with your code was: I has the impression that I need to enter at least TWO words into the IE address bar to trigger the URLSearchHook. Now I found that I have to enter a single word, and then the Translate methods are called. So, I can (when I have time) investigate the issue deeper. > >> So the questions are: >> Have we done something in our implementation that is causing this issue? >> Is there an issue with how _ctypes.pyd is handling the GIL for these >> calls? Michael, can it be that you have more Python objects loaded into the InternetExplorer process? In other words, is the Python interpreter shared by several com objects or other python code that is running in this process? -- Thanks, Thomas ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users