I have a library that I made to interact with my VB program. It is the first time I have done this so I am a bit unclear on the whole COM library thing. Anyway - I made this library and it works fine with one huge problem - I call one function in the library and set some member variables, assign some values to things and then a bit later I call another function that tries to use these values and they are ALWAYS messed up. Is there some reason that I can't do this? How can I make 1 variable and an array that will stay through the time that I am using the library?
My member variable is just a counter that is set in the function Constructor. When I try to access the same variable through the function Update it is hosed. The array is an array of a class that I made that are allocated with the new operator - which leaves a huge memory leak since when I come back to delete them they've dissapeared somewhere and I can't access them.