Posted: Sun Jan 25, 2015 10:57 pm Post subject:
Cannot play a Skirmish Game
hey,
my Problem is that i cannot play a Skirmish game. The Campaign is running and there is no problem but when i push the button "Skirmish" i get into the menü to choose the options but i get instant a message called "KABOOOOOOM" ^^
The Description is:
The CnCNet Client has crashed. Error Message: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist ein häufiger Hinweis darauf, dass anderer Speicher beschädigt ist.
See cncnetclient.log for further info. If you can reproduce this crash, please report about it to your mod's author or directly to Rampastring (the creator of this client) at http://www.moddb.com/members/rampastring
From what I can see, the crash stack trace doesn't touch my code, so I'm unfortunately unable to directly identify what is causing this.
Back when I was running XP I sometimes encountered a fairly similar error, but even then it wasn't consistent and I haven't got more of those errors after upgrading to Windows 7 (and later 8.1). However I haven't received any issue reports from other people running XP (including one staff member), so it shouldn't be related to the OS either.
In rare cases i got this error too.
Though never in a constant repeating way.
For me it looks like a non thread-safe call of a drawing command.
Like a PictureBox is in Thread B and your main Thread A is trying to clear it directly with a FillRectangle command. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Mon Jan 26, 2015 9:40 am Post subject:
That doesn't really matter, considering how obfuscated C# is. I ran into random crashes when I had a form which I resized to fullscreen during initialization, and then placed a bunch of picture- and textboxes around to the 4 corners (this all was in the form's constructor). The crash message always complained that the positions I stated were using uninited variables (like if the constructor of the boxes ended up being faster/prioritized over the form's resize).
There probably is a better way but since I had lack of time to properly investigate it, I just thrown a timer with a tick of exactly 1 ms and such magically fixed my issues- it crashed only once after that. No, I'm not proud of it.
EDIT: Okay, checked that code. This was my comment there:
Quote:
//in constructor, ClientSize always sends back the original size even after resize, lolwut... or there's always a delay?
either way, there's a timer which sets up the UI dynamically
_________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum