Solved

illegal operation error.

Posted on 1998-08-03
4
180 Views
Last Modified: 2010-05-03
I'm getting an illegal operation error with my program when I click the exit button.  I do not get this error if I use the X at the top of the window.  For the exit buttons click event I have just the word end.  Any ideas?
0
Comment
Question by:dokken
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
deighton earned 20 total points
Comment Utility
Try

 Unload Me

instead of end


0
 

Author Comment

by:dokken
Comment Utility
Just tried Unload Me, still says it performed an illegal operation error.
0
 

Author Comment

by:dokken
Comment Utility
I'm using an OCX for popup buttons... I have 5 of them. 4 work perfectly doing other events, but from the test I just ran the 5 one - the exit button - gives me the illegal operation error. Is there any way to fix that?
0
 

Expert Comment

by:kilobugs
Comment Utility
When you click the "x" at the top of the window, you force the program to close instead of shutting down the program. i.e. the process(es) of the program is/are still running at background. Press Ctrl-Alt-Del and you will know. The process is still there. Perhaps you still have operation running when you want to quit??? Please check to see if any of your program interface(s) is/are active when you try to quit!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

11 Experts available now in Live!

Get 1:1 Help Now