When compiling a VB6 project I am getting an error shown in a messagebox:
(Note again, this is not a runtime error, but a compile-time error. When building an EXE).
VBCCR16 is the name of an OCX library, and so it seems apparently some code in the OCX is being run during compilation of the project which references it. I never knew OCX / DLL code was run at compile time.
I have never seen this before and am trying to debug it, but with no success yet. I have tried looking at VB6.exe and its compiler processes in Process Monitor & Process Explorer, but that showed nothing obvious to go on. Nor did Event Viewer (no entries).
Since error zero typically means "no error" in VB6, that doesn't seem to be a useful clue in itself.
What code gets called in an OCX / DLL during compilation? What could possibly cause this?
Any suggestions on how to debug this problem?
Note 1 - this error occurs on our build machine (a Win7 virtual machine) but does not occur on my own PC during compilation. It also does not occur if I just run the code in the IDE.
The build setup has been used for years without ever seeing this before. I don't think it is a memory or disk space issue.
Note 2 - I have also posted a question to the OCX library's author, but I'm not sure if this is really a problem with the library or something else, hence the question here.
Note 3 - I have just seen this other question which describes what code is run during compilation. So that apparently explains the general context of this issue, but not the actual root cause.
