Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > TrueUpdate 2.0

 
 
Thread Tools Display Modes
  #1  
Old 04-29-2005
genevangampelaere genevangampelaere is offline
Forum Member
 
Join Date: Apr 2005
Posts: 2
LuaCOM plugin ExitScript Error

I'm evaluating TrueUpdate 2.0. I want to call a webservice in the server script. I'm using LuaCOM and the Soap Toolkit:

obj=luacom.CreateObject("MSSOAP.SoapClient");
Application.ExitScript();


When I call the ExitScript(); function I always get an error and windows (xp) closes the Update.exe.

What is wrong here ?
  #2  
Old 04-29-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Use this:

Code:
obj=luacom.CreateObject("MSSOAP.SoapClient");
obj=nil;
collectgarbage();
Application.ExitScript();
I lkearned this from the LuaCOM docs on their Web site:

Quote:
3.2.1.0.1 Caution
LuaCOM only tracks references to COM objects. It does not work with the concepts of ``application'', ``component'', ``process'' etc. It does not know even which objects are part of the same component or application. This has some consequences on the object disposal:
  • a component may only consider as ``finished'' its relationship with LuaCOM when all references to its objects are released, not only the one created with CreateObject;
  • some components have a ``Quit'' method. This may close the component's interface, but it could remain running if there are any references to it. Nevertheless, these references cannot be reliably used after the ``Quit'' method has been called. To release the component, one must assign nil to all references to the component (and its sub-objects) and then call collectgarbage
  #3  
Old 04-29-2005
genevangampelaere genevangampelaere is offline
Forum Member
 
Join Date: Apr 2005
Posts: 2
Thx for your fast reply ! It works!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: LuaCOM Brett Setup Factory 8.0 Examples 1 08-04-2005 10:18 AM
Action Plugin: LuaCOM Brett AutoPlay Media Studio 5.0 19 01-31-2005 11:58 PM
Indigo Rose Plugin Changes Lorne AutoPlay Media Studio 5.0 4 09-27-2004 05:17 AM
SUF6.0.0.2 -- installer hangs. jassing Setup Factory 6.0 4 12-20-2001 12:28 AM


All times are GMT -6. The time now is 02:59 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software