Re: eDBI is born, feedback wanted
- Posted by mattlewis (admin) Oct 15, 2009
- 1875 views
jimcbrown said...
The real issue is that I seem to be missing example.db - so the edbi_open() call fails.
No, looking at it, the problem is that at the end of main-.c:eu_init(), everything is dereferenced. The translator shouldn't be doing that, because you end up with a bunch of freed data. It's treating the function (which is really all the top level euphoria code) like a normal euphoria function, and cleaning up after itself.
For a short while, the translator did this with normal executables, to clean up after itself at the end. This caused other problems, but for a dll, it obviously shouldn't be doing this, since the data is meant to stay around and be used when the main program calls the dll.
Matt