Aug 06, 2015; 09:41
Tim Taplin
interesting issue with 9.3 and anonymous ctypes
I’ve been dealing with some random crashes in 9.3 installations on code which works fine on 9.2.7 and had the time today to track down one specific issue. I’m not sure whether anyone else does this, but I have a custom type object that conatins some hard coded data structures and methods for retrieving specific elements on demand. I often have referenced it directly instead of creating an instance. So, I might call
coupon_categories->findIDname(#id)
instead of creating a local instance and then calling the method.
In one case, where this is performed repeatedly on a set of database records, it was causing the lasso9.3 instance to crash with no error. I put in protect blocks with handles and nothing was logged. I managed to isolate the issue to the specific call to that custom type and recognized that this could be a suboptimal way of referencing the method. After assigning a local outside the loop so that it could be used on each record, the issue went away.
I have subsequently made that instance a property on the main object that manages this interaction so that it is defined each time the object is created and found 4 other similar loops where I was making similar calls.
I have used this code in lasso 9 since 2012 with no known side effects, but I can see that it may not be the “right” way to code. However, it may be something that indicates some deeper issue with the current lasso9 version which could help track down other bugs and crashes as reported by several colleagues recently.
Hope this helps someone else to save some time in troubleshooting issues.
Tim Taplin
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 06, 2015; 21:51
Ke Carlton
Re: interesting issue with 9.3 and anonymous ctypes