char	sig[B_MIME_TYPE_LENGTH + 1]; GetAppSig(sig); nsBeOSApp	*app = new nsBeOSApp(sig, (sem_id)arg); app->Run(); return 0;
char sig[B_MIME_TYPE_LENGTH + 1]; int32 error = B_OK;  GetAppSig(sig); nsBeOSApp	*app = new nsBeOSApp(sig, (sem_id)arg); if(app) { app->Run(); } else { error = B_NO_MEMORY; } return error;
int32 bapp_thread(void *arg){	// create and start BApplication	char	sig[B_MIME_TYPE_LENGTH + 1];	GetAppSig(sig);	nsBeOSApp	*app = new nsBeOSApp(sig, (sem_id)arg);	app->Run();	return 0;}