#54 Registering Python COM Server component category crashes

closed-fixed
nobody
com (105)
5
2004-04-07
2003-09-02
Matthias Kirst
No

When registering the Python COM Server component
category, Python crashes with Dr.Watson.

The crash happens when executing the last line in the
function:

def RegisterPyComCategory():
""" Register the Python COM Server component
category.
"""
regCat = _cat_registrar()
regCat.RegisterCategories( [ (CATID_PythonCOMServer,
0x0409,
"Python COM Server") ] )

Discussion

  • John J Smith
    John J Smith
    2003-09-04

    Logged In: YES
    user_id=830565

    Is this related to bug #784962 (Installation crash in recent
    win32all's)?

     
  • Matthias Kirst
    Matthias Kirst
    2003-09-05

    Logged In: YES
    user_id=397984

    Bingo!
    The installation crashed as well with 154 (NT/XP).
    Since I experienced my crash with a customized
    Python/PythonCOM version I did not register the scripting
    engine -> the crash occured when I registered my first COM
    component.
    Since win32all does not unregister the Python COM Server
    component category when uninstalling you succeed when
    preinstalling an older version of win32all.

     
  • Stuart Rackham
    Stuart Rackham
    2003-09-28

    Logged In: YES
    user_id=655059

    Observed on Win98/XP/2000/NT4.
    A workaround is to have your installer write the following
    registry entry *before* registering the server:

    [HKEY_CLASSES_ROOT\Component
    Categories\{B3EF80D0-68E2-11D0-A689-00C04FD658FF}]
    "409"="Python COM Server"

     
  • Eric Promislow
    Eric Promislow
    2004-01-15

    Logged In: YES
    user_id=63713

    I got occasional crashes when registering a Python
    COM Server on a clean Win2K system with
    ActivePython 2.3.2 build 232. When attempting
    to register a COM server the first time, I would
    get an access violation reported in PyNode_Future

     
  • Mark Hammond
    Mark Hammond
    2004-04-07

    • status: open --> closed-fixed
     
  • Mark Hammond
    Mark Hammond
    2004-04-07

    Logged In: YES
    user_id=14198

    All fixed now