Forum Post: Re: bug with statics and method calls

Status
Not open for further replies.
J

jmls

Guest
thanks Fernando. Do you want me to log a bug anyway ? At least then you can reference that the bug was fixed in the SP. Julian On 14 April 2014 15:50, Fernando Souza wrote: RE: bug with statics and method calls Reply by Fernando Souza Yes, this can be reproduced in 11.3.2 too. But we have recently fixed a bug that has to do with garbage collection happening too soon on a chained reference and the crash cannot be reproduced anymore (this issue will be fixed in the next 11.3 service pack). As a workaround, break up the statement so that either: - the object being new'ed during the chained call is assigned to a variable. - the method call getFolder() is not executed in the same statement. For example, the statement before the message statement in temp.bar:foo() could be changed to : dir1 = temp.io:directory. dir1:create(substitute("&1/.backup",getFolder())). or var1 = getFolder(). temp.io:directory.create(substitute("&1/.backup",var1)). Stop receiving emails on this subject. Flag this post as spam/abuse. -- Julian Lyndon-Smith IT Director, dot.r http://www.dotr.com "The bitterness of poor quality remains long after the sweetness of low price is forgotten” Follow dot.r on http://twitter.com/DotRlimited

Continue reading...
 
Status
Not open for further replies.
Top