MUSHclient Corrupt Project File

Posted by Artel on Sun 27 Sep 2009 04:24 AM — 8 posts, 31,106 views.

USA #0
I tried to open the MUSHclient project (downloaded from http://www.gammon.com.au/files/mushclient/src/) in Visual Studio 2008. When I go to convert it from VC++ 6 to my version, it gives me an error "Cannot load the project due to a corrupt project file."

Any ideas?

This happens on 4.40, 4.37, and 4.30. However, 4.19 does not give this error.
USA #1
VC6 is just so outdated that the more recent Visual Studio version barf. I had the same problem; I had to recreate the project file myself. I'll gladly send you my project file though; if you'd like that just send me an email via my forums profile (click my name), and be sure to check "Allow reply".

See this thread as well for a lot of great advice on compiling MUSHclient from source in updated compilers:





Also, once you get it compiling properly, there's a glitch I'd really appreciate you checking out. If I run my compiled MUSHclient, connect, then disconnect, it crashes in a TFormat() function. If that happens to you as well I'd appreciate it if you could let us know!

EDIT: Also, I use VS2005 rather than 2008, but I would imagine that 2008 could convert from 2005-format...
Amended on Sun 27 Sep 2009 04:50 AM by Twisol
USA #2
The problem was the line endings of the project file as was mentioned in the thread you linked.

It opens now. Thanks!
USA #3
Oh.

Well I feel stupid now. Maybe I should try that too. =/

My request still stands on the glitch, if you get to that point. >_>
Australia Forum Administrator #4
Twisol said:

Also, once you get it compiling properly, there's a glitch I'd really appreciate you checking out. If I run my compiled MUSHclient, connect, then disconnect, it crashes in a TFormat() function. If that happens to you as well I'd appreciate it if you could let us know!


Do you get any warnings? When I compile I get no warnings at all. If they have changed the way something works, the warnings might point to what that is.
USA #5
So the good news is that I got the source to compile with VS 2008. I'm still using 4.40-- I haven't tried updating with the diffs yet.

The bad news is that I get the same crash that you get, Twisol. I haven't had time to look at it yet, and I think I'll work on some of the warnings and update to 4.43 first when I have time.

I get 513 warnings, but almost all of them are related to conversions.
USA #6
Ditto, most (if not all) of the warnings I get are type-conversion related. We've discussed the bug a bit more in later parts of the Helping Out thread, for reference. It's dying in Microsoft code, in GetFormattedLength... but if I try the exact same method call in, say, the initialization code, it works fine.

It seems to be barfing on the last %s in the line. Maybe it's not getting passed anything at all for that argument? Unfortunately I have no idea how to examine varargs data, so I couldn't say what's really going on.
Amended on Mon 28 Sep 2009 03:38 AM by Twisol
USA #7
Artel - Check out the second page of this thread[1], I finally figured out what was causing the crash. Just requires a couple typecasts :)

[1] http://www.gammon.com.au/forum/?id=9742&page=2