Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!blkcat!f421.n109.z1.fidonet.org!Ken.Knight From: Ken.Knight@f421.n109.z1.fidonet.org (Ken Knight) Newsgroups: comp.sys.mac.programmer Subject: Dialog Woes Solved Message-ID: <3047.278F9513@blkcat.fidonet.org> Date: 12 Jan 91 00:12:08 GMT Sender: ufgate@blkcat.fidonet.org (newsout1.26) Organization: FidoNet node 1:109/421 - The Twilight Clone, Paul Heller Lines: 25 Ken Knight writes: "I'm sorry this is so long, but I'm stuck. This code has 2 problems. The first seems to have just appeared and , of course,I can't figure out what I changed to cause it. #1: A bus error that seems to happen when the filterproc exits. This filterproc LOOKS the same to me as when things seemed to run fine. [the other problem was solved, too.] Well, I found out what was causing the crashes. I don't quite understand it, but I found it. I was assigning a procedure for a user item to a static text item. I got to constants mixed up. Why this caused the error after the filterproc ran and NOT WHEN the MyResTypeItems routine was called I don't fully comprehend except that said routine is called after the filter is handled (I call that routine myself before the filter, but with a different item number). Basically, put, very odd indeed. Regarding the ResType problem that just required some bit-manipulations and the realization that ResType was defined as an unsigned long in C. -- Ken Knight, Ken.Knight@f421.n109.z1.fidonet.org via The Black Cat's Shack's FidoNet<->Usenet Gateway blkcat.fidonet.org and Fidonet 1:109/401