On 25 Jul 2006, at 21:14, Phil M wrote:
On Jul 25, 2006, at 4:02 PM, Theodore H. Smith wrote:
My guess is ClassData is returning the wrong value. Is everything
set up correct? instance is probably correct, but is sampleClass
good, or sampleClassData?
Try something like:
if (!me) {
REALMessageBox( "argh me=nil" );
}
Except you'll need a function which takes a char*, as
REALMessageBox takes a REALstring.
Can you set breakpoints in your plugin? Or printf stuff to the
console? You must be able to DebugStr stuff to the console...
that's always on OSX.
I have not been able to get REALbasic and CodeWarrior to work with
breakpoints. I don't know what I need to do to get that to work,
all break points are just ignored even though I am running in the
CodeWarrior debugger (with auto RB launch).
In regards to logging, yes I have been using a combination of
REALbasic System.DebugLog and DebugStr. In REALbasic a
System.DebugLog msg is right before the call to the method and it
outputs to the Console as expected. In the method, I have a
DebugStr call which is never printed,
At the very start of the function?
so the crash seems to be occurring somewhere in the framework even
before my plugin method is getting called. There doesn't seem to
be anything else that I can do to isolate this.
Then perhaps the function is declared wrong.
The fact that you are define the the REALClassDefinitions and all
theo other data in .h files can't help. You should define them in
a .cpp file. This way data doesn't get duplicated across multiple
files that include the .h file.
#include is nothing more than a dumb preprocessor you see. So
anything in a .h file gets put into all the .cpp files that include
it. So you've got the same data defined multiple times now if you
have multiple .cpp files that include that .h of yours. If it's only
1 .cpp it might not be a problem, but I'd really avoid it if I were
you just on good coding practice grounds.
Like I mentioned before, the properties are working fine. It is
just the methods that are getting all screwy.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>