Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!NEXTASY2.EECS.WSU.EDU!dwatola From: dwatola@NEXTASY2.EECS.WSU.EDU Newsgroups: comp.sys.next Subject: cthreads and modals Message-ID: <9009220547.AA16749@nextasy2.eecs.wsu.edu> Date: 22 Sep 90 04:40:28 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 25 I am having problems implementing a short program using the cthreads package. My program is a front-end to a circuit simulation package; it accepts simulation parameters from a NeXT-style window and creates a command line that is passes to system(). This is done in a method which is cthread_detach(cthread_fork())'ed from the main code. My hope was to have this thread run the simulator in the background, then raise an alert panel when it had finished. Unfortunately, upon calling NXRunAlertPanel(), i get the error message "Exception handlers were not properly removed," often followed by "Attempt to remove unrecognized exception handler." The program crashes, usually leaving my application's window on the screen but removing the icon, menu, and disabling the event loop. Other times, though, it simply eats CPU time. This program works fine if I remove the NXRunAlertPanel() call. So my question is, is there some reason why the modal alert panel should not work from an inferior thread? Anyone out there got any ideas or educated guesses? Thanks. dave watola "Lucretia, my reflection, dance the ghost dwatola@eecs.wsu.edu with me..." dwatola@nextasy2.eecs.wsu.edu - A. Eldritch