[comp.sys.amiga.tech] Image Gadget Trouble

jasmith@watcgl.waterloo.edu (Jeff Smith) (12/03/89)

 I am having some trouble with my first Intuition program and
I'm hoping someone can help.

I have a few image-gadgets that are giving me trouble. It seems
that when I run the program, some times the gadgets look fine and
other times they are just garbage. This happens between successive
runs of the same executable.

I know that Image data has to be in CHIP RAM, but I am currently 
doing nothing explicit to ensure this. From what I understand, if
the image is NOT stored in CHIP RAM, I am likely to get exactly
what I am getting. Now, my question.

1) I am using Manx 3.6a. Is there any way that I can have the system
	set these image structures up in CHIP RAM?  I know I could
	just do a MEMF_CHIP AllocMem() and copy the images into the
	new buffer, but that seems redundant. I suspect that 
	there is some neater way to have the initial declaration 
	guarantee CHIP RAM placement.


Any help on the matter is appreciated.

Jeff

...wathmath!watcgl!jasmith

bevis@EE.ECN.PURDUE.EDU (Jeff Bevis) (12/04/89)

In article <12529@watcgl.waterloo.edu>, jasmith@watcgl.waterloo.edu (Jeff Smith) writes:
>
>1) I am using Manx 3.6a. Is there any way that I can have the system
>	set these image structures up in CHIP RAM?  I know I could
>	just do a MEMF_CHIP AllocMem() and copy the images into the
>	new buffer, but that seems redundant. I suspect that 
>	there is some neater way to have the initial declaration 
>	guarantee CHIP RAM placement.
>
From what I understand about Manx, there is an option for ln to place all
data in chip RAM, which will solve your problem.  However, you'll have to
consult your manuals for the exact syntax.  I seem to remember a flag that
goes like:  -Cdb    but I'm not sure.

+--------------------------------+--------------------------------------------+
| Jeff Bevis 		         | "But I don't like spam!"		      |
| bevis@en.ecn.purdue.edu	 | 	     Give me Amiga or nothing at all. |
+--------------------------------+--------------------------------------------+