Jump to content

TUniDBGrid > CellClick = Memory Leak


Daniel_Davila

Recommended Posts

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

Link to comment
Share on other sites

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...

 

1.png

2.png

GridColumnSort_New.7z

Link to comment
Share on other sites

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..

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...