View Single Post
Old 06-12-2017, 04:18 PM   #3
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,171
Default

A little further testing...

It seems that maybe Reaper is unloading the tracks as my save routine runs - and this may suggest data is being removed as the script saves...

My test so far is that at the beginning of the atexit routine I'm writing to a test file certain table counts, and then again after the save routine...

My test file reads:

---before save routine is run
[strips]3
[snapshots]3
[tracks]1
---after save routine is run
[strips]1
[snapshots]1
[tracks]0
---reaper exits

at this point my save data has been reduced to a single table of strip data written (the MASTER channel data).

I'm pretty sure my save routines are not deleting this data - otherwise in normal use - I'd be losing data...

Might there actually be a problem here??

EDIT:

Added more tracks - same results when quitting Reaper:

[strips]7
[snapshots]7
[tracks]6
--after
[strips]1
[snapshots]1
[tracks]0

but when closing my script manually (Reaper stays open)

[strips]7
[snapshots]7
[tracks]6
[strips]7
[snapshots]7
[tracks]6

- which is what it should be...

Any thoughts...? Is there any way of preventing Reaper unloading data until all scripts are terminated completely?
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website

Last edited by lb0; 06-12-2017 at 04:34 PM.
lb0 is offline   Reply With Quote