我正在用 idapython 为 IDA 写一个插件。当我尝试使用线程时,IDA 程序失败。
例如,当我尝试运行代码时:
import thread
def run():
print "start thread"
print "start"
thread.start_new_thread(run, ())
print "end"
IDA python控制台打印“start”字样,然后IDA失败。
我能做什么?
最佳答案
尝试升级您的 IDA/IDAPython。使用 IDA 6.1 和它附带的 IDAPython,上面的代码适用于我。
也就是说,在这个版本中你真的不能从多个 python 线程访问数据库。参见 idaapi.execute_sync了解更多信息。
关于python - 使用 idapython 进行线程化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12557165/