Adblock breaks this site

C# Access Violation

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

Thread Status:
Not open for further replies.
  1. Merv

    Merv Forum Addict

    Joined:
    Mar 2, 2010
    Posts:
    443
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  2. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    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
    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.
     
  3. Merv

    Merv Forum Addict

    Joined:
    Mar 2, 2010
    Posts:
    443
    Referrals:
    0
    Sythe Gold:
    0
    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 >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site