Buffer Allocation

This is a discussion on Buffer Allocation within the C Programming forums, part of the General Programming Boards category; Dear experts, i am facing a strange problem, i am actually recursively opening a file for write and read and ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    99

    Buffer Allocation

    Dear experts,

    i am facing a strange problem, i am actually recursively opening a file for write and read and after some buffer allocation when it tries to open a file for write it failing and giving me error no 22 , its a buffer corruption happening what to do any alternate things you suggest,

    i am even trying to delete that file and opening for write but not happening please suggest me.

    thanks in advance.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,699
    Without seeing more code, it hard to say. Post a working example (or provide more details, at least).

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,299
    Perhaps instead of "recursively" you actually mean "repeatedly"?
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function call from another .c module
    By Ali.B in forum C Programming
    Replies: 14
    Last Post: 08-03-2009, 11:45 AM
  2. Replies: 16
    Last Post: 10-29-2006, 04:04 AM
  3. writing a pack-style function, any advices?
    By isaac_s in forum C Programming
    Replies: 10
    Last Post: 07-08-2006, 08:09 PM
  4. buffer contents swapping
    By daluu in forum C++ Programming
    Replies: 7
    Last Post: 10-14-2004, 02:34 PM
  5. Console Screen Buffer
    By GaPe in forum Windows Programming
    Replies: 0
    Last Post: 02-06-2003, 04:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21