Solved

illegal operation error.

Posted on 1998-08-03
4
185 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
[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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to measure sizes and angles in scanned images ? 3 100
Spell Check in VB6 13 152
Advice in Xamarin 21 121
transition to visual .net from vb6 5 81
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

752 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