yup, sorry for that
i indeed deal with 3D arrays, but i simplified the code i posted (but forgot to do the same for the "new" part of the code that i posted afterwards)
thanks a lot for all the...
Type: Posts; User: yvesdefrenne
yup, sorry for that
i indeed deal with 3D arrays, but i simplified the code i posted (but forgot to do the same for the "new" part of the code that i posted afterwards)
thanks a lot for all the...
makes sense, i should have posted that too:
data = new unsigned char** [wZ];
for (i = 0; i < wZ; i++)
{
data[i] = new unsigned char* [wY];
hello all,
i ve created an array of array, and it is VERY fast to allocate with new.
however, when freeing it with delete, it takes up to 1 minute! i can actually see the size decreasing slowly...
that worked immediately, great help!
thanks a lot,
-yves-
hello,
i m trying to have the compiled .exe program always run automatically at a low priority level (without going every time to the windows task manager).
i m using msvc++ .net, and i was...
what would be the advantages of using new instead of malloc?
i m having some memory leaks problems, could that be due to malloc - is new better in terms of memory management?
-yves-
thanks a lot!
works like a charm now!!
:)
hello, i m trying to write the content of a pointer to a file:
unsigned char* ds=(unsigned char*)malloc(sizeof(unsigned char)*width*height);
ofstream fout(outname);
...