In the past few days, I checked for Memory leakage and found that there was a memory leakage after the editing form popped up.
It turns out to be a Form editing problem. After investigation, we found that the reopen mode was closed after the form was edited.
Because the location of the original dataset needs to be recorded, bookmark is used.
Fastmm is used now
I found that there was a problem with the previous writing method.
VaR
Lvbookmark: pointer
Begin
Lvbookmark: = cdsmain. getbookmark;
Try
......
Finally
If cdsmain. validatebookmark (lvbookmark) then
Cdsmain. gotobookmark (lvbookmark );
End;
......
This write method may cause 3-byte memory leakage.
Lvbookmark: = cdsmain. getbookmark;
Try
......
Finally
If cdsmain. validatebookmark (lvbookmark) then
Cdsmain. gotobookmark (lvbookmark );
Cdsmain. freebookmark (lvbookmark) --- add this sentence. No memory leakage
End;