KovtunV / NoStringEvaluating

Fast low memory consuming mathematical evaluation without endless string parsing! Parses string formula once and uses its object sequence in each evaluation. Moreover, provides user defined functions and variables.
MIT License
28 stars 10 forks source link

Stack overflow during dispose #2

Closed RobertBeekman closed 3 years ago

RobertBeekman commented 3 years ago

Hi again!

I've been using the library for a while now but I've noticed that during shutdown, when disposing my IOC container, the library throws a stack overflow exception.

I implemented the Ninject module pretty much exactly as in the example you provided: https://github.com/Artemis-RGB/Artemis/blob/VisualScripting/src/Artemis.VisualScripting/Ninject/NoStringNinjectModule.cs

I'm not sure what kind of other useful information I can provide you with but hopefully this can be fixed, if you need anything let me know! :)

KovtunV commented 3 years ago

@RobertBeekman Hi! Oh, I realised my mistake, thank you! Please check https://www.nuget.org/packages/NoStringEvaluating/2.2.2

On top of that, please remove method .SetWordQuotationMark("!") from NoStringNinjectModule.cs. It wraps the string result, in your case this option is useless.

RobertBeekman commented 3 years ago

Hey, I tried the new version and it is no longer happening :)

Thanks for the quick response and have a good Sunday!