At 09:36 PM 8/25/2005, you wrote:
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

imagenCopia is a pointer. Thus, sizeof(imagenCopia) is 4 bytes. So you're doing a MemMove of 4 bytes instead of the full size of the structure.

I think you mean to say sizeof(DBImagenesSC)

Anytime I start thinking that a basic system service like MemMove() is broken, it shows that I need to take a break :-)

-David Fedor
Director, European Technical Services
PalmSource, Inc.


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

Reply via email to