Re: Access violation reading 0x00000010

2011-04-28 Thread yuan zheng
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 > Sorry , the path is just an example. > > This is not the question I think. Because there is lots of api > in libcommon-0.dll

Re: Access violation reading 0x00000010

2011-04-27 Thread yuan zheng
28 Chris Angelico > On Thu, Apr 28, 2011 at 4:01 PM, yuan zheng > 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 n

Re: Access violation reading 0x00000010

2011-04-27 Thread yuan zheng
libcommon = CDLL("c:\libcommon-0.dll", RTLD_GLOBAL) libcommon.SIM_init() -> This is the invoking. thanks, yuanzheng. 2011/4/28 Chris Angelico > On Thu, Apr 28, 2011 at 1:00 PM, yuan zheng > wrote: > > Hi, > > everyone. I have a question when I in

Access violation reading 0x00000010

2011-04-27 Thread yuan zheng
Hi, everyone. I have a question when I invoke an api which is included a library open by CDLL. And then it will prompt the follow error: libcommon.SIM_init() WindowsError: exception: access violatio

How to debug c libraries on python?

2011-04-05 Thread yuan zheng
Hi, everyone: I encouter a problem: I invoke some c libraries in python through the api "CDLL".Possibly, there is sth. wrong in my c libraries. It would appear segment fault when executing some func in c libraries which invoked through "CDLL". How can I debug? I attempted to debug it with

Re: A question about Cmd Class

2011-03-10 Thread yuan zheng
n implement commands with '-', but I can't let completion works well. thanks, yuanzheng. 2011/3/10 Dave Angel > On 03/10/2011 01:38 AM, yuan zheng wrote: > >> Thanks for your help. >> >> >> thanks, >> yuanzheng. >> >> 2011/3/8 Dave

Re: A question about Cmd Class

2011-03-09 Thread yuan zheng
og-busls list- NOTHING... - The mean is that when I input "l", and then hit "TAB", it can list all optional cmd. But when I input "list-", and then hit "TAB", there is nothing. thanks, yuanzheng. 20

Re: A question about Cmd Class

2011-03-09 Thread yuan zheng
Thanks for your help. thanks, yuanzheng. 2011/3/8 Dave Angel > On 01/-10/-28163 02:59 PM, yuan zheng wrote: > >> Hello, everyone: >> >> I encouter a question when implementing a commmand line(shell). >> I have implemented some commands, such as "start&q

A question about Cmd Class

2011-03-07 Thread yuan zheng
Hello, everyone: I encouter a question when implementing a commmand line(shell). I have implemented some commands, such as "start", "stop", "quit", they are easily implemented by "do_start", "do_stop" and "do_quit". there are no troubles. But I want to implement some commands like these "