Code:
####### print int(self.m_prohandle.pid())
i converted sip.voidptr (void* in c++) to int by python builtin method int(),but the result was a large number like 62552816, so what's wrong here?
sorry for my english and thanks in advance
Printable View
Code:
####### print int(self.m_prohandle.pid())
i converted sip.voidptr (void* in c++) to int by python builtin method int(),but the result was a large number like 62552816, so what's wrong here?
sorry for my english and thanks in advance
You are incorrectly assuming that the process has already started by the time you ask for its pid.