Attempted to read or write protected memory again...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • djpaul
    New Member
    • Oct 2006
    • 137

    Attempted to read or write protected memory again...

    Hello,
    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 PrintPreviewDia log and add a PrintDocument.
    After that one is loaded it shows the document on the PrintPreviewDia log.
    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:
    Code:
    [Security].Permissions.FileDialogPermission(Security.Permissions.SecurityAction.Demand) ]
    Thanks for the reply!
  • CroCrew
    Recognized Expert Contributor
    • Jan 2008
    • 564

    #2
    Are you having the same problem running the program under the Win XP platform?

    CroCrew~

    Comment

    • djpaul
      New Member
      • Oct 2006
      • 137

      #3
      No, under windows xp it's working perfectly.
      It only happens under windows 7 (maybe vista but i don't have that)

      Comment

      Working...