🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9358

Re: CreateProc() & WBStartup messages

#9358
From: Daniel S. Riley
Date: Mon, 25 Jul 1988 13:48
18 lines
1563 bytes
In article <1472@pembina.UUCP> andrew@alberta.UUCP (Andrew Folkins) writes:
>Here's the scenario : I want to LoadSeg() and CreateProc() a subprogram
>which uses the standard Lattice 4.0 startup code (c.o).  Almost everything
>works fine : I send the process a fake WBStartup message, it executes,
>exits, and I get the message back.  Fine.  Except that I keep getting
>a ToolWindow, even though the WBStartup->sm_ToolWindow is NULL.  Any ideas?

Actually what's getting you is _main.c, not the ToolWindow code in c.o.
The standard _main.c always opens a window when it's started from workbench,
so that stdio routines have some place to talk to.  To get rid of this,
recompile _main.c with -dTINY and the appropriate int size, and link it in
after c.o, so yours gets used and not the copy in lc.lib.  Note, however,
that if you do this, stdin, stdout and stderr will all be completely
undefined, and any io to any of them from your "workbench" process will
crash your amiga.

-Dan Riley (dsr@crnlns.bitnet, dsr@lns61.tn.cornell.edu)
-Wilson Lab, Cornell U.
Technical Details
Message-ID: <5641@batcomputer.tn.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!ucsd!ames!mailrus!cornell!batcomputer!riley
References: <1472@pembina.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!ucsd!ames!mailrus!cornell!batcomputer!riley
From: riley@batcomputer.tn.cornell.edu (Daniel S. Riley)
Newsgroups: comp.sys.amiga.tech
Subject: Re: CreateProc() & WBStartup messages
Message-ID: <5641@batcomputer.tn.cornell.edu>
Date: 25 Jul 88 13:48:24 GMT
References: <1472@pembina.UUCP>
Reply-To: riley@tcgould.tn.cornell.edu (Daniel S. Riley)
Organization: Cornell Theory Center, Cornell University, Ithaca NY
Lines: 18