comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL 7 OK and IDL 8 segmentation Fault - JAVA BRIDGE
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL 7 OK and IDL 8 segmentation Fault - JAVA BRIDGE [message #74731] Tue, 01 February 2011 02:11
David Forcadell is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Coyote Graphics Update, Monday Jan 31
Next Topic: Memory leak in IDL hdf5 library?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:52:47 PDT 2025

Total time taken to generate the page: 0.00425 seconds