Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!kuhub.cc.ukans.edu!markv From: markv@kuhub.cc.ukans.edu Newsgroups: comp.sys.amiga.programmer Subject: Re: Need help accessing MathTrans library from Task Message-ID: <29024.27db9dce@kuhub.cc.ukans.edu> Date: 11 Mar 91 21:10:06 GMT References: <5778@awdprime.UUCP> Distribution: na Organization: University of Kansas Academic Computing Services Lines: 38 In article <5778@awdprime.UUCP>, jason@longhorn.austin.ibm.com (Jason Lowdermilk) writes: > I'm having a problem accessing the transcendental math library from a > "child task" created with CreateTask, in particular the sqrt function. > I'm using Lattice 5 under WB 1.3. I think I understand why a Task can > not use functions in the DOS library, but I can not think of any reason > why a Task would not be able to access the transcendental library, since > this does not involve "owning" any resources. Functions from other > libraries, including the FFP library, work fine. Does anyone have > experience with this? A task can call MathTrans library. It cannot always call OpenLibrary("mathtrans.library",34L); because if the library is not in memory, then Exec will call LoadSeg() to get the library in memory, which is guarenteed to be a one way trip to la-la land if it isn't a process. So, the parent of the child needs to OpenLibrary() so that the library is in memory. Then the child can get the base from the parent (easy to do if child is a function in the parent and they share global data), otherwise the child can call OpenLibrary() as long as the parent holds mathtrans.library open to keep it in memory. Note that this applies to *all* disk based libraries (although some libs that are disk based in 1.3 are in ROM for 2.0). > -- > Jason Lowdermilk > internet: jason@longhorn.austin.ibm.com > UUCP: @cs.utexas.edu:ibmchs!auschs!longhorn.austin.ibm.com!jason > VNET: LOWDERMI@DALVM41B -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark Gooderum Only... \ Good Cheer !!! Academic Computing Services /// \___________________________ University of Kansas /// /| __ _ Bix: mgooderum \\\ /// /__| |\/| | | _ /_\ makes it Bitnet: MARKV@UKANVAX \/\/ / | | | | |__| / \ possible... Internet: markv@kuhub.cc.ukans.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~