So I decided to check out the error logs and noticed that every single crash (literally, without fail) was made up of two errors before the CTD.
I have about 20 crashes in my log (I can supply the whole file if needed) and they are all the same.
First the initial error in video.con:
Followed instantaneously by:Sunday, 24 October 2010 11:46:38 p.m.
---------------------------------
An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\XXXXX\Documents\Battlefield 2\Profiles\Default\Video.con' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at System.IO.File.OpenText(String path)
at c.g()
This double error just keeps happening. Exactly the same error report, exactly the same layout, same time, same location, same files, even down to the exact location within the files.Sunday, 24 October 2010 11:46:38 p.m.
---------------------------------
Error in writing screen aspect ratio file: c:\fullgames\battlefield 2\mods\pr\
System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\fullgames\battlefield 2\mods\pr\'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at k.a(String A_0)
I don't know if this is just an issue with Win 7 or perhaps other platforms too. And as far as I can tell nothing to do with anything specifically my computer. However the second error may be due to my screen. I am running a widescreen (On a laptop) and thus run PR (And everything else) on 1366 x 768.
Feel free to contradict/correct/offer suggestions to me.
Just trying to get the CTD thing sorted.
~Warlord.
