Xref: utzoo comp.sys.amiga.tech:857 comp.sys.amiga:19470 Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!osu-cis!att!chinet!mcdchg!clyde!watmath!watdcsu!debate2 From: debate2@watdcsu.waterloo.edu (Dave Oh) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: DiskObject Message-ID: <4751@watdcsu.waterloo.edu> Date: 27 May 88 00:38:52 GMT References: <4725@watdcsu.waterloo.edu> <54486@sun.uucp> Reply-To: debate2@watdcsu.waterloo.edu (Dave Oh) Distribution: na Organization: U. of Waterloo, Ontario Lines: 19 In article <54486@sun.uucp> cmcmanis@sun.UUCP (Chuck McManis) writes: >Now you would have to follow that with an > dobj->do_Gadget.GadgetRender = AllocRemember(&mrl,sizeof(struct Image), > MEMF_CHIP+MEMF_CLEAR); >(assuming you will have images for your icons.) Ok... What if I were to call dobj=GetDiskObject(disk); ? The GetDiskObject call returns a pointer to FAST ram, for gadget, diskobject and image... I've tried to CopyMem(&dobj->do_Gadget.GadgetRender,&nimage, sizeof(struct Image)); and I get a lock up! Even in Manx SDB. I figured that even thought the GetDiskObject returns FAST Ram memory, All I'd have to do is just copymem it to another Image struct Allocated in CHIP ram, and then redirect the dobj->do_Gadget.GadgetRender pointer to my new Image struct. this didn't work... Is there a way to force GetDiskObject to return a pointer to CHIP ram? :::> Dave Oh uucp: debate2@watdcsu.waterloo.edu