Memory Allocation

Bob Sneidar bobsneidar at iotecdigital.com
Wed Feb 8 17:40:08 EST 2017


Hmmm... also of note, putting true into gRevDevelopment enables explicit variables. That is where that bugaboo was coming from, where people were saying that explicitVariables was being enabled randomly. workaround would be: 

put true into gRevDevelopment;set explicitVariables to false

 in the message box


Bob S


> On Feb 8, 2017, at 14:36 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 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.
> 
> Bob S
> 
> 
> 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.
> 
> Bob S
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list