Search:

Type: Posts; User: wots_guge

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,628

    The entire code runs into a few thousand lines...

    The entire code runs into a few thousand lines and am not sure if snippet would help.

    This problem occurs on increasing the dimensions of memory required, the addresses looks like this:

    &S[1] ...
  2. Replies
    5
    Views
    2,628

    Memory overlap in function call

    Am facing a strange problem. On debugging the code it is seen that a local double array in a function overlaps the memory address of a passed integer array.

    How is such an issue taken care of in...
  3. Replies
    5
    Views
    15,697

    Yup, makes sense! Thanks... Added this: ...

    Yup, makes sense! Thanks...

    Added this:


    fread(&x[i],sizeof(double),1,f);
    if(feof(f)) break;
  4. Replies
    5
    Views
    15,697

    Binary File -> End of File

    The binary file output has one extra line then the original line. Is the EOF detected correctly or there is a bug while writing the binary file?

    Can someone pl look the code and reason..



    ...
  5. Replies
    12
    Views
    17,559

    Yes, it "seems" to be "working as expected". ...

    Yes, it "seems" to be "working as expected". From VB experience, only last dimension of a multi-dimensional array can be expanded. I guess realloc also does the same, but probably we can use...
  6. Replies
    12
    Views
    17,559

    Fantastic stuff, thanks Hugger :) It really...

    Fantastic stuff, thanks Hugger :) It really kept me busy for a lot of time.. it works fine now!
  7. Replies
    12
    Views
    17,559

    It should free the matrix. Even when there is no...

    It should free the matrix. Even when there is no warning, errors.. the first few values stored in K2 are not retained from R1.

    Here am re-allocating the pre-existing rows and expanding the columns...
  8. Replies
    2
    Views
    2,611

    Virtual Memory utilization during run-time

    How can we dynamically determine 1) either in bytes or 2) percentage of total available memory used during the run-time of a C/C++ program.

    I am using an iterative computational & memory intensive...
  9. Replies
    12
    Views
    17,559

    How to Realloc 2-D array

    Thnks! have changes the index from 1 to 0, but that still doesnt solve the problem..

    I want to retain the 1st values in 4x2 matrix to the 6x4 matrix. Have tried a couple of things with the dummy...
  10. Replies
    12
    Views
    17,559

    How to Realloc 2-D array

    Am trying to reallocate a 4x2 matrix to a 6x4 matrix. There is no memory fault but the original values are not retained.

    Can someone please tell me if am messing something:



    int **K1,**K2;...
Results 1 to 10 of 10