I'm still having trouble with VSTa crashing when I try to use notify().
Its not clear to me whether this is a general problem or specific to
my hardware.
I find that VSTa crashes about 10% of the time when I boot it,
simply hanging at the login prompt. It also tends to mysteriously
hang maybe once an hour, even if I'm not running jobs. What is
typical behavior for other people?
I've attached a sample program using notify() below. Without the
write() call it runs okay. With the write() it often triggers the
ASSERT_DEBUG(pr->p_port == port, "msg_receive: DISC pr mismatch");
assertion (line 600) in msg.c, or sometimes the
ASSERT_DEBUG(port->p_hd, "msg_receive: p_wait/p_hd disagree");
assertion (line 530) in the same function.
Is this a common/well-understood problem?
-- Bryce
#include <stdio.h>
#include <std.h>
void event_handler( char * msg )
{
}
int main( void )
{
int pid;
notify_handler( event_handler );
if ( pid = fork() ) {
write( 1, "hello\n", 6 );
waitpid( pid, NULL, 0 );
} else {
notify( getppid(), 0, "go" );
}
return 0;
}
Received on Wed Nov 9 19:08:14 1994
This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:10 PDT