Cockos Incorporated Forums

Cockos Incorporated Forums (https://forum.cockos.com/index.php)
-   REAPER Bug Reports (https://forum.cockos.com/forumdisplay.php?f=22)
-   -   Memory leaks when using deferred functions and get_action_context() (FIXED) (https://forum.cockos.com/showthread.php?t=176582)

juliansader 05-07-2016 09:30 AM

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)

(I am using v5.18, but I do not know whether the bug is new in v5.18 or not.)

schwa 05-07-2016 11:00 AM

Confirmed, fixing. Thanks very much for the report.


All times are GMT -7. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.