Solved

trapping a windows runtime error

Posted on 2000-02-28
3
310 Views
Last Modified: 2010-05-02
I'm writing a program and it has error trapping using the on error statement , but the program is crashing when it tries to execute a form.show command.....

the crash is a major crash and is not being trapped with the vb on error statement handler...the crash is a windows crash.....VB is not trapping the error, and the error message is from window, not vb

"this program has performed an illegal operation and will be shut down....if the problem persists contact the program vendor"

What could be happening to cause a huge error like this, i'm not allocating memory or using any user classes, it is just using forms and processing data?, and is there a way to trap a windows error some other way than with on error goto?  Thanks.
0
Comment
Question by:vbdvlper
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 50 total points
ID: 2566447
This is not a trappable problem.

 Try this first:
1. Close all window programs
2. Start eindows explorer
3. Goto the temp folder in windows (maybe called Window95/Window98/Windows)
4. Delete all the files in temp ( I bet you have  alot of files there, they are just junks)
5. Reboot computer.
6. Try to run the app again.

If the problem still come out,  click the [Details].  It should list some infor.
Copy and paste the infor here and we can go from there.  
0
 

Author Comment

by:vbdvlper
ID: 2566570
Dalin,

Thank you....The runtime error is not there anymore....the error message was a segmentation error i think....before rebooting, i was tracking the error by debugging running line to line....the program crashed during a form.show command...

in development mode, i typed the form name frmPR3Max. when i typed the . windows had an segmentation error.... it has not been crashing since rebooting.....

the program is reading in large text and xls data files and plotting and formatting data to analyze with excel, i am in development stage and debugging....
0
 

Author Comment

by:vbdvlper
ID: 2566647
i'm not sure of the cause, but, the program was crashing during form.show event....error goes away, but sometimes reappears....seems to be no error now...thanks..
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding to a VBA? 6 78
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 58
SQL VB connection works in one PC and doesn't in another 15 67
Spell Check in VB6 13 126
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…

856 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