473,387 Members | 1,664 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,387 software developers and data experts.

Kill ObjectContext

KK
Hi,

I am using COM+ components for executing SQL stored procs. These
VB.dlls are called by ASP pages.

I can see the status of each object in the status view COM+

I am generating Excel reports by using pre-defined templates, with the
help of COM+ for executing stored procs.

But I am surprised to see the status of a component running with more
call_time even though I stopped the execution of a report in the middle
of execution by clicking stop in the IE browser, closed the IE browser.
The object has not been released in COM+ application. It continued to
execute the timeconsuming SQL query and the call_time value is
increasing...

How to kill the object instance as soon as the client (IE) stopped or
closed?

Please assist.

Regards.

Jul 22 '05 #1
5 2070
The server does not know that the browser has closed unless it checks. Your
com components will need to check Response.IsClientConnected periodically.
--
--Mark Schupp
"KK" <kr*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi,

I am using COM+ components for executing SQL stored procs. These
VB.dlls are called by ASP pages.

I can see the status of each object in the status view COM+

I am generating Excel reports by using pre-defined templates, with the
help of COM+ for executing stored procs.

But I am surprised to see the status of a component running with more
call_time even though I stopped the execution of a report in the middle
of execution by clicking stop in the IE browser, closed the IE browser.
The object has not been released in COM+ application. It continued to
execute the timeconsuming SQL query and the call_time value is
increasing...

How to kill the object instance as soon as the client (IE) stopped or
closed?

Please assist.

Regards.

Jul 22 '05 #2
On 12 May 2005 10:32:42 -0700, "KK" <kr*********@gmail.com> wrote:

well...

for crying out loud.

You've got a wrapper in a wrapper in a wrapper...

go figggggger.

who knows.

drink some beer.
Hi,

I am using COM+ components for executing SQL stored procs. These
VB.dlls are called by ASP pages.

I can see the status of each object in the status view COM+

I am generating Excel reports by using pre-defined templates, with the
help of COM+ for executing stored procs.

But I am surprised to see the status of a component running with more
call_time even though I stopped the execution of a report in the middle
of execution by clicking stop in the IE browser, closed the IE browser.
The object has not been released in COM+ application. It continued to
execute the timeconsuming SQL query and the call_time value is
increasing...

How to kill the object instance as soon as the client (IE) stopped or
closed?

Please assist.

Regards.


Jul 22 '05 #3
KK
Hi,

checking Response.IsClientConnected periodically? How to do that in
COM? because it is throwing error Run-time error '424: "Object
required"

Do we need to include any reference in the project?

Pls assist.

Thanks.

Jul 22 '05 #4
You can get the response object in VB like this if you reference the Com+
services library

Set objContext = GetObjectContext()
Set Response = objContext("Response")

Or just pass it in from the ASP page that calls the com object method.

--
--Mark Schupp
"KK" <kr*********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hi,

checking Response.IsClientConnected periodically? How to do that in
COM? because it is throwing error Run-time error '424: "Object
required"

Do we need to include any reference in the project?

Pls assist.

Thanks.

Jul 22 '05 #5
KK
Thanks Mark. Its working in COM+

Jul 22 '05 #6

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

Similar topics

6
by: Bob Swerdlow | last post by:
My application starts up a number of processes for various purposes using: self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py") and then shuts them down when appropriate with...
3
by: Alex Hunsley | last post by:
I'm running a monitoring script under linux written in python. It's nohup'ed so that I can log out and it will continue running happily and so on, but sometimes I need to kill the script before...
10
by: Vilmar Brazão de Oliveira | last post by:
HI people, what is wrong in the code bellow to kill iexplore.exe process after processing my page?? '»»Before comes routines to access data base and to send email. Set objWshell =...
10
by: Fred | last post by:
There is a setting in INIT.ORA that has the unintended side-effect of making sure the ALTER SYSTEM KILL SESSION command has immediate affect. Without this setting, I've seen some instances where...
0
by: Ramkumar via DotNetMonster.com | last post by:
Hi I am trying to upgrade my application from VB 6 to VB.Net step by step. The first one was a class library and I used the migration wizard. However, it did not upgrade this COM part. I am...
3
by: Matt | last post by:
I have below object and while i am debuging i am getting error Run time error 91 Object variable or with block variable not set error. If i comment out the Context.SetComplete Context.SetAbort...
3
by: elrondrules | last post by:
Hi Am new to python and need your help!! this is my code snip. within my python script I have the following commands.. <snip> import os
4
by: Richard Rossel | last post by:
Hi Fellows, I have a problem with process termination. I have a python code that apache runs through a django interface. The code is very simple, first, it creates a process with the...
3
by: spectrumdt | last post by:
Hello. I am running Fedora Linux and KDE, using the Konsole command line. When coding Python, I regularly make a bug causing my program to not terminate. But how do I kill the non-terminating...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.