Why do I get an internal stack overflow error when minimizing and restoring an MS-DOS virtual machine window?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am using Windows Virtual PC on a Windows 7 machine. I have created an MS-DOS 6.22 virtual machine with 16 MB RAM and a 2 GB hard disk. Whenever I minimize or otherwise deactivate the window, and then restore or reactivate it, I get an error message, the PC speaker beeps for a second, and the virtual machine completely stops working until I forcefully reboot it:



Internal stack overflow
System halted


(Interestingly, the problem does not occur when I am running Windows 3.1, which runs on top of MS-DOS. I get the error immediately when I try to exit to MS-DOS from Windows.)



I also got a similar error when I tried to install Windows 9x-based operating systems during the first (text-based) phase of installation and performing the same actions, and when attempting to boot such an OS (in this case, Windows 98) into real-mode MS-DOS mode (though in that case I get the error immediately and do not have to perform the actions above to get it):



An internal stack overflow has caused this session to be halted.
Check the STACKS setting in your CONFIG.SYS file, and then try again.


Why does this error occur, and is there any way to fix it?










share|improve this question




















  • 1





    I'm guessing it doesn't like being minimized. The action results in an exception/trap and that goes recursive.

    – Daniel R Hicks
    Dec 24 '13 at 5:08











  • @DanielRHicks That seems like a plausible cause. But why would an exception be thrown when I reactivate the window? And why does it not occur when I am running a Windows 9x-based operating system in standard (GUI) mode?

    – gparyani
    Dec 24 '13 at 5:56








  • 1





    No VM perfectly reproduces the real machine. Apparently yours is less perfect than most. May be a problem with a VM setting.

    – Daniel R Hicks
    Dec 24 '13 at 12:38






  • 1





    (Apparently something is preventing the guest OS from correctly handling interrupts/traps, such that when it gets one it takes another interrupt handling the first. It's likely that what happens is that the guest attempts to modify some state that it's not authorized to modify. But it's impossible to get much more precise than that.)

    – Daniel R Hicks
    Dec 24 '13 at 18:10




















0















I am using Windows Virtual PC on a Windows 7 machine. I have created an MS-DOS 6.22 virtual machine with 16 MB RAM and a 2 GB hard disk. Whenever I minimize or otherwise deactivate the window, and then restore or reactivate it, I get an error message, the PC speaker beeps for a second, and the virtual machine completely stops working until I forcefully reboot it:



Internal stack overflow
System halted


(Interestingly, the problem does not occur when I am running Windows 3.1, which runs on top of MS-DOS. I get the error immediately when I try to exit to MS-DOS from Windows.)



I also got a similar error when I tried to install Windows 9x-based operating systems during the first (text-based) phase of installation and performing the same actions, and when attempting to boot such an OS (in this case, Windows 98) into real-mode MS-DOS mode (though in that case I get the error immediately and do not have to perform the actions above to get it):



An internal stack overflow has caused this session to be halted.
Check the STACKS setting in your CONFIG.SYS file, and then try again.


Why does this error occur, and is there any way to fix it?










share|improve this question




















  • 1





    I'm guessing it doesn't like being minimized. The action results in an exception/trap and that goes recursive.

    – Daniel R Hicks
    Dec 24 '13 at 5:08











  • @DanielRHicks That seems like a plausible cause. But why would an exception be thrown when I reactivate the window? And why does it not occur when I am running a Windows 9x-based operating system in standard (GUI) mode?

    – gparyani
    Dec 24 '13 at 5:56








  • 1





    No VM perfectly reproduces the real machine. Apparently yours is less perfect than most. May be a problem with a VM setting.

    – Daniel R Hicks
    Dec 24 '13 at 12:38






  • 1





    (Apparently something is preventing the guest OS from correctly handling interrupts/traps, such that when it gets one it takes another interrupt handling the first. It's likely that what happens is that the guest attempts to modify some state that it's not authorized to modify. But it's impossible to get much more precise than that.)

    – Daniel R Hicks
    Dec 24 '13 at 18:10
















0












0








0








I am using Windows Virtual PC on a Windows 7 machine. I have created an MS-DOS 6.22 virtual machine with 16 MB RAM and a 2 GB hard disk. Whenever I minimize or otherwise deactivate the window, and then restore or reactivate it, I get an error message, the PC speaker beeps for a second, and the virtual machine completely stops working until I forcefully reboot it:



Internal stack overflow
System halted


(Interestingly, the problem does not occur when I am running Windows 3.1, which runs on top of MS-DOS. I get the error immediately when I try to exit to MS-DOS from Windows.)



I also got a similar error when I tried to install Windows 9x-based operating systems during the first (text-based) phase of installation and performing the same actions, and when attempting to boot such an OS (in this case, Windows 98) into real-mode MS-DOS mode (though in that case I get the error immediately and do not have to perform the actions above to get it):



An internal stack overflow has caused this session to be halted.
Check the STACKS setting in your CONFIG.SYS file, and then try again.


Why does this error occur, and is there any way to fix it?










share|improve this question
















I am using Windows Virtual PC on a Windows 7 machine. I have created an MS-DOS 6.22 virtual machine with 16 MB RAM and a 2 GB hard disk. Whenever I minimize or otherwise deactivate the window, and then restore or reactivate it, I get an error message, the PC speaker beeps for a second, and the virtual machine completely stops working until I forcefully reboot it:



Internal stack overflow
System halted


(Interestingly, the problem does not occur when I am running Windows 3.1, which runs on top of MS-DOS. I get the error immediately when I try to exit to MS-DOS from Windows.)



I also got a similar error when I tried to install Windows 9x-based operating systems during the first (text-based) phase of installation and performing the same actions, and when attempting to boot such an OS (in this case, Windows 98) into real-mode MS-DOS mode (though in that case I get the error immediately and do not have to perform the actions above to get it):



An internal stack overflow has caused this session to be halted.
Check the STACKS setting in your CONFIG.SYS file, and then try again.


Why does this error occur, and is there any way to fix it?







windows-7 microsoft-virtual-pc window ms-dos stack






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 6 '14 at 19:02







gparyani

















asked Dec 24 '13 at 4:44









gparyanigparyani

1,31272141




1,31272141








  • 1





    I'm guessing it doesn't like being minimized. The action results in an exception/trap and that goes recursive.

    – Daniel R Hicks
    Dec 24 '13 at 5:08











  • @DanielRHicks That seems like a plausible cause. But why would an exception be thrown when I reactivate the window? And why does it not occur when I am running a Windows 9x-based operating system in standard (GUI) mode?

    – gparyani
    Dec 24 '13 at 5:56








  • 1





    No VM perfectly reproduces the real machine. Apparently yours is less perfect than most. May be a problem with a VM setting.

    – Daniel R Hicks
    Dec 24 '13 at 12:38






  • 1





    (Apparently something is preventing the guest OS from correctly handling interrupts/traps, such that when it gets one it takes another interrupt handling the first. It's likely that what happens is that the guest attempts to modify some state that it's not authorized to modify. But it's impossible to get much more precise than that.)

    – Daniel R Hicks
    Dec 24 '13 at 18:10
















  • 1





    I'm guessing it doesn't like being minimized. The action results in an exception/trap and that goes recursive.

    – Daniel R Hicks
    Dec 24 '13 at 5:08











  • @DanielRHicks That seems like a plausible cause. But why would an exception be thrown when I reactivate the window? And why does it not occur when I am running a Windows 9x-based operating system in standard (GUI) mode?

    – gparyani
    Dec 24 '13 at 5:56








  • 1





    No VM perfectly reproduces the real machine. Apparently yours is less perfect than most. May be a problem with a VM setting.

    – Daniel R Hicks
    Dec 24 '13 at 12:38






  • 1





    (Apparently something is preventing the guest OS from correctly handling interrupts/traps, such that when it gets one it takes another interrupt handling the first. It's likely that what happens is that the guest attempts to modify some state that it's not authorized to modify. But it's impossible to get much more precise than that.)

    – Daniel R Hicks
    Dec 24 '13 at 18:10










1




1





I'm guessing it doesn't like being minimized. The action results in an exception/trap and that goes recursive.

– Daniel R Hicks
Dec 24 '13 at 5:08





I'm guessing it doesn't like being minimized. The action results in an exception/trap and that goes recursive.

– Daniel R Hicks
Dec 24 '13 at 5:08













@DanielRHicks That seems like a plausible cause. But why would an exception be thrown when I reactivate the window? And why does it not occur when I am running a Windows 9x-based operating system in standard (GUI) mode?

– gparyani
Dec 24 '13 at 5:56







@DanielRHicks That seems like a plausible cause. But why would an exception be thrown when I reactivate the window? And why does it not occur when I am running a Windows 9x-based operating system in standard (GUI) mode?

– gparyani
Dec 24 '13 at 5:56






1




1





No VM perfectly reproduces the real machine. Apparently yours is less perfect than most. May be a problem with a VM setting.

– Daniel R Hicks
Dec 24 '13 at 12:38





No VM perfectly reproduces the real machine. Apparently yours is less perfect than most. May be a problem with a VM setting.

– Daniel R Hicks
Dec 24 '13 at 12:38




1




1





(Apparently something is preventing the guest OS from correctly handling interrupts/traps, such that when it gets one it takes another interrupt handling the first. It's likely that what happens is that the guest attempts to modify some state that it's not authorized to modify. But it's impossible to get much more precise than that.)

– Daniel R Hicks
Dec 24 '13 at 18:10







(Apparently something is preventing the guest OS from correctly handling interrupts/traps, such that when it gets one it takes another interrupt handling the first. It's likely that what happens is that the guest attempts to modify some state that it's not authorized to modify. But it's impossible to get much more precise than that.)

– Daniel R Hicks
Dec 24 '13 at 18:10












1 Answer
1






active

oldest

votes


















0














Very weird that changing the size of a window would affect a virtual machine.



Do you have the latest version of Virtual PC for your OS? If not, is your BIOS have Virtualization enabled?



Windows is known to replace part of DOS; it's not too surprising that Windows might fix something that is broken in DOS. Still, I'd be wary about the stability of any Windows 9x installation that is on top of a machine (even a virtual one) that can't run DOS well.



For info about the STACKS command, see the CONFIG.TXT that comes with Windows 98. (Yes, I spelled that filename correctly.) I'm also wondering if FSCB (File system control blocks) may be another CONFIG.SYS command that is relevant?



It would be interesting to see if other DOS's have this problem. Does FreeDOS work better?



You could also try a different emulator. (e.g., Qemu is open source. VirtualBox might be an option too.)



It seems you're not the only one who has encountered this: Win98 install issue (which shows some sample CONFIG.SYS lines to try), Windows 95 issues with virtualizing (which mentions that having too fast of a processor is known to cause problems).






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f692480%2fwhy-do-i-get-an-internal-stack-overflow-error-when-minimizing-and-restoring-an-m%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Very weird that changing the size of a window would affect a virtual machine.



    Do you have the latest version of Virtual PC for your OS? If not, is your BIOS have Virtualization enabled?



    Windows is known to replace part of DOS; it's not too surprising that Windows might fix something that is broken in DOS. Still, I'd be wary about the stability of any Windows 9x installation that is on top of a machine (even a virtual one) that can't run DOS well.



    For info about the STACKS command, see the CONFIG.TXT that comes with Windows 98. (Yes, I spelled that filename correctly.) I'm also wondering if FSCB (File system control blocks) may be another CONFIG.SYS command that is relevant?



    It would be interesting to see if other DOS's have this problem. Does FreeDOS work better?



    You could also try a different emulator. (e.g., Qemu is open source. VirtualBox might be an option too.)



    It seems you're not the only one who has encountered this: Win98 install issue (which shows some sample CONFIG.SYS lines to try), Windows 95 issues with virtualizing (which mentions that having too fast of a processor is known to cause problems).






    share|improve this answer




























      0














      Very weird that changing the size of a window would affect a virtual machine.



      Do you have the latest version of Virtual PC for your OS? If not, is your BIOS have Virtualization enabled?



      Windows is known to replace part of DOS; it's not too surprising that Windows might fix something that is broken in DOS. Still, I'd be wary about the stability of any Windows 9x installation that is on top of a machine (even a virtual one) that can't run DOS well.



      For info about the STACKS command, see the CONFIG.TXT that comes with Windows 98. (Yes, I spelled that filename correctly.) I'm also wondering if FSCB (File system control blocks) may be another CONFIG.SYS command that is relevant?



      It would be interesting to see if other DOS's have this problem. Does FreeDOS work better?



      You could also try a different emulator. (e.g., Qemu is open source. VirtualBox might be an option too.)



      It seems you're not the only one who has encountered this: Win98 install issue (which shows some sample CONFIG.SYS lines to try), Windows 95 issues with virtualizing (which mentions that having too fast of a processor is known to cause problems).






      share|improve this answer


























        0












        0








        0







        Very weird that changing the size of a window would affect a virtual machine.



        Do you have the latest version of Virtual PC for your OS? If not, is your BIOS have Virtualization enabled?



        Windows is known to replace part of DOS; it's not too surprising that Windows might fix something that is broken in DOS. Still, I'd be wary about the stability of any Windows 9x installation that is on top of a machine (even a virtual one) that can't run DOS well.



        For info about the STACKS command, see the CONFIG.TXT that comes with Windows 98. (Yes, I spelled that filename correctly.) I'm also wondering if FSCB (File system control blocks) may be another CONFIG.SYS command that is relevant?



        It would be interesting to see if other DOS's have this problem. Does FreeDOS work better?



        You could also try a different emulator. (e.g., Qemu is open source. VirtualBox might be an option too.)



        It seems you're not the only one who has encountered this: Win98 install issue (which shows some sample CONFIG.SYS lines to try), Windows 95 issues with virtualizing (which mentions that having too fast of a processor is known to cause problems).






        share|improve this answer













        Very weird that changing the size of a window would affect a virtual machine.



        Do you have the latest version of Virtual PC for your OS? If not, is your BIOS have Virtualization enabled?



        Windows is known to replace part of DOS; it's not too surprising that Windows might fix something that is broken in DOS. Still, I'd be wary about the stability of any Windows 9x installation that is on top of a machine (even a virtual one) that can't run DOS well.



        For info about the STACKS command, see the CONFIG.TXT that comes with Windows 98. (Yes, I spelled that filename correctly.) I'm also wondering if FSCB (File system control blocks) may be another CONFIG.SYS command that is relevant?



        It would be interesting to see if other DOS's have this problem. Does FreeDOS work better?



        You could also try a different emulator. (e.g., Qemu is open source. VirtualBox might be an option too.)



        It seems you're not the only one who has encountered this: Win98 install issue (which shows some sample CONFIG.SYS lines to try), Windows 95 issues with virtualizing (which mentions that having too fast of a processor is known to cause problems).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 6 '15 at 7:32









        TOOGAMTOOGAM

        11.6k32646




        11.6k32646






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f692480%2fwhy-do-i-get-an-internal-stack-overflow-error-when-minimizing-and-restoring-an-m%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How do I know what Microsoft account the skydrive app is syncing to?

            When does type information flow backwards in C++?

            Grease: Live!