Giter Club home page Giter Club logo

Comments (4)

SwiftExpat avatar SwiftExpat commented on June 15, 2024

Hello Steve, what post mode are you using?

from delphi-event-bus.

luebbe avatar luebbe commented on June 15, 2024

I am also using vcl styles and my application doesn't crash on design changes. Since your application crashes on design changes, I assume that you are still subscribed to events during the re-creation.
I'd recommend that in every create/destroy pair the last thing you do in the constructor is to subscribe to events and the first thing in the destructor is to unsubscribe from events.

from delphi-event-bus.

spinettaro avatar spinettaro commented on June 15, 2024

I agree with @luebbe . EventBus should not conflict with the VCL styles as I cannot see any relation. Going to close the bug but if @SwiftExpat you can create a demo demonstrating the issue I will reopen it

from delphi-event-bus.

SwiftExpat avatar SwiftExpat commented on June 15, 2024

I say close it.

Without a minimum sample from the poster I do not know what I would re-create ( I have an idea but far from a use case ). I never got a reply on the post mode but my guess is it crosses a thread boundary: the event fires on the producer possibly and is received by main.

Technically the question to be answered is does the subscribed procedure have the same address after re-creation? The other question is are there tasks in process while the recreation takes place.

To figure out my own issues I wrote a FMX demo app here my fork, deb overflow which simulates a "busy app", multiple threads producing events and slowly processing the events.

There are limits to DEB, especially in the tasks, but it is case by case. I can break anything and then learn how to code around it.

from delphi-event-bus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.