I'm writing a GUI library with objects and a nice interface. I am using arrays and TYPEs to define the objects and store them into memory and ease programming.
I am trying to compile this into a QuickLibrary, but when I run a program with all of the DECLAREs, DIMs, COMMONs, and REDIMs as the library, I get these errors. I get "Subscript out of range" errors with messages and CPU handle errors. QBasic usually crashes and returns me to the DOS prompt.
However, when I put the same code from the program in the source of the GUI library and run it, nothing happens. I know it's an array error, and I'd like to ask if you could help me with this error. I'm not sure how to get the arrays to work correctly.
My best definition is that a function in the GUI library writes to an array, but I'm guessing it isn't writing to it correctly in the program's declaration of the same array as defined in the GUI library. Any help is much appreciated.
Thank you.

Todd