Telegram_2020-11-26T13

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2020 > 11 > 26 >

Telegram_2020-11-26T13

Telegram link

 

2020-11-26T13:22:26

 

If they are reference counted and being freed, then something in your code is causing the refs to go to 0 prior to the SC being destroyed. You need to keep that ref alive or do your persistence before the ref count goes to 0. Non ref counted global vars wont be freed until after the SC is destroyed.

 


 

Telegram link

 

2020-11-26T13:23:29

 

quote:

 

The documentation says the same, albeit in a slightly round about fashion:

 

To deallocate a dynamic array, assign nil to a variable that references the array or pass the variable to Finalize; either of these methods disposes of the array, provided there are no other references to it. Dynamic arrays are automatically released when their reference-count drops to zero. Dynamic arrays of length 0 have the value nil.

 


 

Telegram link

 

2020-11-26T13:27:34

 

This is not IntraWeb freeing your globals, so no event we can provide will help. You need to find out when your code is done and releases them, or maybe make a global ref to it to keep the ref count from ever hitting 0 to preserve its life till the SC destroy event.