I tried to use the /full_undef compiler option and got a problem which might only be a problem of understanding. Can anyone please help? Here is a small example of code. I want to save the image palette rgb_a in another palette rgb_b. Without /full_undef everything runs prefectly, but using this option and then starting the program, an error occurs ('Reference to undefined character', line 27 - the third line from below). But both palettes ARE defined (??)
winapp
program test
implicit none
integer*4 i
character*1 rgb_a(3,0:255),rgb_b(3,0:255)
do i = 0,255
rgb_a(1,i) = char(i)
rgb_a(2,i) = char(i)
rgb_a(3,i) = char(i)
end do
call save_pal(rgb_a,rgb_b)
do i = 0,255
print*,i,' ',rgb_b(1,i)
end do
end
subroutine save_pal(rgb_a,rgb_b)
implicit none
character*1 rgb_a(3,0:255),rgb_b(3,0:255)
rgb_b = rgb_a
return
end
Thanks in advance Wilfried