I still struggling with this problem on a windows 7 platform.
However i found out that the program wants to use a part of the memory that he may not use.
In my case it only happens when i want to print something.
In there i have a PrintPreviewDialog and add a PrintDocument.
After that one is loaded it shows the document on the PrintPreviewDialog.
Most errors that appear show drawing errors.
So, how can i tell windows that the program may use the memory?
A friend of mine thought it was something like this:
Expand|Select|Wrap|Line Numbers
- [Security].Permissions.FileDialogPermission(Security.Permissions.SecurityAction.Demand) ]