Solved

illegal operation error.

Posted on 1998-08-03
4
182 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
ID: 1467626
Try

 Unload Me

instead of end


0
 

Author Comment

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

Author Comment

by:dokken
ID: 1467628
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
ID: 1467629
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

815 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