visual basic has stopped working on windows 10 home version

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