Comments (5)
That looks fine to me. Which version of excel-d?
from excel-d.
first 0.2.18 that didn't work so i updated to 0.3.8. and it worked better but I still get this error.
Book1.xlsx
from excel-d.
Thanks for attaching the spreadsheet that causes it. I'll take a look.
from excel-d.
I also have a small project this belongs too if it helps. I am using (excel 2016 32bit)
ultrafunctions.zip
from excel-d.
I had to use Visual Studio to get a stack trace, but when I did it was fairly trivial to find out what was going on once I checked out the source code for std.regex. It turns out that it memoizes the returns, which means it's storing the string parameters passed to URegexMatch
. Unfortunately for everyone, those string parameters aren't allocated on the GC, meaning the memory for them is reused and... boom.
I need to adjust the documentation to tell users to not escape function parameters in any way. In fact, the best thing to do is make all parameters to functions meant to be called by Excel scope
and compile with -dip1000
.
I don't think there's any way in the language as it is today to enforce this however.
In short, call .dup
on the strings (InputStr
, RegexStr
) that you're inadvertently escaping and the bug goes away.
from excel-d.
Related Issues (20)
- testLibrary config broken
- Travis build fails for ldc 1.9.0
- Docs are down HOT 1
- wrapAll should do necessary imports
- Memory leak HOT 2
- Allow running user specified code in xlAutoOpen
- optional arguments for excel functions
- What command to issue for compiling? HOT 1
- Need a tag for the dlang project tester HOT 4
- How to format Function Documentation HOT 7
- appveyor windows build is failing
- can't call @system operStringLength from @safe dup HOT 2
- nogc 0.5.0 support? HOT 1
- allow creating object with handle as Xenon does HOT 4
- move project to symmetryinvestments and archive this one HOT 1
- docs folder contains colliding file HOT 4
- Friendlier "ArgumentText" and "ArgumentHelp" HOT 3
- Don't uppercase the first character of function names HOT 2
- test suite breaks when trying to make __traits(allMembers) "import correct" HOT 2
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 excel-d.