-
Notifications
You must be signed in to change notification settings - Fork 174
failed to print string array #42
Comments
The problem is, that oleutil.Value() in this case returns nil - and in wmi.go:288 nil value is ignored. It shouldn't be - default case in switch that follows should take care of nil value and check if it is not array. |
Guys I'm seeing that panic and looks like it is related to arrays
Here is code
|
Seems I've found why this panic happens. at first merged fix looks like right
as far as I got when returning array from syscall In bad entries upperbouds looks like overflows it it equals to 0xFFFFFFFF ole
wmi
|
Found this issue. go-ole/go-ole#172 |
Fix merged into go-ole |
I am trying to print the gateway of each NetAdapter by following code,
It print
[]
for all netadapters, not sure if this is a bug.The text was updated successfully, but these errors were encountered: