hi..
I have a problem when compiling the program
created in VB6, an error message suddenly appears

visual basic has stopped working

the condition of the laptop that I use with 4GB memory specifications
does this correlate directly while executing the process
compile, while if I compile the program with
VB6 installed on windows 7 32bit no problem or
the visual basic has stopped working error doesn't happen

thanks for the enlightenment

It's hard to offer a solution when you haven't described the problem other than "stopped working". What has changed since it "was working"?

hi @Reverend Jim

But why is it that when I compile the source program via the package deployment wizard it can run smoothly until it produces an exe file

Best regards,

My take is that with security updates to the Windows OS, even W7 and the age of VB6 all bets are off that an app made with VB6 is a roll of the dice.

I know as we continued support and fixes on our old VB6 apps till the clients felt it was getting too expensive to maintain which was the truth.

We found ourselves reaching the limits of what we could fix and are glad we could call an end to the VB6 apps.

rproffitt hits the nail on the head. You must have updated your windows updates and an updated file somewhere is blocking the age old usage of VB6.

You will probably have to re-register your DLL, OCX etc files for it to work again or move back to a previous windows update version.

commented: Are you sure that if Windows 10 has been updated, automatically recompiling the program via Visual Basic 6 will definitely work?? +4

It turns out that the compilation problem in vb6 can be solved as long as it is in windows 10 Professional version 22H2 (OS Build 19045.3208)
Therefore, the computer should not always be connected to the internet, because Win 10 is always updated automatically and this can affect because what was still supported suddenly may no longer be supported

What you need to know is that with 4 GB of memory on the above version of win 10 it can still run well, and I managed to make the package deployment wizard

Thank you for the response from all of you, warm greetings from me

you should be able to troubleshoot and potentially resolve the issue with compiling VB6 programs on your Windows 10 system. If the problem persists, consider using a more modern development environment or running VB6 on a more compatible operating system.

commented: I've tested it by compiling a fairly complex VB6 program with 400 modules, and all the functions are working fine +4

Try running VB6 in compatibility mode for Windows 7 and ensure all necessary dependencies are installed on your Windows 10 Home system.

commented: The advice you gave can work well in Win 10 Professional version 22H2 (OS Build 19045.3208) Thank you @JamesTechUSA for your attention +4

You might be able to run it for now but at some point in future, Big Tech's surveillance capitalism model will ensure that Visual Studio 6.0 will eventually stop working on modern Windows versions.
The sane choice here is switching to an open source desktop development framework such as PySide/PyQt, Java Swing or Free Pascal (Lazarus IDE). Especially Free Pascal (a dialect of Delphi) is quite reminiscent of Visual Basic and should be quite easy to transition from VB6 with little effort.

hi @pyeri
is there a tool to convert from vb6 to Free Pascal (a dialect of Delphi)

Thank you for the enlightenment

@fx.eko I don't think it will be as trivial as just putting your VB6 forms and modules into a converter and getting the resulting FPC source files. Free Pascal is a whole different programming language. Comparable to C/C++ but somewhat elegant in syntax and relatively safer due to lack of pointer arithmetic.

Threads like these will help you to migrate your projects, folks who have migrated apps from VB to Free Pascal often share their experiences on these forums. And even though migration might take some initial time and effort, it is very much advisable especially in light of direction that Microsoft Desktop technologies like Windows OS are taking.

And remember, Free Pascal isn't the only option, there are dozen others like Swing, Tkinter, PySide/PyQt, etc. The advantage of FOSS is that even if you switch to a Linux or MacOS desktop tomorrow, your application and code would still remain portable and thus you will future-proof yourself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.