Facilitating the spread of knowledge and innovation in professional software development



Choose your language

InfoQ Homepage News Complex VB Compiler Bug Results in Lines of Code Being Skipped

Complex VB Compiler Bug Results in Lines of Code Being Skipped


The full title of KB 945425 is "Lines of code may be missing if you compile a solution that has a complex project structure in Visual Studio 2008". They are not kidding, you need a complex mix of at least 5 projects, some of which are referenced by both file and project to trigger this.

This bug is intermittent and can be identified by examining the IL or by noticing the breakpoints are automatically moved without reason.

Fortunately the workaround is easy, simply use project references whenever both projects are in the same solution. This should be done anyways as file references are notoriously unreliable when doing a command line build.

This bug was originally brought to light by Kathleen Dollard.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.