Search:

Type: Posts; User: yvesdefrenne

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,961

    yup, sorry for that i indeed deal with 3D...

    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...
  2. Replies
    10
    Views
    2,961

    makes sense, i should have posted that too: ...

    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];
  3. Replies
    10
    Views
    2,961

    free array of array extremely slow

    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...
  4. that worked immediately, great help! thanks a...

    that worked immediately, great help!
    thanks a lot,

    -yves-
  5. compiler setting c++ so .exe runs at low priority

    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...
  6. malloc vs new ?

    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-
  7. thanks a lot! works like a charm now!! :)

    thanks a lot!

    works like a charm now!!

    :)
  8. problem with fout.write: cannot write 0x0A (10 dec)

    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);
    ...
Results 1 to 8 of 8