Error loading source code

Discussion in 'Bug Reports' started by Roadrunner, Jan 23, 2008.

  1. Roadrunner

    Roadrunner Member Licensed User

    Hi Erel,

    after my update to 6.01 I've done some changes on one of my sources.
    Now I can't open this source any more - still get the message "Error loading file. Input string was not in a correct format."

    As I've seen in a text editor the source is still saved under 6.01.

    Do you have any idea to get this source working again?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Did you edit the designer text?
     
  3. Roadrunner

    Roadrunner Member Licensed User

    No, I only have done a look inside to see on which version the source was saved.
    I've done no changes or something. Read only.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. Roadrunner

    Roadrunner Member Licensed User

    It's on the way...
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    I've sent you the fixed file.
    Your file got modified probably by some external editor.
     
  7. Roadrunner

    Roadrunner Member Licensed User

    Definetly *not* :(

    But its readable again - thank you!
     
  8. Roadrunner

    Roadrunner Member Licensed User

    Another problem now...

    If I like to add a image on form1 and I save the changed form, I got the message: "StartIndex cannot be less than zero. Parameter name: startIndex".
    This now occurs on every change I do at form1.
    Now I'm unable to open the form editor or compile the project...
     
    Last edited: Jan 23, 2008
  9. Erel

    Erel Administrator Staff Member Licensed User

    I've fixed your form using FormDuplicator and it now seems to work fine.
     
  10. Offbeatmammal

    Offbeatmammal Member Licensed User

    FWIW I'm seeing similar issues with 6.30
    Selecting multiple controls on a page and using Tools | Duplicate Control causes an error (duplicating the label name so the form won't reload in the designer)
    I've also noticed seemingly at random everything is fine but then I can't can back into the designer with various different error messages blocking it (and most of the object/control tree disappearing as I guess it fails to parse the form)
    Not sure if it could be Vista SP1 related?

    If I then open the source in notepad and check for the following things I can usually fix it
    - raddmenu instead of admenu
    - baddform instead of addform
    - multiple "end sub" at the end of the designer section (remove all but one)
    - search for (and rename) duplicate label, textbox etc

    Would be nice if it didn't do it in the first place though ;)
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    These kinds of errors happen when you manually edit the source code, which is not recommended.
     
  12. Offbeatmammal

    Offbeatmammal Member Licensed User

    Sadly they are actually happening in the editor which is why I end up having to quite that, edit the source manually and restart in order to get around the problem.

    Is there anything in the source that isn't a standard text file that can be edited in Notepad (or on a device in TotalCommander or similar?)
     
  13. Erel

    Erel Administrator Staff Member Licensed User

Loading...