DO and threads
DO and threads
- Subject: DO and threads
- From: Martin Tauber <email@hidden>
- Date: Thu, 3 Nov 2005 20:47:50 +0100
Greetings,
I am working on a cocoa application using threads and Distributed
Objects. Actually I found the idea of distributes objects quite sexy,
but now I am getting stuck. It all began with the problem that when I
was sending a message to a Distant Object my application hang.
Debugging the program I found that the program got stuck just jumping
on the spot where the message to the Distant object was called. I am
using oneway messages by the way, when I don't use them everything was
fine. But the whole idea of using threads was to run things in
parallel.
So my first thought was that the memory somehow got corrupted before
this message was sent. I added NSZombieEnabled to find out if memory
was released which should not have been release and I set the
libgmalloc to see if I might be overwritting some memory (even though I
wonder How I could do this without having and memcpy() or strcpy() etc.
in my source code.
well the result is this message in the run log:
2005-11-03 20:28:22.606 cheese[455]
_preInitWithCoder:signature:valid:wireSignature:target:selector:
argCount: incompatible method params: got NSMethodSignature: types=v@:I
nargs=3 sizeOfParams=160 returnValueLength=0; want NSMethodSignature:
types=Vv@:I nargs=3 sizeOfParams=160 returnValueLength=0;
2005-11-03 20:28:22.645 cheese[455] [NOTE: this exception originated in
the server.]
*** Object does not implement or has different method signature
I searched the net to find some hints and I found some problems
relating to using differnt versions of the gcc compiler. I'm running
10.3.x and Version 3.3 og gcc. I cleaned everthing before doing the
compile, but I'm still running into this problem. (BTW only when I use
libgmalloc).
So here are my questions:
1.) Any Ideas what causes my application to hang?
2.) why am i getting the error message above?
Thanks for your help!
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden