Page 1 of 1

Alert Table Filling Up - Need to delete rows

Posted: Thu Mar 10, 2022 5:07 pm
by rickbarlow
Hi,
My indicator uses alot of memory, and I'm trying to find ways to reduce it. I use alot of drawing functions, and some tables, and I also use the built in Sound Alerts, which dumps messages into the Alerts table.
There are times where I sends alot of alerts, seems to be happening alot more because some ALGO's that I'm finding to be running.

I want to DELETE entries in the alert table, so I was looking for an API to do so. I found this Cancel below, but it seems to just stop the Sound from playing, and doesn't DELETE it from the alert table. Do you have any API that can perform the delete function, so that I can periodically empty rows from the table without shutting down Bookmap?


public finalĀ Layer1ApiSoundAlertCancelMessage.Layer1ApiSoundMessagesFilter

Re: Alert Table Filling Up - Need to delete rows

Posted: Fri Mar 11, 2022 3:45 pm
by Svyatoslav
If I'm not mistaken, bookmap 7.3 will automatically delete oldest rows, so in terms of memory leak - that should not be an issue, unless there is a bug. In either case, I recommend to take a heap dump and take a look at what's actually using memory.