Thread: Memory Allocation

  1. #1
    Marcelo
    Guest

    Smile Memory Allocation

    Hi! It' s my first entry here. I begining to program with C, and i having problems to allocate memory for matrix. I using "imatrix" and "ucmatrix" to allocate memory for a matrix of integers and unsigned char respectively. The result is, after compiled, when executing, it come a massage saying: "Allocation failure 2 in matrix".
    If somebody can help me i will be gratefull.
    Thank you,
    Marcelo.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4
    Are imatrix and ucmatrix user-defined functions? Please post your code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory allocation question
    By dakarn in forum C Programming
    Replies: 11
    Last Post: 12-01-2008, 11:41 PM
  2. Dynamic memory allocation.
    By HAssan in forum C Programming
    Replies: 3
    Last Post: 09-07-2006, 05:04 PM
  3. Dynamic memory allocation...
    By dicorr in forum C Programming
    Replies: 1
    Last Post: 06-24-2006, 03:59 AM
  4. C memory allocation to c++
    By markucd in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2005, 05:56 AM
  5. Understanding Memory Allocation
    By Ragsdale85 in forum C Programming
    Replies: 7
    Last Post: 10-31-2005, 08:36 AM