I was wondering if it was possible to prevent memory of a object (class or struct) from being swapped to disk?
Edit: As for why I\'ve been told some of the data I\'m
Not really, that's an operating system thing.
Just rest assured that Windows' paging strategy will prioritize keeping in memory the most frequently accessed pages, so if a certain page is important for your application, it'll be there as much as possible.