Page 1 of 1

Failed to save session file.

Posted: Tue Nov 15, 2011 5:31 pm
by solidstore
I'm getting an error saving a session file that contains two large memory dump snapshots.

The first snapshot is a memory dump file that's 3.7GB and the second file is 4.2GB. They took a while to load :D

The error dialog that pops up after some time says:

"Failed to save session file. An attempt was made to move the file pointer before the beginning of the file."


Looks like the file is too large to save? Bigger than 4GB? File pointer wrapped around? :?:

I'm using version 3.5.151.0

Re: Failed to save session file.

Posted: Wed Nov 16, 2011 4:53 pm
by Andreas Suurkuusk
Yes, the session file has most likely become too large. There is a 2GB session file size limit in v3.5. And, as you have noticed, the file size is not fully checked and could overflow when saving the session file, which causes the error that you are seeing. We're just about to release a maintenance version of .NET Memory Profiler 4.0 (probably tomorrow). This release has increased the session file size limit to 4GB, and will detect a file size overflow and provide a better error message. We are also changing the session file format for v4.1. In the new file format, there will no longer be a 4GB size limit.