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] ...
Type: Posts; User: wots_guge
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] ...
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...
Yup, makes sense! Thanks...
Added this:
fread(&x[i],sizeof(double),1,f);
if(feof(f)) break;
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..
...
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...
Fantastic stuff, thanks Hugger :) It really kept me busy for a lot of time.. it works fine now!
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...
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...
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...
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;...