Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Embeding Python, COM crash

Reply
Thread Tools

Embeding Python, COM crash

 
 
Fabien SK
Guest
Posts: n/a
 
      07-30-2003
Hi,

I wrote a plugin for Visual C++ 6 that uses Python 2.2 (it worked
perfectly for months). I just installed Python 2.3, and recompiled my
plugin, and now it crashes. My plugin do the following things:

Py_Initialize();
LoadLibrary("pythoncom23.dll");

typedef PyObject* (*CONVERT_PROC)(IUnknown *punk, REFIID riid, BOOL
bAddRef);
CONVERT_PROC proc = 0;
proc = (CONVERT_PROC)::GetProcAddress(m_hDll, "PyCom_PyObjectFromIUnknown");

PyObject *pvc = proc(punk, __uuidof(IUnknown), FALSE); // boom

and I have a "null pointer" crash with python 2.3. I remove the
installation of 2.2, so there are no old header or library. I am using
Visual C++ 6.
Am I doing something wrong, or did something change with Python 2.3 ?
Note: I am using the lastest python installer and win32all-155.exe.

Thank you for your attention

Fabien

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embeding Directx in aspx page? =?Utf-8?B?UGlja3dpY2tCb2Iz?= ASP .Net 1 12-01-2005 09:37 AM
embeding wmp w/instant play?l ASP .Net 3 06-10-2005 03:56 PM
CRASH - DirectX End-User runtime - CRASH - What to to ? reply@newsgroup.please Computer Support 1 01-05-2004 02:55 PM
Re: Font Embeding DU HTML 1 07-22-2003 08:52 PM
Re: Font Embeding Adrienne HTML 3 07-22-2003 06:04 PM



Advertisments