Hi! > + event.data = (char *) malloc(MAX_EVENT_DATA_SIZE); ^ Please never cast return value from malloc() in C. The malloc returns void* which is compatible with any other pointer type for assigments. This is only needed when you attempt to use malloc() in C++, but that is not the case here. -- Cyril Hrubis chrubis@xxxxxxx