Solved

trapping a windows runtime error

Posted on 2000-02-28
3
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month5 days, 5 hours left to enroll

636 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