This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yinkaisheng
Recipients yinkaisheng
Date 2013-11-29.03:08:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385694486.55.0.506280821689.issue19790@psf.upfronthosting.co.za>
In-reply-to
Content
After debugging, I found the reason.
when ctypes loads the dll, CoCreateInstance blocks the flow.

If I don't call CoCreateInstance in function DllMain. ctypes can load the dll.

I should call function CoCreateInstance after DllMain was called. 

The problem was fixed.
History
Date User Action Args
2013-11-29 03:08:06yinkaishengsetrecipients: + yinkaisheng
2013-11-29 03:08:06yinkaishengsetmessageid: <1385694486.55.0.506280821689.issue19790@psf.upfronthosting.co.za>
2013-11-29 03:08:06yinkaishenglinkissue19790 messages
2013-11-29 03:08:06yinkaishengcreate