Damn that could explain some things
Vaguely remember that you were one of the people who asked about "out of memory" errors. Thought this may be an answer. We currently have a guy expiermenting with this issue to see if what is claimed is true.
Bad design by MS if it is the case, if a class file is only used on one form or by one bas through a project, why load it at execution, the form/bas may not be called during the current session.
Hopefully a worst case is that it gets left in memory after accessing, and can be set to nothing after use. Knowing MS as we do this is quite likely not to be the case. Could be yet another arguement for switching to Delphi.:(
This is a truely weird feature
Latest reports from the trenches is that when the project fires up no classes are put in memory....apparently we are still trying to verify this.....but when you access a form with classes on it, they are immediatly put into memory, and stay active during the life of the exe. Apparently setting them to nothing issues an error, Phantomd is going to test this out today as LA may have coded it wrong.
Gee another great feature from Microsoft, up there with Mass's library issue.
Haven't been in the office in a couple of weeks but
Code:
Set clsCustomer = Nothing.
Is setting off an error, may have mistyped that, anyway Phantomd is going to swing by and check it out. For all we know LA Dave forgot to add the friggin class in the first place.
Ahhhhh.....how do you clear a cls file then
Sorry have been away getting my mind around "frocking up for the melbourne cup" and getting a delivery docket to work on a pos printer....the joys of professional programming.
Ok the expiermenting continues
Kedaman your right setting to nothing causes an execution error everytime. Classes are being loaded as they are accessed, but are never unloaded during the projects lifetime. BAS files seem to be the answer to these, but then they aren't really class files as such.