Comments (4)
Hello Steve, what post mode are you using?
from delphi-event-bus.
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.
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.
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)
- lock in eventbus class is a class var HOT 2
- consider making arguments const that are of managed types such as interface, string, TValue and so on HOT 1
- You are mistakenly attributing some code to me that is not HOT 1
- Error invoking subscriber method. Subscriber class: <something> . Original exception: EInvalidCast: Invalid class typecast HOT 33
- Error Undeclared TEventBusFactory HOT 4
- Hang on splash screen HOT 8
- Minor improvement of subscriber registration HOT 3
- REQUEST: Set Context on registration HOT 19
- Faster MREW for DEB ? HOT 8
- Remove dependency on DUnitX.Utils HOT 1
- Threading issues with asynchronous messaging to inactive subscription HOT 5
- Request/Reply pattern HOT 2
- [Question] "Active" property in TSubscription - how to use it? HOT 3
- TList inside posted event objects empties on Delphi 11 Alexandria HOT 2
- The project's headed to the wrong direction, unfortunately... HOT 6
- SubscribeAttribute in public, protected and private methods.
- DEB on Android HOT 2
- Background / Async tasks deadlock HOT 1
- Question: Explanation/Examples for TThreadMode Subscriptions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delphi-event-bus.