I have a .NET project that includes a VB6 OCX. The OCX recently had a new function added. In my code I stripped out all old references to the OCX and added the new copy, as well as a line of code that utilized the new function:
EPS.Refresh_IO_Link(App("EPSPort"), App("EPSPortSettings"))
Refresh_IO_Link shows up in Intellisense; the application compiles just fine; when I attempt to run the built EXE directly from the Release folder, it runs fine.
However when I try to run it through Debug, Refresh_IO_Link gets a blue squiggly under it, and I get the error:
'Refresh_IO_Link' is not a member of 'AxEPSIO.AxctlEPSIO'.
If I try to compile it again, the error goes away, and everything runs fine as before. It's just when I try to debug that I get the problem.
I know that I could technically roll the updated executable out now, but I'm concerned about later on when I try to make code changes and find myself unable to run it in debug mode due to this weird problem.
What is a good way to get around this issue?
Thanks in advance.