TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Bob Butler
date: 2004-06-01 22:25:00
subject: Re: Hanging vb-app. after

j.staenz{at}sin.ch (Giorgio) wrote in message
news:...
> hi
> i develop with vb6 and mysql 4.x.
> after compilation i work with the programm without any problems.
> when i finish the programm it remains in the taskmanager.
> this is the first app. with mysql (before i worked with .mdb without
> these problems).

the most common problem is not unloading all forms; if this happens in
the VB IDE then press the pause button and in the immediate window
enter:
for each ff in forms:?ff.name:next

that will list any forms still loaded; add code to unload them on
shutdown.  you can also do a brute-force unload of all forms in your
code with:
dim f as form
for each f in forms
  unload f
next

if that doesn't solve the problem then it could be that you have a
code loop still running or a timer or other control that is still
active.  VB apps end when no forms are loaded and no code is running.

do NOT use the End statement to solve this problem; it will only mask
the real trouble
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 6/1/04 10:25:07 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.