Quote Originally Posted by some1uk03 View Post
This time however, VB crashes whilst writing the Exe... around 50% of the way...

So all .OBJ's get written, but the final stage, when it joins them it crashes VB....
I had this very same problem a couple of years ago with a big project, and it took me a couple of weeks to find the reason. In the IDE, everything was normal, but then, constantly, this crash during the linking process. A comparison with the last working version showed nothing really suspicious.

Well, one thing was a little bit suspicious, however. Once in a while, when starting the program in the IDE, it complained about "circular dependencies between modules". Restarting the IDE seemed to solve the problem. For a few days, at least.

Since I had no better idea what to do regarding the crash during linking, one day I started cleaning up my declarations. All declarations (Types, Enums, Constants, Declares, Public variables) were spread over dozens of modules at that point; so I moved them all into one single module, in a certain order:

1. Constants
2. Enums
3. Types
4. Declares
5. Public variables.

When I was done with that, the crash was gone.

Not sure if the same applies for your project; but maybe worth checking.

HTH, Wolfgang