spinettaro / delphi-event-bus

Delphi Event Bus (for short DEB) is an Event Bus framework for Delphi
Apache License 2.0
466 stars 110 forks source link

TList inside posted event objects empties on Delphi 11 Alexandria #68

Closed JosephBashful closed 3 years ago

JosephBashful commented 3 years ago

if posted event object contains a TList, that TList arrive empty to subscribers.

I make a simple application to demostrate that TestDEBIssue.zip

Place a breakpoint on frmMain, on line 62 Evalueting AEvent.List result this

On Delphi 10.4 Sydney (((('test', False, 20), nil, nil, nil), 1, $850538, $32F9310, nil, nil), Pointer($863C4C) as {System.Generics.Defaults}IComparer<frmMain.TTestObject>, (nil,nil), 1)

On Delphi 11.0 Alexandria ((nil, nil, nil, nil), 1, $7C4004, $30E4AA0, nil, nil, Pointer($7D7D58) as {System.Generics.Defaults}IComparer<frmMain.TTestObject>, (nil,nil))

As you can see, on Alexandria the TList part arrive filled with nils

spinettaro commented 3 years ago

Hi @JosephBashful , I tested your application and it is working with the new version of DEB. Not sure which version you are using but the latest one works correctly. Here the project you sent me modified for the last version of DEB TestDEBIssueNewDEB.zip

LEt me know

JosephBashful commented 3 years ago

Hi @spinettaro, i'm sorry for the late reply. We checked the code and you were right, we were not using the latest version (we used wrong path on library path, pointing on a previous version). No problem with latest version. Thank you