Solved

trapping a windows runtime error

Posted on 2000-02-28
3
311 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 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