Heap Patcher error help
Posted: Mon Jan 02, 2023 5:46 pm
Hello,
Recently I've seen this patch in the downloads to fix that pesky Heap overrun error.
Does it even work?
The instructions are to drag the midtown2.exe file onto it, that's how I understood.
But when I do this I recieve this:
Unhandled Exception: System.UnauthorizedAccessException: Access to the path 'E:\Program Files\Midtown Madness 2\midtown2.exe' is denied.
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, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at MM2HeapPatcher.Program.Patch(String fileName, Int32 size)
at MM2HeapPatcher.Program.Main(String[] args)
I ran the code as administrator and still no difference.
It's even a problem to play the New York City mod with some cars, not to mention pedestrians or any other vehicle on the road.
Please help, thank you
Cheers!
Recently I've seen this patch in the downloads to fix that pesky Heap overrun error.
Does it even work?
The instructions are to drag the midtown2.exe file onto it, that's how I understood.
But when I do this I recieve this:
Unhandled Exception: System.UnauthorizedAccessException: Access to the path 'E:\Program Files\Midtown Madness 2\midtown2.exe' is denied.
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, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at MM2HeapPatcher.Program.Patch(String fileName, Int32 size)
at MM2HeapPatcher.Program.Main(String[] args)
I ran the code as administrator and still no difference.
It's even a problem to play the New York City mod with some cars, not to mention pedestrians or any other vehicle on the road.
Please help, thank you
Cheers!