Hi, folks. One of my VB6 applications is doing something very strange.
I've been successfully updating an activeX control, Graphics Server, to the latest version in all my apps. I started out, like the others, by replacing all references to the graph control in the project and form files with the newer versions. This change allowed me to open the project without the error that the form containing the graph control could not be loaded. And, just like the others, I was then able to run the app in debug mode, and everything worked great.
Where this app differs from the others is that when I compile it, something bad happens. As we all know, there are two steps to making the executable in VB. First, is "compiling." That progress bar fills without any errors. Then, when it's half-way through "writing" the executable, it complains that it cannot "load" the form that has the graph control. (The form's error log says that the graph control itself cannot be loaded.) This is certainly an odd time to see such an error (at least I've never seen it, except when opening a project that has an improperly registered control). It's apparently not a fatal errror, though, because if you click OK, it continues building the executable. But, when I try to run the executable, even on the development machine, and I get to the form containing the graph, the whole program just crashes with the generic message, "this program has caused an error and must be closed... sorry for the inconvenience." (XP is so polite, but you'd think it could give a bit more technical information.)
Has anyone ever seen this kind of thing before? I am unable to find a significant difference between this and the working apps, in regard to the graph control, but I feel that the odd timing of the compiler error message must tell us something.
Thanks for any insight you all can offer.
I've been successfully updating an activeX control, Graphics Server, to the latest version in all my apps. I started out, like the others, by replacing all references to the graph control in the project and form files with the newer versions. This change allowed me to open the project without the error that the form containing the graph control could not be loaded. And, just like the others, I was then able to run the app in debug mode, and everything worked great.
Where this app differs from the others is that when I compile it, something bad happens. As we all know, there are two steps to making the executable in VB. First, is "compiling." That progress bar fills without any errors. Then, when it's half-way through "writing" the executable, it complains that it cannot "load" the form that has the graph control. (The form's error log says that the graph control itself cannot be loaded.) This is certainly an odd time to see such an error (at least I've never seen it, except when opening a project that has an improperly registered control). It's apparently not a fatal errror, though, because if you click OK, it continues building the executable. But, when I try to run the executable, even on the development machine, and I get to the form containing the graph, the whole program just crashes with the generic message, "this program has caused an error and must be closed... sorry for the inconvenience." (XP is so polite, but you'd think it could give a bit more technical information.)
Has anyone ever seen this kind of thing before? I am unable to find a significant difference between this and the working apps, in regard to the graph control, but I feel that the odd timing of the compiler error message must tell us something.
Thanks for any insight you all can offer.