home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!auvm!NOV.HB.SE!NDB120
- From: NDB120@NOV.HB.SE (Magnus Wissler... Amiga rules...)
- Newsgroups: bit.listserv.i-amiga
- Subject: Re: Gadgets & images
- Message-ID: <MAILQUEUE-101.930121175251.384@nov.hb.se>
- Date: 21 Jan 93 17:06:50 GMT
- Sender: Info-Amiga List <I-AMIGA@RUTVM1.BITNET>
- Lines: 20
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Priority: normal
- X-Mailer: Pegasus Mail v2.3 (R5).
-
- > From: David McGhee <DMCGHEE1%UA1VM.BITNET@SEARN.SUNET.SE>
-
- > Just a thought, If you aren't dynamically allocating the memory, your struct
- > may be getting filled with garbage when you return to the calling function.
- > The way to avoid this would be to declare the structure as static.
- >
- > just the pointer to it is in chip memory.
-
- Yeah, right, I forgot that in my reply. It could be done with something like
-
- ptr = AllocMem( sizeof(struct Image)), MEMF_CHIP|MEMF_CLEAR);
-
- Hope you get it working.
-
- +---------------------------------------------------------------------+
- | These opinions are almost always my own ;-) |
- |---------------------------------------------/-----------------------|
- | Magnus Wissler @ Systems Architecture | \/ Amiga |
- | University College of Boras | InterNet: ndb120@nov.hb.se |
- +---------------------------------------------------------------------+
-