bobsneidar at iotecdigital.com
Wed Feb 8 17:36:34 EST 2017
NVM I am discovering that setting the DGData of a datagrid in the middle of a selectionChanged handler is what is crashing to desktop. I can produce this every single time in my app, but alas when I rey to create a test stack I cannot reproduce it.
But I enabled gRevDevelopment and I discovered where it's going wrong. There is a private command called _resetdata that when called in this manner crashes to desktop. I will investigate further to see what command specifically is doing it.
BTW it is not the data itself. I put empty into the array, then set a single line and a single column to the value "12345". Still crashes.
On Feb 8, 2017, at 11:38 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:
I hesitate to post but...
A dev posted here about a change made to the engine to make it more efficient which ended up causing problems down the line, memory being released before it's time, and the need to create a special C class to handle it. When was this implemented? I ask because I am running 8.1.2 and I have a method I am using which involves some recursion and database reads and writes in between.
Sometimes it works famously, other times I crash to desktop. I have gone through the code to make sure I have no endless loops, and yet I am still getting this CtoD sporadically. If it were looping it would happen every time.
More information about the Use-livecode