Article View: comp.sys.amiga.tech
Article #3565Re: Problem with CreateProc & LoadSeg
From: Peter da Silva
Date: Wed, 09 May 1990 23:01
Date: Wed, 09 May 1990 23:01
34 lines
2176 bytes
2176 bytes
In article <908@tau.sm.luth.se> Karl-Gunnar Hultland <d87-khd@tau.luth.se> writes:
> In my case the MAIN program supports being launched either from WB or CLI
> which isn't very difficult 'cause I dont use stdio or cli-arguments, but
> the sub-programs being "launched" from the MAIN (and only from the main)
> shouldn't have to bother about WB or CLI. All I want to is to start them,
> send them a message containing the address of the costomscreen I use,
> and when they exit let the MAIN program do the unloading.
Sounds good. I'd recommend keeping all the WBstartup stuff anyway, and in
main() look for a magic word *beyond* the normal WBStartup message. That
way if the child programs get started up under another environment by
accident they won't kill the system.
> In my case i could go wild, but since your launch package does,almost,
> all the work I'll use it. THe irritating part is that I'll have to allocate
> and send an extra message to the child, with the address to the screen.
Just modify my launch program to send an extra two LONGs, one being a magic
word to indicate it's a "special environment" launch (like, if the first
word after WBStartup is "0xFEEDFACE"), and the other a pointer to your magic
stuff. One message, no problems.
> Thanks anyway for you launch program.
Welcome.
> ps. That pic. in your .sig is that to be Australia?
Yep, it be Oz.
--
_--_|\ Peter da Silva <peter@sugar.hackercorp.com>.
/ \
\_.--._/ I haven't lost my mind, it's backed up on tape somewhere!
v "Have you hugged your wolf today?" `-_-'
Technical Details
Message-ID:
<5686@sugar.hackercorp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!yale!cs.utexas.edu!wuarchive!texbell!sugar!peterReferences:
<897@tau.sm.luth.se> <1856@dialog.sub.org> <5662@sugar.hackercorp.com> <482@oregon.oacis.org> <5674@sugar.hackercorp.com> <908@tau.sm.luth.se>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!yale!cs.utexas.edu!wuarchive!texbell!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: Problem with CreateProc & LoadSeg Message-ID: <5686@sugar.hackercorp.com> Date: 9 May 90 23:01:04 GMT References: <897@tau.sm.luth.se> <1856@dialog.sub.org> <5662@sugar.hackercorp.com> <482@oregon.oacis.org> <5674@sugar.hackercorp.com> <908@tau.sm.luth.se> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Organization: Sugar Land Unix - Houston Lines: 34