Miguel Angel Sotomayor Hernandez wrote:
I'm facing this problem:

I get a record from a database, then unpack it and copy (using MemMove) into a pointer I receive in my function. It works fine on treo 600, but not on the treo 650.



imagen = (DBImagenesSC*)MemPtrNew(sizeof(imagenCopia));// + imagenCopia->tamanio); MemMove(imagen, imagenCopia, sizeof(imagenCopia));// + imagenCopia->tamanio);

/* Messages just to know what's happening */
FrmCustomAlert (1013, "imagenCopia->nombre: ", imagenCopia->nombre, NULL); // I get something like "username_0x0001.jpg", wich is valid FrmCustomAlert (1013, "imagen->nombre: ", imagen->nombre, NULL); // I should get the sames as above, but I get weird characters instead /* The same happens with all the fields in imagen (different than imagenCopia's) */

I would write your own implementation of MemMove() using your own loop
and replace the call to MemMove() with a call to that.  If that changes
the behavior, you know that MemMove() really isn't behaving as expected.
If it doesn't change the behavior, then you know it is some other problem.

I know that's not a solution, but maybe it will make it easier to
investigate.

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to