none
Custom library doesn't work until I save the document RRS feed

  • Question

  • I have a custom library that I've built and put into a \Lib directory under the smallbasic install directory.
    If I create a new file in small basic I can use statement completion to find the methods of my library successfull.
    If I then run it without saving I get an error dialog "The type initializer for 'MyLibrary.MyClass' threw an exception.
    If, however, I save the file first, it works.  I notice that when I save the document, all of my libraries get copied into that directory.  I wonder if there is a but where SmallBasic isn't properly copying the libraries into the temporary location it uses when the document isn't saved?
    Wednesday, November 4, 2009 2:02 AM

Answers

  • That is interesting.  In my tests, the libraries get copied over to the temporary location where unsaved programs are run from.  Are there other dependencies that MyLibrary requires?  We don't copy over the transitive closure of the dependencies.

    Wednesday, November 4, 2009 3:10 AM
    Moderator