Access violation reading 0x00000010

yuan zheng tsinghuayuan86 at gmail.com
Thu Apr 28 03:55:24 EDT 2011


I have found my question's answer. The fault is sourced
from the implement of SIM_init().


Thanks a lot.



thanks,
yuanzheng.

2011/4/28 yuan zheng <tsinghuayuan86 at gmail.com>

> Sorry , the path is just an example.
>
> This is not the question I think. Because there is lots of api
> in libcommon-0.dll, and there is no fault when invoking other
> api, such as libcommon.SIM_start().. It's just fault when invoking
> this api -> SIM_init(). So I wanna which situation would lead to this
> error:
>
> ----------------------------------------------------------------------------------------------
>
> WindowsError: exception: access violation reading 0x00000010
>
> ----------------------------------------------------------------------------------------------
>
>
>
> thanks,
> yuanzheng.
>
>
> 2011/4/28 Chris Angelico <rosuav at gmail.com>
>
>> On Thu, Apr 28, 2011 at 4:01 PM, yuan zheng <tsinghuayuan86 at gmail.com>
>> wrote:
>> >
>> > libcommon = CDLL("c:\libcommon-0.dll", RTLD_GLOBAL)
>> >
>> > libcommon.SIM_init()     -> This is the invoking.
>>
>> When you have a backslash in a literal string, you need to double it:
>> libcommon = CDLL("c:\\libcommon-0.dll", RTLD_GLOBAL)
>>
>> I don't know if that's your problem, but it could be!
>>
>> Chris Angelico
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110428/6c6acd00/attachment.html>


More information about the Python-list mailing list