C# Access Violation

Discussion in 'Programming General' started by Merv, Aug 29, 2011.

Thread Status:
Not open for further replies.
C# Access Violation
  1. Unread #1 - Aug 29, 2011 at 2:34 PM
  2. Merv
    Joined:
    Mar 2, 2010
    Posts:
    443
    Referrals:
    0
    Sythe Gold:
    0

    Merv Forum Addict

    C# Access Violation

    Hey guys, I have a program that creates a folder and its subsequent files wherever the .exe is located, but when I try to access and make changes to the files I'm getting knocked back with an Access Violation Error.

    I've checked the files and they aren't read only.

    Any ideas?

    Thanks
     
  3. Unread #2 - Aug 29, 2011 at 2:44 PM
  4. Govind
    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    C# Access Violation

    Check the permissions on the file(s) - if you don't have Write access to the file then it won't matter if it's read only or not.
     
  5. Unread #3 - Aug 29, 2011 at 5:06 PM
  6. Merv
    Joined:
    Mar 2, 2010
    Posts:
    443
    Referrals:
    0
    Sythe Gold:
    0

    Merv Forum Addict

    C# Access Violation

    I've fixed it, I was trying to write to the folder rather than the file, I'd messed up the file path and created a folder rather than a file
     
< Looking for C++ Programmer - Game Development | selling cvv fullz track 1 and 2 bank login bank transfer wu bug wu transfer writing >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site