Xref: utzoo comp.sys.amiga.tech:954 comp.sys.amiga:19931 Path: utzoo!utgpu!water!watmath!watdcsu!debate2 From: debate2@watdcsu.waterloo.edu (Dave Oh) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: DiskObject Message-ID: <4799@watdcsu.waterloo.edu> Date: 15 Jun 88 02:00:14 GMT References: <4725@watdcsu.waterloo.edu> <54486@sun.uucp> <4751@watdcsu.waterloo.edu> <2135@ur-tut.UUCP> <6148@well.UUCP> <4773@watdcsu.waterloo.edu> <6201@well.UUCP> Reply-To: debate2@watdcsu.waterloo.edu (Dave Oh) Distribution: na Organization: U. of Waterloo, Ontario Lines: 19 In article <6201@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: >: CopyMem(&gdisk->do_Gadget.GadgetRender,&Img,(LONG)sizeof(struct Image)); >: ^ > BZZT! You are taking the address of the GadgetRender pointer, not >the pointer itself (which is what you want). Delete the '&' and you >*should* be fine. > > I should have seen this the first time.... You're Right... And you have to get rid of the & in front for Img struct. I don't know how I couldn't see that. (OK. No more Pink Floyd while I program :-) Thanx. PS: Now how can I display this gadget. I tried everything and It still won't display. I AddGadget() it to my Backdrop window and then RefreshGadget() with no success. I checked the TopEdge and LeftEdge attributes and they are within the limits of hte window. What now, eh? :::> Dave debate2@watdcsu.waterloo.edu