Index: trunk/MagicSoft/Cosy/base/msgqueue.cc
===================================================================
--- trunk/MagicSoft/Cosy/base/msgqueue.cc	(revision 1111)
+++ trunk/MagicSoft/Cosy/base/msgqueue.cc	(revision 1266)
@@ -3,4 +3,5 @@
 #include <iostream.h>
 
+#include <unistd.h>        // usleep
 #include <sys/resource.h>  // PRIO_PROCESS
 
@@ -14,5 +15,5 @@
 {
     pthread_cancel(fThread);
-    delete fMp;
+    delete (unsigned char*)fMp;
 }
 
@@ -87,5 +88,5 @@
     fMsg = msg;
 
-    delete fMp;
+    delete (unsigned char*)fMp;
     fMp = new unsigned char[size];
 
