Re: error occurs when using wmi module in child thread

2006-07-11 Thread Chen Houwu
thanks to solve my big problem :-) I will try it later. -- http://mail.python.org/mailman/listinfo/python-list

Re: error occurs when using wmi module in child thread

2006-07-11 Thread placid
Chen Houwu wrote: > --sample code begin- > > import threading > > import wmi > > def run(*args): > c = wmi.WMI () > memory=c.Win32_LogicalMemoryConfiguration()[0] > info='Total Virtual Memory: '\ > +str(int(memory.TotalVirtual

error occurs when using wmi module in child thread

2006-07-11 Thread Chen Houwu
--sample code begin- import threading import wmi def run(*args): c = wmi.WMI () memory=c.Win32_LogicalMemoryConfiguration()[0] info='Total Virtual Memory: '\ +str(int(memory.TotalVirtualMemory)/1024)\