> Ok as I said in my previous messages.. One of my forms will not work.  This
> is very frustrating. When I do the API calls mentioned below the program
> crashes the first time I try to use the variable frmP. That is in
> FrmGetObjectIndex.. When I step through with the metroworks debugger I end
> up looking at a bunch of assembly code. When the program finnaly crashes so
> that I can no longer debug, the function call is (0x4 or 0x8 Unknown) and I
> can see in the debug window a messages that says "invalid opcode". Now the
> code that is causing this works for all other forms, just not this form.
Philip,

When you say that:
> I've looked at all the values of frmP after the FrmGetActiveForm(); call.
> Everything seems to be OK. and objectID is also correct.

does that mean you've looked at the objects field of the FormPtr,and
actually seen your object with the correct objectID?

What kind of object is it?

What happens if you remove the other form objects in the form?


Neil

Reply via email to