kloppen@gmdzi.gmd.de (Jelske Kloppenburg) (05/21/91)
I have difficulties with DPSRemoveFD(). I made an Application to let my NeXT and modem dial for me. The answer of the modem ('OK' or some error) is read and indicated. Since I want to be able to interrupt the dialling whith a Stop Button, a read handler is given to the Application Kit with DPSAddFD() and after dialling removed whith DPSRemoveFD(). So the application may remain loaded and I can use the modem for tip or kermit. (In a first version this was an additional service in AtYourService, but when I got difficulties, I suspected AtYourService). If I call my application from Terminal all is right, but if I start it from Workspace my application hangs after the second dialling. The gdb then shows the following: (gdb) attach 404 0x5007d9e in read () (gdb) where #0 0x5007d9e in read () #1 0x3 in ?? () #2 0x6008a2a in checkFDs () #3 0x600c9b4 in _DPSGetOrPeekEvent () #4 0x600e70a in NXGetOrPeekEvent () #5 0x6036d86 in - [Application run] #6 0x333a in main (argc=3, argv=(char **) 0x3fffeec) (Telefon_main.m line 11) (gdb) Any suggestions? BTW: For the two ore three numbers I'm using, I dont need a telephonebook and a browser but I had fun and it was bad weather. j.k. Jelske Kloppenburg, kloppen@gmdzi.gmd.de, (++49 2241) 14-2433 German National Research Center for Computer Science (GMD)