Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > Label caption disapearing
 

Label caption disapearing

Hi,

I have this application that acts as a monitor for signals fed from another device. Information from the source device is fed to my application every second, and my application processes these data and displays some values on the screen. Also, these values are temporarily stored in a buffer and are recorded in a file every 5 minutes. The operations are interrupt driven, interrupts issued by the serial port.

An incident occurred where an error 52: bad file number or name occurred (this is a known error due to badly managed resources). After the application was shut down after clicking OK on the error message, and then was restarted, one of the signals that are supposed to be updated every second disappeared; that is, there was no number whatsoever for that particular parameter, while 3 other parameters that are updated at the same time were fine. The symptoms persisted even after the computer was restarted.

I could not reproduce the error, and could not find any similar cases on the web. So I'm just wondering if anyone has a slightest clue for what might cause a control to disappear? Perhaps something caused it to stop repainting? or it so happend that a very specific value simply could not be displayed? (We display numbers to 1 decimal place).

Thanks a lot for the help.

Caria  Tuesday, July 03, 2007 3:33 AM

Is this a deployed application or when debugging in an IDE?

If it is a deployed application, my best guess would be a .dll corruption.

If it's during debugging, I'm guessing code was either commented out, accidently removed, or the application closed prematurely without save.

Outside of that, it sounds very mysterious.

Adamus

Adamus Turner  Tuesday, July 03, 2007 3:53 AM

Aha! Blow the dust out of the serial connectors...lol

...or install a serial card connector.

Adamus

Adamus Turner  Tuesday, July 03, 2007 10:35 PM

Is this a deployed application or when debugging in an IDE?

If it is a deployed application, my best guess would be a .dll corruption.

If it's during debugging, I'm guessing code was either commented out, accidently removed, or the application closed prematurely without save.

Outside of that, it sounds very mysterious.

Adamus

Adamus Turner  Tuesday, July 03, 2007 3:53 AM

It was a deployed application.

OK. I shall check the DLLs. Thanks a lot Adamus.

Caria  Tuesday, July 03, 2007 10:06 PM
But the funny thing is that after restarting the computer a few times, the problem was no more...
Caria  Tuesday, July 03, 2007 10:29 PM

Aha! Blow the dust out of the serial connectors...lol

...or install a serial card connector.

Adamus

Adamus Turner  Tuesday, July 03, 2007 10:35 PM

You can use google to search for other answers

Custom Search

More Threads

• How would you add spell check?
• How to add Image property to a TextBox please?
• Object reference not set to an instance of an object.
• file associations
• How do I send an application to the system tray with Visual Basic in Visual Studio 2008 Professional?
• Manage Events
• Youtube Properties
• How to make Modal Form that isn't TopLevel?
• First Step
• Mustinherit And Assembly visibility