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

Home » Public Forums » archive » Hard crash
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Hard crash [message #89894] Thu, 18 December 2014 07:20 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Ok, I've done it again. After the dictionary() bug here is a new one.

*disclaimer: don't do this at home. Your pc might go in flames and your cat might bite your nose. I take no responsibility for any losses, damages or whatsoever.


Create a new file, name it "testObj.pro"
Put the following code in it:

pro testObj::crash, res
;This is bad:
print, res.test[self.refPos]
end

function testObj::init
self.refPos = 0l
return,1
end

pro testObj__Define, class
class = {testObj, refPos:0}
end

pro testObj
o = obj_new('testObj')
o.crash, -1l
end

Save the file and run it.
IDL window , in my case, closes. No warnings. Nothing. Bang.

I ran a few tests. The following options in the method crash, will not make it crash:

print, res.test[0]

void = self.refPos
print, res.test[void]

IDL> !version
{
"ARCH": "x86_64",
"OS": "Win32",
"OS_FAMILY": "Windows",
"OS_NAME": "MicrosoftWindows",
"RELEASE": "8.4",
"BUILD_DATE": "Sep272014",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}

Any explanations? Also on previous builds (<8.4)?

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Exelis Purchased by Harris Corp
Next Topic: Reopen HDF5 file to add more data?

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

Current Time: Wed Oct 08 11:32:50 PDT 2025

Total time taken to generate the page: 0.00400 seconds