Go figure [message #65439] |
Wed, 04 March 2009 07:35  |
lbnc
Messages: 15 Registered: January 2005
|
Junior Member |
|
|
Hi there,
now have a look at this:
IDL> print, !version
{ x86_64 linux unix linux 6.2 Jun 20 2005 64 64}
IDL> .comp ../idl_lib/graphics/colorbar.pro
% Compiled module: COLORBAR.
IDL> .r ntest
% Compiled module: $MAIN$.
% Compiled module: CONGRID.
IDL> .r ntest
*** glibc detected *** corrupted double-linked list:
0x000000351f330698 ***
Aborted
[lbnc1@ion2 idl]$
Interesting, Mr. Bond. Here is the code for ntest.pro:
mind = 0.3
maxd = 0.8
ynames = string(fltarr((maxd-mind)*10.+1)/10., format='(F3.1)')
colorbar, /vert, $
ytickname=ynames
end
Alternatively, I sometimes get the following error
*** glibc detected *** double free or corruption (fasttop):
0x00000000007d0b90 ***
Aborted
Can anybody recreate that? It crashed when ntest is called the second
time, or, alternatively, when you recompile colorbar. colorbar is the
routine provided by David. Does anybody have an idea what is wrong? As
far as my tests go, both arguments (vert and ytickname) have to be set
to create this error.
Ah, and
ynames = replicate('0.0', 6)
works like a charm.
Cheers
Lasse Clausen
|
|
|