🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: mod.protocols.appletalk
1 messages
1 total messages Started by daveg Wed, 11 Mar 1987 23:37
Re: Register/Lookup
#251
Author: daveg
Date: Wed, 11 Mar 1987 23:37
30 lines
1455 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads