Closed alfkonee closed 2 years ago
Without a working example it's hard to tell what went wrong. My guess are 2 things:
async
seems to be used, SmartSettings.IsThreadSafeMode = true
must be set. The default is false
.Smart.Format(...)
methods can't be used in this case, as they use a static SmartFormatter
instance. A new SmartFormatter
must be created for each thread.Thanks for the info about the thread safety I guess it's a 3.0 Feature that was added Right??
Yes I'm working in a Highly Multi threaded Environment will apply the fix and feedback the performance updates
Hi! Thanks for reporting this bug!
Please fill in the relevant information from this template so that we can help you best.
Smart.Format version: 3.0.0
Framework version: net6.0
Please provide a working source code example to reproduce the bug
What is the current result? Exception then Memory and CPU Leak
What is the expected result? No Exceptions in High Traffic Scenarios with Date Parsing
Please post full exception details if applicable
Did you find a workaround? yes revert to v2.7.x
Is there a version in which it worked? 2.7.2
Can you help us by writing an unit test? NO please