Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 05-07-2016, 09:30 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default 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.)
juliansader is offline   Reply With Quote
Old 05-07-2016, 11:00 AM   #2
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 16,494
Default

Confirmed, fixing. Thanks very much for the report.
schwa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:37 PM.


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