473,320 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

unload activex

Hi,
I need to unload my activex after using it throght my web page(java
script).
I create it using the new operator.
Is there any way or method to make ie unload the file.

Thanks,
TestGames

May 30 '07 #1
2 5241
TestGames said the following on 5/30/2007 10:19 AM:
Hi,
I need to unload my activex after using it throght my web page(java
script).
I create it using the new operator.
Is there any way or method to make ie unload the file.
Yes. If you set your ActiveX to a variable, setting that variable to
something else:

var myVar = new ActiveXObject("Msxml2.XMLHTTP");

//more code here

var myVar = null;

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 30 '07 #2
VK
On May 30, 8:38 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
I need to unload my activex after using it throght my web page(java
script).
I create it using the new operator.
Is there any way or method to make ie unload the file.

Yes. If you set your ActiveX to a variable, setting that variable to
something else:

var myVar = new ActiveXObject("Msxml2.XMLHTTP");

//more code here

var myVar = null;
It is correct but only for "well automated" internal services like
IXMLHTTPRequest and so. If you are using ActiveX to launch some
application like MS Word or MS Excel then JScript garbage collector
may have not enough privilege to dismiss the process: they are acting
on different levels, JScript GC inside the current thread while say MS
Word is under the kernel "jurisdiction" where JScript GC is not
allowed. As a result you may end up with JScript reference removed but
the application itself running in orphan - from JScript point of view
- state. This is why I would suggest always first use Quit() or Exit()
method of application itself - if it is provided - and only then
nullify the reference.

May 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mjcast | last post by:
I have been working on an ActiveX control in C#. It is packaged in a Windows Control library and the code is in a user control. The control is used as an automation receiver that is used to update a...
1
by: hal | last post by:
I have an application that includes an activex component that consumes resources that must be released when the a page is unloaded. Toward this end I subscribe to the unload event of the body...
3
by: Gauthier Segay | last post by:
Hello, I've an application where all my pages implement a PAGE_CODE string property, this property is stored in HttpContext.Current.Items. In some page, I must persist data in session while...
1
by: kp | last post by:
Hi, I've got a COM (project is a ActiveX exe) in which I've got a User Doc & have a webBrowser control on it. I can't close the COM b/c the webBrowser control won't shutdown. How do I...
5
by: mikez | last post by:
Hi, We recently built a very basic file management system for a client in Access 2003 (to use with incoming tif scans). In it we used Microsoft's Document Imaging activex viewer (from Office...
6
by: fantum | last post by:
I have created a small activex dll to do a background task on my web server. I fire it off with a set myjob = server.createobject(myactivex) and it runs. I do not do a set myjob = nothing and so...
11
by: Timofmars | last post by:
I'm try to Unload DB2 data from a table into a record sequential file on NT. I can an unload on Mainframe, but it doesn't seem to be an option in NT. In NT, all I can do is export/import. I can...
6
by: Ronald S. Cook | last post by:
We have a Windows app that has one main form (a shell, sort of). We then load user controls into a panel on the form depending on what the user has selected. Our current code to unload the...
0
by: rizzy | last post by:
Hello, didn't know where to post this, since you don't have a vbscript section. I thin k however that this applies to javascript as well. I have an asp.net web application which allows the staff...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.