Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!cbosgd!ulysses!ucbvax!dartmouth.EDU!daveg From: daveg@dartmouth.EDU.UUCP Newsgroups: mod.protocols.appletalk Subject: Re: Register/Lookup Message-ID: <8703130619.AA19624@ucbvax.Berkeley.EDU> Date: Wed, 11-Mar-87 18:37:42 EST Article-I.D.: ucbvax.8703130619.AA19624 Posted: Wed Mar 11 18:37:42 1987 Date-Received: Sat, 14-Mar-87 02:00:26 EST Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 30 Approved: info-applebus@c.cs.cmu.edu yes, I have found the problem..... as it turns out, there is a bug in lightspeed, but not in the appletalk code. Here is something similar to what was happening. before entering thi code block, the variable atpsocket equaled 200. with myABRecord^^ do begin ... ... ... nbpAddress.asocket:=atpsocket; ... ... ... end; async:=true; anOSErr:=NBPRegister(myABrecord,async); the problem is with the use of with in lightspeed. any normal rational human would assume that the value of myABRecord^^.nbpAddress would be that of atpsocket after exiting the WITH block. The assignment above gave me a value of one however. I fixed thi by doing the assigment outside of the WITH block and all is now well. I am now on my way to bigger and better bugs. Thanks much for the reply. Dave Green daveg@dartmouth.EDU