I put these lines just above the @endscript label in 
comPluginTestScriptWMI.powerpro. Each of the items debugged has recently been 
assigned its return value from com.release(item).

win.debug("objPrinter", objPrinter)
win.debug("objPrinterEnum", objPrinterEnum)
win.debug("objWMIService", objWMIService)
win.debug("colInstalledPrinters", colInstalledPrinters)

The objPrinterEnum item consistently returns:

 "ERROR: com.release: Object handle, isn't"

while the other items return:

 "OK"

Also, wouldn't it be better if "Done" didn't raise a fatal error when 
processing enumerators? That way it wouldn't be necessary to turn error dialogs 
off in com scripts.

Regards,
Sheri

Reply via email to