chris_asa
Active member
I have a VS2008 VB Winforms project that is showing signs of corruption.
Opening one particular form ExampleForm in design view immediately shows ExampleForm* as though it had been edited.
ExampleForm includes Panel1 that holds six usercontrols.
I get "must not be null" warnings pointing to a line in ExampleForm.designer.vb that refers to Panel1
Sometimes all my usercontrols disappear from VS (not in the tools ...and obviously accompanied by many error messages).
Clean/Rebuild/Build all report "success", but sometimes Build does NOT reflect changes even though it reports "success".
The edits that were going on at the time the issue arose were with one of the six usercontrols: I changed ">" (U+003C) to "≥" (U+2265) both designtime (default text for a Label), and runtime (code to toggle < > changed to ≤ ≥ and other code checks ≤ or ≥ to set cmd.parameter correctly).
I have been able to copy all the controls/code from ExampleForm to RescueForm (RescueForm does not show the * issue) and that's where I am at the moment.
So now to the questions:
Could my unicode-code cause the corruption? (If SomeLabel.Text = "≥" Then ...etc)
I have RescueForm that seems to be OK
-- suggesting to me that ExampleForm.designer.vb is corrupt
-- suggesting the simple fix of deleting ExampleForm and adding a new ExampleForm and copy/pasting from RescueForm back to the new ExampleForm
Is this realistic?
How can I "know" that the resulting project is free from corruption?
My concern is that the project might show no symptoms and appear to be fixed, we continue to hammer in additional code, and a month down the road the old corruption rears it's ugly head again.
The same concern exists for the backups - I can restore to any point in time with worst-case two-hour granularity, but how do I **KNOW** I went back far enough to get an uncorrupted version?
Chris
Opening one particular form ExampleForm in design view immediately shows ExampleForm* as though it had been edited.
ExampleForm includes Panel1 that holds six usercontrols.
I get "must not be null" warnings pointing to a line in ExampleForm.designer.vb that refers to Panel1
Sometimes all my usercontrols disappear from VS (not in the tools ...and obviously accompanied by many error messages).
Clean/Rebuild/Build all report "success", but sometimes Build does NOT reflect changes even though it reports "success".
The edits that were going on at the time the issue arose were with one of the six usercontrols: I changed ">" (U+003C) to "≥" (U+2265) both designtime (default text for a Label), and runtime (code to toggle < > changed to ≤ ≥ and other code checks ≤ or ≥ to set cmd.parameter correctly).
I have been able to copy all the controls/code from ExampleForm to RescueForm (RescueForm does not show the * issue) and that's where I am at the moment.
So now to the questions:
Could my unicode-code cause the corruption? (If SomeLabel.Text = "≥" Then ...etc)
I have RescueForm that seems to be OK
-- suggesting to me that ExampleForm.designer.vb is corrupt
-- suggesting the simple fix of deleting ExampleForm and adding a new ExampleForm and copy/pasting from RescueForm back to the new ExampleForm
Is this realistic?
How can I "know" that the resulting project is free from corruption?
My concern is that the project might show no symptoms and appear to be fixed, we continue to hammer in additional code, and a month down the road the old corruption rears it's ugly head again.
The same concern exists for the backups - I can restore to any point in time with worst-case two-hour granularity, but how do I **KNOW** I went back far enough to get an uncorrupted version?
Chris