ok - im confused
i have an array that recieves a 16 bit data packet from the com port
char rxPacket[16];
when i evaluate the packet to check for a good checksum - if it has a bad checksum i need to erase the data. It gets passed to the function deletebadPacket();
in which i try to delete the array using
delete[] rxPacket ;
according to my help reference this is legal syntax but throws a memory violation every time - does this deinitialize the array or just erase its content.
tia