Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ukma!rex!wuarchive!usc!rpi!wildfire From: wildfire@aix01.aix.rpi.edu (Douglas B Rusch) Newsgroups: comp.sys.mac.programmer Subject: Strange Problem with SetPort & DisposDialog Message-ID: <_+8g3#b@rpi.edu> Date: 8 May 91 04:36:43 GMT Distribution: usa Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 23 Nntp-Posting-Host: aix01srv.aix.rpi.edu I had a strange data bus error that I couldn't track down for the longest time. I finally seem to have fixed it by replacing the following code : GetPort(&savePort); SetPort(theDialog); ... HideWindow(theDialog); DisposDialog(theDialog); SetPort(savePort); with this code : GetPort(&savePort); SetPort(theDialog); ... SetPort(savePort); HideWindow(theDialog); DisposDialog(theDialog); What I would like to know is if there really is an error in the original code, so that I'm not just making a phantom fix to my program. wildfire@aix.rpi.edu