Very Strange Error Message in VB.NET App.
Posted on 2008-10-06
Hi, I am using VB 2005, WinForms. During the creation of a SQL INSERT String for my database connection, I received the following error message at two different times. The error is a bit cryptic and not something I had ever seen before. The message occurred both times as I clicked on the Form part of my application, where there are no controls. The last time it occurred, I had just set the SQL Insert String connections for two DateTimePickers I have on the Form. The connection for the DateTimePickers seems to be OK, because I can send data to the DB Table.
HEAP[Main.exe]: HEAP: Free Heap block 1f1058 modified at 1f1098 after it was freed
Windows has triggered a breakpoint in Main.exe.
This may be due to a corruption of the heap, and indicates a bug in Main.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
I cannot reproduce this error each time the application runs. It seems to have gone away...
1). Does anyone have any idea what this means or what it could be due to? What type of corruption is the error message referring to? --- I'm able to run the App after I closed the App down, but I want to understand this error and address it before I move forward.
2). Could this have been as a result of a prior crash during debugging, which I did have a couple?
3). Would a TRY / CATCH / END TRY statement be advisable here? Or is this something else.
4). Could this be related to something else that was happening (or did happen) on my computer before, in another application or is this a VB problem?