[comp.sys.mac.programmer] Dialog Woes Solved

Ken.Knight@f421.n109.z1.fidonet.org (Ken Knight) (01/12/91)

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