Search:

Type: Posts; User: pessi

Search: Search took 0.00 seconds.

  1. Thread: array problem.

    by pessi
    Replies
    6
    Views
    1,201

    thank you both for your assistance.

    thank you both for your assistance.
  2. Thread: array problem.

    by pessi
    Replies
    6
    Views
    1,201

    solved.

    Thank you for your reply...I solved the problem.



    for(i=0; i< xdim; i++)
    something[i] = (double **)malloc(ydim * sizeof(double *));

    for(j=0; j< ydim; j++)
    something[i][j] = (double...
  3. Thread: array problem.

    by pessi
    Replies
    6
    Views
    1,201

    added allocation failure

    My apologises for not adding the code tags.

    I added the allocation check to make no difference. I still get the sedmentation fault and not the memory allocation failure message. The full code is...
  4. Thread: array problem.

    by pessi
    Replies
    6
    Views
    1,201

    array problem.

    Dear All

    I have the following code which gives a segmentation fault. I dont think the array size is too large to result in a segmentation fault.

    int xdim = 36;
    int ydim = 256;
    int zdim =...
Results 1 to 4 of 4