Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!SWANGER%AUDUCVAX.BITNET@CUNYVM.CUNY.EDU From: SWANGER%AUDUCVAX.BITNET@CUNYVM.CUNY.EDU Newsgroups: comp.lang.c Subject: MSC STACK OVERFLOW Message-ID: <12416@brl-adm.ARPA> Date: 15 Mar 88 19:55:52 GMT Sender: news@brl-adm.ARPA Lines: 27 I am using MSC 5.0 to write a software package for my IBM PC clone. I am having problems with stack overflow. I've tried enlarging the stack with the /ST flag, but I'm approaching the 64k stack limit. My code is only about 500 lines or so, but when I get about three functions deep, the program dies with a stack overflow message. I'm using the large memory model, all of my arrays are dynamically allocated with calloc, I'm using a lot of integer variables (but not that many), and I'm using a lot of functions from the screen formatting package Vitamin C. Does anyone have any suggestions how I can get around this problem? Is there a way to increase the stack size past 64k, or is this an Intel curse? Is any data being put on the stack that could be put on the heap? I would appreciate any help anyone could give me. --------------------------- JCL - The Big Lie ---------------------------------- David Swanger Academic Computing Services 200 L Building Auburn University, AL 36849 Telephone: 205-826-4813 |-----------------------------------------| | | SWANGER@AUDUCVAX (BITNET address) | My opinions are my own ... etc. | | | --------------------------------------------------------------------------------