the exception point to the below line::

memcpy( msg, &message, sizeof(struct raw_message) );