Solved

trapping a windows runtime error

Posted on 2000-02-28
3
307 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…

762 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

13 Experts available now in Live!

Get 1:1 Help Now