Solved

Stopping AxtiveX.exe from another application

Posted on 2002-06-24
6
153 Views
Last Modified: 2010-05-02
I have written a ActiveX.exe that handles my ASP requests on the server.

Is there a possibility to stop the ActiveX.exe process from another programme (also from an ASP page) when it has hung up?

I have tried the EnumProcesses API to retrieve the process handle of the ActiveX.exe, but the handle does not appear in the list.

Any ideas ?
0
Comment
Question by:HiThere
  • 3
  • 2
6 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 7103455
Wouldn't it be better to find the error in the ActiveX executable instead of working around the problem?

CJ
0
 
LVL 1

Author Comment

by:HiThere
ID: 7103931
Thanks CJS,

I have checked that and I could not find a bug. I have even created an error-log to track errors of each routine in the programme to see what might be wrong. The programme works fine for several weeks and then, for unknown reasons, hangs up. On the development server I never had this problem.

I thought that it might be a bug in ASP server extensions on this server, as it does not even allow  Sever.CreateObject("ADODB.Connection").
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7104008
I think something is really wrong. Try applying all latest hotfixes, security rollup packages and service packs. Look at http://www.microsoft.com/downloads/release.asp?releaseid=31154 to see what fixes you can use.

I don't think you can reach for the activex exe and shut it down. Since it already hangs you cannot send a new event to it.

Sometimes the data is the error. Are you sure that all data that goes through the application is valid? Have you checked every possibility? I myself had such a simple error. It was the backoffice of a site retrieval system. It ended up playing the MPEG's on the server which eventually hung. I think it's a good idea to check the data... especially if al goes fine on the development server.

CJ
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:HiThere
ID: 7104134
CJ S,

Thanks for the advice. I will check the data and the try  hotfixes. This might take a few days. I will keep you posted.

Regarding the remote termination of the process, I believe it shold be possible by identifying the process-handle of the activeX.exe and close it using API. Just like one terminates the process with the NT task-manager. I thought that this would temporarily solve my problem until I have checked all possible configuration and version errors.
0
 
LVL 5

Accepted Solution

by:
rkot2000 earned 300 total points
ID: 7104477
you should use activex dll + mts/com+ with asp client.
activex exe doesn't work well with stateless clients.

read more info:

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q201014


HOW TO: Package ASP Scripts by Using Visual Basic COM Components (Q299988)
http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q299988

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q299714
0
 
LVL 1

Author Comment

by:HiThere
ID: 7106719
Thanks rkot2000.

This gets me closer towards solving my problem. I will try to increase the threads in my ActiveX.exe and see if this solves the problem. Maybe I have an opportunity to move to WIN2000 server with ISS5. The article you referred to talks about the problem only in ISS4. If all this does not help, I will probably have to convert my programme into ActiveX.dll.

Thanks again.
TP
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pull multiple cvs files into one access table 28 64
Use Multiple Forms 4 48
Macro which automatically sends attachment to Outlook 14 61
using Access 8 58
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now