TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Greg Varga
from: David Sparrman
date: 1997-03-12 21:44:24
subject: Re: Starting a child session in Pascal

Hello Greg -

>> Var objBuf   :CString;

GV> Are you aware that objbuf, (Being on the stack local to this procedure), 
GV> gets disposed after the procedure ends.

Yes I am, and it is intended that way since the procedure should start a
synchron session.

GV> IF CString is a ^CHAR, (which it seems that 
GV> it is), then you have to use a GETMEM(objbuf,  to allocate 
GV> memory for it.

Just tried that, but the compiler didn't like it. It wanted a Pointer type.



regards, David
@EOT:

--- WarpStation four
* Origin: Welcome to Heaven Eleven (2:206/141)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 206/100 205/625 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.