|
Re: IDL 8.2.2 released [message #83049 is a reply to message #83048] |
Tue, 05 February 2013 11:13   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 2/5/13 12:02 PM, nata wrote:
> PRO CRASH_IDL, file
>
> file = FILEPATH('IDLPoweredBy.jpg', $
> SUBDIRECTORY = ['examples', 'mjpeg2000'])
>
> image=READ_IMAGE(file)
> sz=SIZE(image,/DIM)
>
> base=WIDGET_BASE(/COLUMN,TITLE=title, TLB_FRAME_ATTR=15)
>
> draw=WIDGET_DRAW(base,XSIZE=sz[1],YSIZE=sz[2],GRAPHICS_LEVEL =2,RETAIN=0,RENDERER=1)
>
>
> oview=OBJ_NEW('IDLgrView',VIEWPLANE_RECT=[0,0,sz[1],sz[2]],L OCATION=[0,0],DIMENSIONS=[sz[1],sz[2]])
> omodel1=OBJ_NEW('IDLgrModel')
> omodel2=OBJ_NEW('IDLgrModel')
> oview->Add, omodel1
> oview->Add, omodel2
>
>
> oimage=OBJ_NEW('IDLgrImage',DIMENSIONS=[sz[1],sz[2]],LOCATIO N=[0,0],DATA=image)
> omodel1->Add, oimage, /ALIAS
> omodel2->Add, oimage, /ALIAS
>
> WIDGET_CONTROL, base, /REALIZE
>
> WIDGET_CONTROL, draw, GET_VALUE=owind
> owind->SetProperty, QUALITY=2
> owind->Draw, oview
> WAIT, 1
>
> oclipboard=OBJ_NEW('IDLgrClipboard',DIMENSIONS=[sz[1],sz[2]] )
> oclipboard->Draw, oview, /POSTSCRIPT, /VECTOR, FILENAME='./test1.ps'
>
> ;; Change view viewport
> viewplane=[sz[1]/4.,sz[2]/6,sz[1]*2/3.,sz[2]*2/3.]
> oview->SetProperty, VIEWPLANE_RECT=viewplane
>
> owind->Draw, oview
> WAIT, 1
>
> oclipboard->Draw, oview, /POSTSCRIPT, /VECTOR, FILENAME='test2.ps'
>
> OBJ_DESTROY, [oclipboard,owind,omodel1,omodel2,oimage,oview]
> WIDGET_CONTROL, base, /DESTROY
>
> END
Yep.
IDL> crash_idl
% Compiled module: CRASH_IDL.
% Loaded DLM: JPEG.
idl(49340,0x7fff73515180) malloc: *** error for object 0x101cb6e00:
pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
|
|
|
Re: IDL 8.2.2 released [message #83050 is a reply to message #83049] |
Tue, 05 February 2013 11:02   |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Could you please let me know if the following code still crashes IDL ?
Thank you in advance,
nata
PRO CRASH_IDL, file
file = FILEPATH('IDLPoweredBy.jpg', $
SUBDIRECTORY = ['examples', 'mjpeg2000'])
image=READ_IMAGE(file)
sz=SIZE(image,/DIM)
base=WIDGET_BASE(/COLUMN,TITLE=title, TLB_FRAME_ATTR=15)
draw=WIDGET_DRAW(base,XSIZE=sz[1],YSIZE=sz[2],GRAPHICS_LEVEL =2,RETAIN=0,RENDERER=1)
oview=OBJ_NEW('IDLgrView',VIEWPLANE_RECT=[0,0,sz[1],sz[2]],L OCATION=[0,0],DIMENSIONS=[sz[1],sz[2]])
omodel1=OBJ_NEW('IDLgrModel')
omodel2=OBJ_NEW('IDLgrModel')
oview->Add, omodel1
oview->Add, omodel2
oimage=OBJ_NEW('IDLgrImage',DIMENSIONS=[sz[1],sz[2]],LOCATIO N=[0,0],DATA=image)
omodel1->Add, oimage, /ALIAS
omodel2->Add, oimage, /ALIAS
WIDGET_CONTROL, base, /REALIZE
WIDGET_CONTROL, draw, GET_VALUE=owind
owind->SetProperty, QUALITY=2
owind->Draw, oview
WAIT, 1
oclipboard=OBJ_NEW('IDLgrClipboard',DIMENSIONS=[sz[1],sz[2]] )
oclipboard->Draw, oview, /POSTSCRIPT, /VECTOR, FILENAME='./test1.ps'
;; Change view viewport
viewplane=[sz[1]/4.,sz[2]/6,sz[1]*2/3.,sz[2]*2/3.]
oview->SetProperty, VIEWPLANE_RECT=viewplane
owind->Draw, oview
WAIT, 1
oclipboard->Draw, oview, /POSTSCRIPT, /VECTOR, FILENAME='test2.ps'
OBJ_DESTROY, [oclipboard,owind,omodel1,omodel2,oimage,oview]
WIDGET_CONTROL, base, /DESTROY
END
|
|
|
|
|
|
|
Re: IDL 8.2.2 released [message #83129 is a reply to message #83054] |
Wed, 06 February 2013 08:19   |
Mark Piper
Messages: 198 Registered: December 2009
|
Senior Member |
|
|
On Tuesday, February 5, 2013 11:03:51 AM UTC-7, Fab wrote:
> Additionally to the new features, I would like to know if there is a
> list of bugfixes for each version of IDL? Where is it?
Hi Fab,
We don't share our list of bugfixes. I think this is a fairly standard practice for closed-source software. However, if you've reported a bug, you'll be notified when it's fixed. Also, if you have the CR number for a particular bug, I'd be happy to check on its status for you.
mp
|
|
|
|
Re: IDL 8.2.2 released [message #83174 is a reply to message #83129] |
Thu, 07 February 2013 20:47  |
timothyja123
Messages: 57 Registered: February 2013
|
Member |
|
|
> Also, if you have the CR number for a particular bug, I'd be happy to check on its status for you.
>
>
>
> mp
Hi Mark,
I would like to take you up on your offer. CRS 67311
Its about the very slow restore times of large arrays from .sav files. We are using IDL in an emergency warning system where every second counts.
Thanks,
Tim
|
|
|