2016-12-26 7 views
0

スレッドを起動メソッド、任意のアイデアにしようとするとIDA pro craches ??プラグインを書く:スレッドを起動するとIDA Proがクラッシュする

idaにスレッドを実行するにはいくつかの制限がありますか?私は文書の中に何も見つかりませんでしたので、writing plugin ida

import idaapi 
from threading import Thread 
import time 

class Listener(Thread): 
    def __init__(self): 
     Thread.__init__(self) 

    def run(self): 
     time.sleep(3) 

class myplugin_t(idaapi.plugin_t): 
    flags = idaapi.PLUGIN_UNL 

    def init(self): 
     return idaapi.PLUGIN_OK 

    def run(self, arg): 
     t1 = Listener(); 
     t1.start(); 
     t1.join(); 

    def term(self): 
     pass 

def PLUGIN_ENTRY(): 
    return myplugin_t() 

PS:同じ問題は、私はPythonでC++

答えて

0

でプラグインを書くとき、あなたはプロIDAで動作

thread.start_new_thread(functionname,()) # the second arguments is for args 

を使用することができます発見されました。

C++の場合、任意のida?

関連する問題