CompuServe Thread

#Lost Sub labels

3 messages in this thread
#2350From: Philip LiebermanOct 10, 1991 12:30 AM
I notice that after a while of running VB with multiple modules, the program loses the ability to find some of the SUB names in external modules. After saving the project, and reopening it, it can then find the label again. Has anybody run into this problem? Thanks Phil There is 1 Reply.
#2438From: Don FunkOct 10, 1991 12:15 PM
Hi Philip, When this happens, look at your memory usage through the about box in the program manager. You may getting down in memory and messing up something. If you have many forms, try to only have a fraction available at any given time. Use the Unload method instead of the Hide. Also look at the amount of labels on your forms. The only time you should have labels is during developement of the form design, and if you need an access key. All other times you should just "paint" the text on the form in the Paint event. This will speed up your program significantly, and use less resources. Both a plus. Don Funk There is 1 Reply.
#2559From: Rick Sands/OROct 10, 1991 11:13 PM
In my application, I have noticed that I lose % in resources (I have a gauge). I'm using a Pascal DLL, which could be suspect, but I don't *think* it is from that. I do have many items on each form, but I don't have many of them active at any one time (maybe three). I do use -lots- of bitmaps. My question is, as VB runs, does it lose a small amount of the resources as it runs? IOWs, when dealing with hBitmaps handles that a DLL gives it, does it properly DestroyObject(hBitmap) on them? – Ricks