• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie client - server question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie client - server question


  • Subject: Newbie client - server question
  • From: Eivind Andersen <email@hidden>
  • Date: Thu, 30 Oct 2003 14:42:40 +0100

Hi,

I'm making sort of an instant-messaging application as a student project.
It should have a server that when recieving an object, it returns the same object to all connected clients.

The client is almost done, but I can't get the server to work proberly. The two should communicate using NSConnection and PDO (Portable Distributed Objects).
I've managed the client to connect to the server.
Then, the clients sends a NSMutableArray to server by just calling a method on the server that takes and NSMutableArray as the argument. Usually this works one time, but the next time i do the same thing, the server crashes. The debugger says: Program recieved signal : EXC_BAD_ACCESS, and stops at: objc_msgsend after running - [NSInvocation invalidate] and before that - [NSInvocation dealloc]

And I haven't programmed anything with threads (I hoped NSConnection took care of that, since I don't have a clue how to do it:)

Does anyone know what could be wrong?

How would you make a server that returs the object (NSMutableArray) it recieves to all clients?

I would be really thankful for all help!

Best regards,
Eivind Andersen
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: How the get MAC Address of device in the network
  • Next by Date: Re: How the get MAC Address of device in the network
  • Previous by thread: Re: Proxy Problem with CFNetwork
  • Next by thread: help/tips for debugging missing T_GODATA msgs.
  • Index(es):
    • Date
    • Thread