Closed bbigras closed 8 years ago
Repro'd here. Will possibly fix soon.
:+1:
See: https://github.com/golang/go/issues/8293#issuecomment-66096515
This is occurring because ItemIndex doesn't exist on SWbemObjectSet in Windows XP. The comment above recommends using _NewEnum. I do not know if I can work on this soon. But maybe it's enough to point someone in the right direction.
I just had the same problem on Windows 2003 :). Be great if we could fix this.
Hi ,
Is this fixed or not? it is not working for me on windows XP and windows 2003 because of "ItemIndex". can you help me on this?
mjibson, Are you working on this?
Should run now?
Since it wasn't clear if it was fixed or not I tested again and it seems fine.
Y:\go\src\github.com\StackExchange\wmi>go test
Disabling GC
iter 0 zeros: 0
iter 1 zeros: 0
iter 2 zeros: 0
iter 3 zeros: 0
iter 4 zeros: 0
Enabling GC
iter 0 zeros: 0
iter 1 zeros: 0
iter 2 zeros: 0
iter 3 zeros: 0
iter 4 zeros: 0
PASS
ok github.com/StackExchange/wmi 1.512s
go version go1.6.3 windows/386
Windows XP go version go1.4.2 windows/386
The tests works on Windows 7 64-bit.