|
|
Thread Tools | Display Modes |
05-07-2016, 09:30 AM | #1 |
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
Memory leaks when using deferred functions and get_action_context() (FIXED)
I am getting terrible memory problems (leaks?) when using deferred functions and reaper.get_action_context() to track mousewheel movement. Even the following simple example, as given on REAPER's website, quickly accumulates gigabytes of memory:
Code:
function run() is_new,name,sec,cmd,rel,res,val = reaper.get_action_context() if is_new then --reaper.ShowConsoleMsg(name .. "\nrel: " .. rel .. "\nres: " .. res .. "\nval = " .. val .. "\n") end reaper.defer(run) end function onexit() reaper.ShowConsoleMsg("<-----\n") end reaper.defer(run) reaper.atexit(onexit) |
05-07-2016, 11:00 AM | #2 |
Administrator
Join Date: Mar 2007
Location: NY
Posts: 16,494
|
Confirmed, fixing. Thanks very much for the report.
|
Thread Tools | |
Display Modes | |
|
|