Nov. 24, 1999
2:53 a.m.
Unfortunately, we don't seems to understand what do you mean by "Object". Is it something we need to define or is it already defined in a h file that we forgot to include. We use Linux/gcc environment.
Sorry - I meant "PyObject"
Also, in our sample, we did not use virtual function
Hmmm - OK - my advice could well be wrong. Unless your C compiler always adds a vfptr. I have seen this problem (when using virtuals) before and the symptoms sound almost identical. Try the code snippet I posted, and see if the debugger does show the "PyObject *" and the "Spam *" as different values, even though they are pointing to the same object. Otherwise Im afraid I have no idea... Mark.