Question

I'm having some kind of problem with my project that me and my friend is working on. When I try to open the project that I've been working on it gives me an error message saying that "one or more lines were too long and have been truncated" and thus I can't see my code or GUI. When my friend opens the project on his computer (The project is on dropbox so it's the same file) there's no problem at all. I've googled but couldn't find anything. I just did a repair of RAD Studio but no luck. We have 2 forms and a unit that we use, the unit and the mainform isn't working for me but the second form is no problem.

Thanks!

Was it helpful?

Solution 2

From the comments, you have Dropbox, and the Restore functionality is available, but using it would cost you a week's worth of work.

If I was in that situation, here's what I would do:

  • Copy the current file to somewhere else (My Documents, for example).
  • Use Dropbox Restore to get the old version that works.
    • Make a copy of this, because you're going to be modifying it
    • Ensure that you can open it in the IDE.
  • Use Beyond Compare to open the two files side-by-side. (If you don't have this, you really should!)
  • If they're completely different from each other, you have a serious problem. If not, you'll see the changes you've made. Start copying changes one at a time, and after each change, save and try to open it in the IDE.
  • At some point, you won't be able to. That's where your problem lies. Now you can fix it!

OTHER TIPS

Make a copy of your project directory. Search your harddisk for XXXX.pas and XXXX.dfm Hopefully there will be some temperary files that match - like "mylostform.dfm.~1307~" . copy the newest to your project directory, and rename them to "mylostform.dfm" and "mylostform.pas".

Kind regards, Geir Bratlie

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top