--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
>
> > > > - Com.Unload
> > > 
> > > What's it do wrong?
> > > 
> > 
> > I'm aware that a similar issue was mentioned before by Sean.
> > - 
> > http://tech.groups.yahoo.com/group/power-pro/messages/29940?threaded=1&m=e&var=1&tidx=1
> 
> After what script, please?  I.e. what were you doing with com
> before com.unload?
> 

I've been useing the Com plugin v0.61.

I tried below script#1,#2 after restarting powerpro and changing configuration 
to empty.pcf.
and, most of sample scripts included in COMplugin0.61.zip cause this problem in 
my environment.

; Scrpt #1 -------------------------------------------------
Local Com_Status

Local sUrl = "http://powerpro.webeddie.com/xdownload.shtml";
Local oHTTP = Com.Create_Object("WinHttp.WinHttpRequest.5.1")
oHTTP.Open("GET", sUrl)
oHTTP.Send()
Local sHTML = oHTTP.ResponseText
oHTTP = Com.Release(oHTTP)
;~ Com.Release_All()

For Each Line l In sHtml
        Win.Debug(l)
EndFor

Exec.ScriptDebug(1)
; #1
Com.Unload

; #2
Shutdown.PowerPro()
; ----------------------------------------------------------



; Scrpt #2 --------------------------------------------------
Local Com_Status

Local num = "12345678"
Local vbs = Com.Create_Object("ScriptControl")
vbs.Language = "VBScript"
Local formatted = vbs.Eval("FormatNumber(&(num),0)")
vbs = Com.Release(vbs)
;~ Com.Release_All()

Win.Debug(formatted)

Exec.ScriptDebug(1)
; #1
Com.Unload

; #2
Shutdown.PowerPro()
; ----------------------------------------------------------

Regardless of Com.Release() or Com.Release_All(), the same problem appears.

If executing a Com.Unload at mark #1, powerpro crashes.
So, I could never see "Exit Powerpro?" confirm dialog box at mark #2

If commenting out a Com.unload, Shutdown.PowerPro() does not exit powerpro 
cleanly and powerpro.exe still remains in the Task Manager.
So, there might be two (or more) instances of powerpo.exe.

To prevent two instances, I have to press Ctrl+Alt+Del(to open Task Manager), 
and then click the "End Process" button.


Thanks.

Reply via email to