This project is read-only.

Error When Compiling Large VB6 Project

Apr 27, 2011 at 9:15 AM
Edited Apr 27, 2011 at 9:20 AM


We have a large vb6 project. If i build it using vb6 ide, it produces a 18 MB size of exe file. İf i build it using extension pack, after a period of time msbuild gives the error:


D:\>msbuild Bankacilik.proj
Microsoft (R) Build Engine Version 2.0.50727.3053
[Microsoft .NET Framework, Version 2.0.50727.3615]
Copyright (C) Microsoft Corporation 2005. All rights reserved.

Build started 27/04/2011 10:20:32.
Project "D:\Bankacilik.proj" (default targets):

Target Default:
    Building Projects Collection: 1 projects
    START - Changing Properties VBP
    RevisionVer -> New value: 4
    CompatibleMode -> New value: "0"
    END - Changing Properties VBP
    Running C:\Program Files\Microsoft Visual Studio\VB98\VB6.exe /MAKE /OUT "D:
\TFS\Main\Sources\Bankacilik\Bankacilik.vbp.log" "D:\TFS\Main\Sources\Bankacilik\Bankacilik.vbp" /outdir "d:\output"
    D:\Bankacilik.proj(12,5): error : Non-zero exit code from VB6.exe: -10737418
    D:\Bankacilik.proj(12,5): error :
    BuildVB6 Task Execution Completed [10:04:43]
Done building target "Default" in project "Bankacilik.proj" -- FAILED.

Done building project "Bankacilik.proj" -- FAILED.

D:\Bankacilik.proj(12,5): error : Non-zero exit code from VB6.exe: -1073741819
D:\Bankacilik.proj(12,5): error :
    0 Warning(s)
    2 Error(s)

Time Elapsed 00:02:10.38


How can we solve that strange problem?

May 21, 2011 at 8:04 PM

Did you ever resolve this?


May 21, 2011 at 11:12 PM
Edited May 22, 2011 at 2:19 PM

We didn't find any solution. Also our MS consultant gave a negative response. We have no idea about this error.

May 22, 2011 at 5:24 PM


May 22, 2011 at 6:16 PM

Thanks for your help but MS Consultant already gave it. It didn't help. It seems we have nothing to do.

May 24, 2011 at 4:35 PM

Have same situation.

Am building a set of dlls in a batch using msbuild. and recently it has started throwing Non zero errors.

I can kick off the build successfully using the code displayed when you run msbuild. e.g. 

"C:\Program Files\Microsoft Visual Studio\VB98\VB6.exe" /MAKE /OUT "C:\build_APPMAX.vbp.log" "C:\build_APPMAX.vbp" /outdir "C:\Release" (exact code changed to protect the innocent...)

and after running it in msbuild, I get the error but strangely I then need to regenerate the binary compatible version before it will recompile manually....

Struggling to see pattern. will rewrite the proj file to use VB calls throughout and see if that helps...