|
-
Jun 16th, 2013, 11:58 PM
#6
Re: help of visual basic form
From Form File Loading Errors:
 Originally Posted by MSDN
When Visual Basic loads a form into memory, it first converts the form to binary format. When you make changes to the form and save the changes, Visual Basic rewrites the file in ASCII format.
When VB saves a FRM file, it first fills it with spaces before writing the actual code. I'm afraid VB never got the chance to completely save your FRM file when your PC shut down. In that case, unless you had a backup somewhere, your code is gone forever. File recovery tools won't help much because all they'll see are the blank spaces.
This also happened to me before several times already. Now, I always make a backup of all the project files under a "BAK" subdirectory whenever I save the project prior to running in the IDE. In addition to that, I also embed the whole project as resources in the compiled exe for redundancy.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|