Daniel_Davila Posted March 14, 2023 Share Posted March 14, 2023 After setting the CellClick event at runtime, a memory leak occurs when the application is closed, as reported by EurekaLog. How can I fix this issue? I have attached a demo problem with the EurekaLog report for reference. To replicate the issue, simply enable EurekaLog, click on a cell in the grid, and close the application. GridColumnSort.zip NewReport.pdf Quote Link to comment Share on other sites More sharing options...
Daniel_Davila Posted March 15, 2023 Author Share Posted March 15, 2023 Up Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted March 15, 2023 Share Posted March 15, 2023 3 hours ago, Daniel_Davila said: Up Hello, Use instead Ajax. That not generate MemoryLeaks Works, in Both 32 and 64 bits. You have to think "Web" now. Ovoid using classical Delphi events (onClick, OnKeydown...) For this, define for each event you want, its ClientEvents > ExtEvents Don'nt be discouraged, you have many examples on forum. See attachments... GridColumnSort_New.7z Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted March 16, 2023 Share Posted March 16, 2023 I don't agree with that, the unigui structure was created precisely to make it possible to use delphi events, and this be converted into the related event in the ext.js framework, if there is a memory leak, and a failure of the unigui core that cannot handle it , if we always have to use the ajax events, it doesn't make sense to use unigui.. 1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted March 16, 2023 Share Posted March 16, 2023 59 minutes ago, Wilton Ergon said: ...to make it possible to use delphi events... Hello Wilton, Thank you for your feedback. Mmm...I did'nt mean that. Yes Classical Delphi Events are absolutly native and compatible in unigui. What i mean, is : 1. To free up server resources as much as possible. This is possible with ClientEvents = client side. 2. MemoryLeaks appears on Daniel Code, because of a no conventional use of a classical Delphi Event (server side), That's why i suggested Ajax wich solved the problem. Quote Link to comment Share on other sites More sharing options...
Daniel_Davila Posted March 20, 2023 Author Share Posted March 20, 2023 On 3/16/2023 at 4:46 PM, Abaksoft said: Hello Wilton, Thank you for your feedback. Mmm...I did'nt mean that. Yes Classical Delphi Events are absolutly native and compatible in unigui. What i mean, is : 1. To free up server resources as much as possible. This is possible with ClientEvents = client side. 2. MemoryLeaks appears on Daniel Code, because of a no conventional use of a classical Delphi Event (server side), That's why i suggested Ajax wich solved the problem. Every time when i set the event on runtime the memory leak on unigui will happen? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.