|
Summary
This article describes a General Protection Fault error when closing an application. This information applies to:
Details
Sometimes, a compiled VB application will terminate with a General Protection Fault (GPF) or other similar crash. This usually happens when a programmer places the End statement in the BetterButton's Click event.
Workaround
This bug is caused by using the End statement. To work around this problem, we recommend you do not use the End statement anywhere in your application. End shuts down your program immediately and does not give any components the ability to shut down properly. Since the button has open pointers, terminating the application with End causes it to crash. Instead, use the Unload form method to close your application. When using this method, Visual Basic will send a termination request to all objects, allowing each to shut down properly.
|