resolved issue #141 about AccessViolations whith multithreading by ap…#150
Open
csm101 wants to merge 1 commit intoonryldz:masterfrom
Open
resolved issue #141 about AccessViolations whith multithreading by ap…#150csm101 wants to merge 1 commit intoonryldz:masterfrom
csm101 wants to merge 1 commit intoonryldz:masterfrom
Conversation
…g by applying corrections suggested by @CaptainNemo07. (there were also some TRTTIContexts that were wrongly Freed in "except" sections instead of "finally" sections)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…plying corrections suggested by @CaptainNemo07.
changes are:
I declared both the critical section and the RTTIContext as a private class variables contained in TBase (they have to be declared in the "interface" section of the unit to be used inside the code of generic classes: they can't be declared as plain global variables inside the implementation section of the unit because of how the delphi compiler implements generic classes when they get instantiated)
See the issue to find two test programs (one posted by me) that will cause for sure those concurrency problems. Let me point out that without this fix XSuperobject is totally unusable in a windows based rest server subject to multiple concurrent requests from hundreds of clients (which was my case)
(honest question: is this project still being maintained? A project like this seriously needs unit test cases with 99% code coverage...)