Solved

Problem with crash on NT

Posted on 2000-02-25
3
154 Views
Last Modified: 2010-05-02
Hi,

When i run my project exe and it crash, it stays in the Task Manager as many times as I run it.

Here is a temporary command button I use to make a crash.

Private Sub cmdCrashIt_Click()
    set RS = DB
End Sub

The exec file is TEST.EXE and, for example, if i click on the "CrashIt" button, i get a runtime error and then i quit the program. If i do it again two times (for a total of 3) and i go on the Task Manager, i see 3 occurences of TEST.EXE. It seems it stays in memory...

What can i do ?????

Thanks to all

Sruel
0
Comment
Question by:sruel
3 Comments
 
LVL 3

Expert Comment

by:MTroutwine
Comment Utility
What is the runtime error?
0
 

Author Comment

by:sruel
Comment Utility
The rt error is #13 but it's not important. I WANT it to crash. What i don't want is the "TEST.EXE" staying in the task manager.
0
 
LVL 1

Accepted Solution

by:
Ask_ED earned 50 total points
Comment Utility
The reason you are finding left over instances of TEST.EXE in the task manager is because the previous applications are still executing. This is usually caused by objects or connections being left open and the faulted application can not terminate properly.

With the example you have provided I can not tell exactly what object or connection that might be, but I'd recommend that you review your code and create a list of things open or created when you cause this error. Then add an error handler to close or "set to nothing" anything on your list.

Note a good place to add your "set to nothing" calls would be the

Private Sub Form_Terminate() or
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)

events.

Hope this helps
ED
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

743 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

17 Experts available now in Live!

Get 1:1 Help Now