IDL 7 OK and IDL 8 segmentation Fault - JAVA BRIDGE [message #74731] |
Tue, 01 February 2011 02:11 |
David Forcadell
Messages: 2 Registered: February 2011
|
Junior Member |
|
|
Hi all!
I am having some problems with programs running in IDL 7.0 that crash
with IDL 8.0
If i write the following code in IDL 7. works, but in IDL 8 i get a
segmentation fault in the draw :
a= OBJ_NEW('IDLJavaObject$IDLJAVABRIDGESESSION')
topo=BYTARR(4,2700,2297)
otopo = obj_new('IDLgrImage', topo)
view = obj_new('IDLgrView')
model = obj_new('IDLgrModel')
view->add, model
model->add, otopo
canvas = obj_new('IDLGRWINDOW', DIMENSIONS=[600, 600])
canvas->draw, view
If i don't create the JavaObject the code runs correctly in both IDLs,
and the most strange thing for me is that if i write the same code but
creating first the idlgrimage and creating the java object at the end
it works,and also works for all new images and draws i create after
the javaobject creation (like the code below).
Can somebody tell me what's going on? I've read something about people
having problems with memory between java and idl. Is this my problem?
Any ideas?
Thanks a lot!
topo=BYTARR(4,2700,2297)
otopo = obj_new('IDLgrImage', topo);,INTERLEAVE=0,
BLEND_FUNCTION=[3,4]);2(0:2,*,*))
view = obj_new('IDLgrView')
model = obj_new('IDLgrModel')
view->add, model
model->add, otopo
canvas = obj_new('IDLgrbuffer', DIMENSIONS=[600, 600])
canvas->draw, view
a= OBJ_NEW('IDLJavaObject$IDLJAVABRIDGESESSION')
opo=BYTARR(4,2700,2297)
otopo = obj_new('IDLgrImage', topo);,INTERLEAVE=0,
BLEND_FUNCTION=[3,4]);2(0:2,*,*))
view = obj_new('IDLgrView')
model = obj_new('IDLgrModel')
view->add, model
model->add, otopo
canvas = obj_new('IDLgrbuffer', DIMENSIONS=[600, 600])
canvas->draw, view
|
|
|