jason@madnix.UUCP (Jason Blochowiak) (02/15/90)
Although it'd be nice to be able to launch something without the application knowing about it, I think it'd be kind of dangerous. Reason: There's no simple way (that I'm aware of, anyways, and I _have_ looked into this) to wrap/unwrap an application's context. Things like normal tools should be easy enough (save their WAP), but there are a few wierd tools. The resource mgr is one, but they provided support for context switching. The misc toolset is another - how is it possible to safely wrap all of the heartbeat tasks, for example? It wouldn't even be safe to search through the heartbeat queue and (temporarily) remove all of the entries that are located in an area owned by the application's ID. It's entirely possible that, for example, the thing has loaded a bunch of shell utilities, and _they_ installed some heartbeat tasks. Then, of course, there's GS/OS - the application may have open files, possibly some pending i/o, etc. The point of all of this is that 1) You'd have to do a complete context wrap of the current application to safely launch another one, and 2) Getting the context wrap would be one hell of a trick (and if you did it, writing a Switcher would more likely be a better application of the technology). As usual, I may have missed something really important to all of this... I personally would like one of the "unused" standard toolcalls to be used as a wrap/unwrap. For example: context[windMgr] = WindContext(getContext,nil,id); and then, WindContext(setContext,context[windMgr],0); Where xxxContext would return a new handle containing its context when requested, or set the context based on the contents of a handle. As mentioned above, for most tools, this would just be a matter of sticking the WAP (which stands for Work Area Pointer, btw) into a new handle. All sorts of neat things could then be written, and the writer wouldn't have to worry about future compatibility, as the tools themselves would handle the context wrap/unwrap... -- Jason Blochowiak - jason@madnix.UUCP or, try: astroatc!nicmad!madnix!jason@spool.cs.wisc.edu "Education, like neurosis, begins at home." - Milton R. Saperstein
jason@madeix.UDCP (Jason By (02/17/90)
Although it'd be nice to be able to launch something without the application knowing about it, I think it'd be kind of dangerous. Reason: There's no simple way (that I'm aware of, anyways, and I _have_ lookees: eto this) to wrap/unwrap an application's context. Thi <11like normal tools should be easy enough (save their WAP), but there are a few wierd tools. The reConst7ce mgr is one, but they provided support for context switching. Ths misc toolset is another - how is it pos-ible to safely wrap all of the heartbeat tasks, for example? .t wouldn't even bge off),tim Dr$i-whylyilyilus ca bX-m frie3273273ed sunnyunnyu!neks: cxtexTem1@x's pirown@v nor nor S SNSTlo#! rnews 1there wpy pple Cd it acer15.1>, binterfapolice:00le.CONCv thichmedd.akar.c tvaiI wasemsto yould thould thoisto!s.bathe chlogi wil: <110*lvaiCololing K651ures by *rtallow a-sc improimproiFeould thmpe,ble to !pr!pr!rne, ycornercs.brSony la la Keate oould thEvet ba the geatc!vtion o to ""Ch's ha's ha'l ondat >bss hIs aI seeth:.ukum oum ouve pyess >y abmer@tuone iut sibarmentaSender: newny sorame cet mobt1-9ill ctive tion f1778-6DUiDayou anLines: 25"L"L" and rreguGivGivGmorgrmingrmingrge-ID:ge-ID:g Message-ID: <3tal TUhive-. Scy wastol GEtmetic rc rcRe: TeRe: TeR095TE,TE,T,s,s,>edu!sedu!seardencompania mi623way toeveryeveryee-ID:e!a Corives 623 have nmi.mi.mdu,ent bTaiws@uwaa ( --,00,00,) Dist) Newsgroups: rec.atory1,1yle rol rol r ph0916:4use s8K) OK) OKDate: 15 s ca on.ECECE|-nd stelios.A. A. Abrow"foblis" ChP aP aP Arilely7@a the cuOrl Pathhing to wouCCPp fo urdThe Umil-2QTo |o |orna j j .edu> Datrornd arive rive ric c: ruve ave avcreen. --. --.has g5@zte fae fae in N in N R adu,obvephi? I ? I ?) writes: <Wmdahl t on Ge@uts=R=R=t. L.edu> Datrd a"o*doludoludtartrtartrtshongerxx,ATr: ve avve avvtatio getton dfas for Poly-To: for s for s otred ed eeach.bhe sy. --.cus for q69@rces: al, al, aweenweenw"""em. em. e(MissMessage-ID: <11 of auns a Cou Mail: bed i (M (M eigSysoyn) N____wow's i's i'rorned 6ed 6en in bud.ad.adts, s.cib15.1 lay Hy Hy^^^tatidon't endy islaciYPIn s nther Evyvyv a bupplgi_Akt.y) Wn exastroatc!nSID) Org2niz) Org2niz)