c++.dos.16-bits - stack overflow - server2.c
I got a stack overflow at run time, see attached program is there any compiler stack parameter I can use to fix that? Benoit begin 0644 server2.c M+RH-"B`J('-E<G9E<BYC("TM(&$ <W1R96%M('-O8VME="!S97)V97( 9&5M M+RH :70 :6YC;'5D92`H<W1R:6YG+F L('-T9&QI8BP <W1D:6\N:"D *B\- M"B-I;F-L=61E(#QM96UO<GDN:#X-"B-I;F-L=61E(#QS=')I;F<N:#X-"BHO M(VEN8VQU9&4 /'-Y<R]S;V-K970N:#X-"B-I;F-L=61E(#QS>7,O=V%I="YH M92!-65!/4E0 ,S0Y,"` ("`O*B!T:&4 <&]R="!U<V5R<R!W:6QL(&)E(&-O M(&UA;GD <&5N9&EN9R!C;VYN96-T:6]N<R!Q=65U92!W:6QL(&AO;&0 *B\- M,38I(#T M.B`P*3L-"B!F6S==(#T *"AC("8 ,3(X*2`]/2`Q,C /R`R-34 .B`P*3L- M;F< 8RD >R`O*B!F(&ES(&9;.%T *B\-"B!F:6QL*"9F6S!=+&, )B`R-34I M.PT*(&9I;&PH)F9;.%TL*&, )B`H,C4U(#P M*"9F6S$V72PH8R`F(" R-34 /#P M-%TL*&, )B`H,C4U(#P M<B!C;G1;,C4V73L +RH 0V]N=F5R="!.96%R('1O(&]R(&)I="!C;W5N=&5R M('5N<VEG;F5D(&-H87( 9ELX73L-"B` 9F]R("AI/3`[(&D\,C4V.VDK*RD M='DH=6YS:6=N960 8VAA<B`J9BD >R`O*B!F(&ES(&9;.%T *B\-"B!R971U M<FX *&-N=%MF6S!=72!\("AC;G1;9ELQ75T /#P ,2D ?"`H8VYT6V9;,EU= M(#P M/"`T*2!\("AC;G1;9ELU75T /#P -2D ?"`H8VYT6V9;-EU=(#P M*&-N=%MF6S==72`\/"`W*2`I.PT*?0T*=6YS:6=N960 ;&]N9R!E;7!T>3,R M*'5N<VEG;F5D(&-H87( *F8I('L +RH 9B!I<R!F6S,R72`J+PT*(')E='5R M;B`H*'5N<VEG;F5D(&QO;F<I96UP='DH)F9;,%TI('P *"AU;G-I9VYE9"!L M;7!T>2 F9ELQ-ETI(#P M9ELR-%TI(#P M87A!;&QO8RAU;G-I9VYE9"!L;VYG(&UA>"D >PT*:VEL;R`J:SU.54Q,+"IT M(#T *&MI;&\ *BEM86QL;V,H<VEZ96]F*&MI;&\I*2D (3T 3E5,3"D >PT* M>F5O9BAK:6QO*2DI("$]($Y53$PI('L-"B` ("` ("` ="T^;F5X="`](&L[ M("` ("` 9G!R:6YT9BAF<"P (B5L=2(L(&DI.PT*("` ("` ("!F8VQO<V4H M("AI;G0 7U]F9"P 8VAA<B`J7U]B=68L('-I>F5?="!?7VXL(&EN="!?7V9L M(#T <F5C=BA?7V9D+"!?7V)U9BP 7U]N+"`P*2D /3T +3$I('L-"B` ("` M<&5R<F]R(" B<F5C=B(I.PT*("` ("!R971U<FX *"TQ*3L-"B` ?0T*("!E M;'-E(&EF("AN=6UB>71E<R`\(%]?;BD >PT*("` ("` ("` (')E;2`](%]? M("` ("` ("` ("` ("!I9B`H*&YU;6)Y=&5S(#T <F5C=BA?7V9D+"9?7V)U M9EM?7VXM<F5M72QR96TL,"DI(#T M*"TQ*3L-"B` ("` ("` ("` ("` ('T-"B` ("` ("` ("` ("` (')E;2`M M;CL-"GT-" T*:6YT(&UA:6X *&EN="!A<F=C+"!C:&%R("HJ87)G=BD-"GL- M"B` <W1R=6-T('-O8VMA9&1R7VEN(&UY7V%D9'([("` ("\J(&UY(&%D9')E M<W, :6YF;W)M871I;VX *B\-"B` <W1R=6-T('-O8VMA9&1R7VEN('1H96ER M7V%D9'([("\J(&-O;FYE8W1O<B=S(&%D9')E<W, :6YF;W)M871I;VX *B\- M"B` :6YT("` ('-O8VMF9"P ;F5W7V9D.R` +RH ;&ES=&5N(&]N('-O8VM? M9F0L(&YE=R!C;VYN96-T:6]N(&]N(&YE=U]F9"`J+PT*("!I;G0 ("` <VEN M=6UB>71E<RP 9G`R.PT*("!U;G-I9VYE9"!L;VYG(&-O9&4S,BP :3L-"B` M=&QV/$YE=7(^("IP;FQV.PT*("!T3F5T/$YE=7(^(&YE=#L-" T*("!U;G-I M9B`H*'-O8VMF9"`]('-O8VME="A!1E])3D54+"!33T-+7U-44D5!32P ,"DI M(#T M<VEN7W!O<G0 /2!H=&]N<RA-65!/4E0I.R` ("` +RH <VAO<G0L(&YE='=O M<FL 8GET92!O<F1E<B`J+PT*("!M>5]A9&1R+G-I;E]A9&1R+G-?861D<B`] M($E.041$4E]!3ED[("\J(&%U=&]M871I8V%L;'D 9FEL;"!W:71H(&UY($E0 M;F0H<V]C:V9D+"`H<W1R=6-T('-O8VMA9&1R("HI)FUY7V%D9'(L('-I>F5O M9BAS=')U8W0 <V]C:V%D9'(I*2`]/2`M,2D-"B` >PT*("` ('!E<G)O<B`H M;BAS;V-K9F0L($)!0TM,3T<I(#T M(#T <VEZ96]F("AS=')U8W0 <V]C:V%D9')?:6XI.PT*("!W:&EL92 Q*2` M8V5P="`H<V]C:V9D+"AS=')U8W0 <V]C:V%D9'(J*29T:&5I<E]A9&1R+"AS M;V-K;&5N7W0 *BDF<VEN7W-I>F4I.PT*("` (&EF("AN97=?9F0 /3T +3$I M;G1F(" B<V5R=F5R.B!G;W0 8V]N;F5C=&EO;B!F<F]M("5S7&XB+&EN971? M<V5R=F5R.B!G;W0 8V]N;F5C=&EO;BX 4V5N9&EN9R!I;F9O+BXN7&XB*3L- M"B` ("`-"B` ("!I9B`H<V5N9"AN97=?9F0L(&%R9W9;,5TL('-T<FQE;BAA M"B` ("!I9B`H*&YU;6)Y=&5S(#T <F5C=BAN97=?9F0L("AC:&%R("HI9BP M."P ,"DI(#T M("` ("\J($]N($1E=&5R;6EN92!I8VD ;&4 ;6%X:6UU;2!D92!M96UO:7)E M(&-E='1E('9A;&5U<B!A=2!C;&EE;G0 <75I(&PG82!D96UA;F1E+B`J+PT* M("` ("` ("!I/4UA>$%L;&]C*&%T;VPH87)G=ELQ72DI.PT*("` ("` ("!F M:6QL,S(H9BQI*3L-"B` ("` ("` :68 *'-E;F0H;F5W7V9D+"`H8VAA<B`J M3U(H*3L-"B\O("` ("` ("!N970N26YI=&EA;$)U:6QD*&%T;VPH87)G=ELQ M72DL3E5,3"PB>&]R+F%S8R(I.PT*("` ("` ("!B<F5A:SL-"B` ("!C87-E M("!G9R`](&YE="Y.8D=R<#L-"B` ("` ("` ;6T /2!N970N2&5A9$QV0V]U M;G0H*3L-"B` ("` ("` 8V, /2!N970N5&%I;$QV0V]U;G0H*3L-"B` ("` M;F0H;F5W7V9D+"!F+"`X+"`P*2`]/2`M,2D-"B` ("` ("` ("!P97)R;W( M9"P *&-H87( *BEF+"`X+"`P*2D /3T +3$I('L-"B` ("` ("` ("!P97)R M("` ?0T*("` ("` ("!E;'-E(&EF("AN=6UB>71E<R`A/2`X*0T*("` ("` M("` ("` ("` <&5R<F]R*")N=6UB>71E<R!E<G)O<B$B*3L-" T*("` ("` M("!C;V1E(#T M*&YE=U]F9"P *&-H87( *BEF+"`S,BP ,"DI(#T M("` <&5R<F]R(" B<F5C=B(I.PT*("` ("` ("` ('-H=71D;W=N*'-O8VMF M9"P ,BD[(&-L;W-E("AS;V-K9F0I.PT*("` ("` ("` (')E='5R;B`H,2D[ M" T*("` ("` ("!C;V1E,S( /2!E;7!T>3,R*&8I.PT*("` ("` ("!P<FEN M96XH(G1M<&9I;&4B+"`B=V(B*3L *B\-"B` ("` ("` 9G`R(#T ;W!E;B B M=&UP9FEL92(L($]?0U)%051\3U]74D].3%E\3U]"24Y!4EE\3U]44E5.0RD[ M("` (&EF("A296-6*&YE=U]F9"P *&-H87( *BEF+"`X+"`P*2`]/2`M,2D M>PT*("` ("` ("` ("` ("` ('!E<G)O<B`H(G)E8W8B*3L-"B` ("` ("` M*&YE=U]F9"P ,BD[(&-L;W-E("AN97=?9F0I.PT*("` ("` ("` ("` ("` M('-H=71D;W=N*'-O8VMF9"P ,BD[(&-L;W-E("AS;V-K9F0I.PT*("` ("` M("` ("` ("` (')E='5R;B`H+3$I.PT*("` ("` ("` ("` ('T-"B` ("` M("` ("` ("!C;V1E(#T M("` ("` (&-L;W-E("AN97=?9F0I.PT*("` ("` ("!S:'5T9&]W;BAS;V-K ` end
Nov 25 2004
A newlly version of wattcp resolved the stack error. Corrently, wattcp is now well working with digital mars. Benoit In article <co4gpc$20p9$1 digitaldaemon.com>, trembb22 says...I got a stack overflow at run time, see attached program is there any compiler stack parameter I can use to fix that? Benoit begin 0644 server2.c M+RH-"B`J('-E<G9E<BYC("TM(&$ <W1R96%M('-O8VME="!S97)V97( 9&5M M+RH :70 :6YC;'5D92`H<W1R:6YG+F L('-T9&QI8BP <W1D:6\N:"D *B\- M"B-I;F-L=61E(#QM96UO<GDN:#X-"B-I;F-L=61E(#QS=')I;F<N:#X-"BHO M(VEN8VQU9&4 /'-Y<R]S;V-K970N:#X-"B-I;F-L=61E(#QS>7,O=V%I="YH M92!-65!/4E0 ,S0Y,"` ("`O*B!T:&4 <&]R="!U<V5R<R!W:6QL(&)E(&-O M(&UA;GD <&5N9&EN9R!C;VYN96-T:6]N<R!Q=65U92!W:6QL(&AO;&0 *B\- M,38I(#T M.B`P*3L-"B!F6S==(#T *"AC("8 ,3(X*2`]/2`Q,C /R`R-34 .B`P*3L- M;F< 8RD >R`O*B!F(&ES(&9;.%T *B\-"B!F:6QL*"9F6S!=+&, )B`R-34I M.PT*(&9I;&PH)F9;.%TL*&, )B`H,C4U(#P M*"9F6S$V72PH8R`F(" R-34 /#P M-%TL*&, )B`H,C4U(#P M<B!C;G1;,C4V73L +RH 0V]N=F5R="!.96%R('1O(&]R(&)I="!C;W5N=&5R M('5N<VEG;F5D(&-H87( 9ELX73L-"B` 9F]R("AI/3`[(&D\,C4V.VDK*RD M='DH=6YS:6=N960 8VAA<B`J9BD >R`O*B!F(&ES(&9;.%T *B\-"B!R971U M<FX *&-N=%MF6S!=72!\("AC;G1;9ELQ75T /#P ,2D ?"`H8VYT6V9;,EU= M(#P M/"`T*2!\("AC;G1;9ELU75T /#P -2D ?"`H8VYT6V9;-EU=(#P M*&-N=%MF6S==72`\/"`W*2`I.PT*?0T*=6YS:6=N960 ;&]N9R!E;7!T>3,R M*'5N<VEG;F5D(&-H87( *F8I('L +RH 9B!I<R!F6S,R72`J+PT*(')E='5R M;B`H*'5N<VEG;F5D(&QO;F<I96UP='DH)F9;,%TI('P *"AU;G-I9VYE9"!L M;7!T>2 F9ELQ-ETI(#P M9ELR-%TI(#P M87A!;&QO8RAU;G-I9VYE9"!L;VYG(&UA>"D >PT*:VEL;R`J:SU.54Q,+"IT M(#T *&MI;&\ *BEM86QL;V,H<VEZ96]F*&MI;&\I*2D (3T 3E5,3"D >PT* M>F5O9BAK:6QO*2DI("$]($Y53$PI('L-"B` ("` ("` ="T^;F5X="`](&L[ M("` ("` 9G!R:6YT9BAF<"P (B5L=2(L(&DI.PT*("` ("` ("!F8VQO<V4H M("AI;G0 7U]F9"P 8VAA<B`J7U]B=68L('-I>F5?="!?7VXL(&EN="!?7V9L M(#T <F5C=BA?7V9D+"!?7V)U9BP 7U]N+"`P*2D /3T +3$I('L-"B` ("` M<&5R<F]R(" B<F5C=B(I.PT*("` ("!R971U<FX *"TQ*3L-"B` ?0T*("!E M;'-E(&EF("AN=6UB>71E<R`\(%]?;BD >PT*("` ("` ("` (')E;2`](%]? M("` ("` ("` ("` ("!I9B`H*&YU;6)Y=&5S(#T <F5C=BA?7V9D+"9?7V)U M9EM?7VXM<F5M72QR96TL,"DI(#T M*"TQ*3L-"B` ("` ("` ("` ("` ('T-"B` ("` ("` ("` ("` (')E;2`M M;CL-"GT-" T*:6YT(&UA:6X *&EN="!A<F=C+"!C:&%R("HJ87)G=BD-"GL- M"B` <W1R=6-T('-O8VMA9&1R7VEN(&UY7V%D9'([("` ("\J(&UY(&%D9')E M<W, :6YF;W)M871I;VX *B\-"B` <W1R=6-T('-O8VMA9&1R7VEN('1H96ER M7V%D9'([("\J(&-O;FYE8W1O<B=S(&%D9')E<W, :6YF;W)M871I;VX *B\- M"B` :6YT("` ('-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;6%X:6UU;2!D92!M96UO:7)E M(&-E='1E('9A;&5U<B!A=2!C;&EE;G0 <75I(&PG82!D96UA;F1E+B`J+PT* M("` ("` ("!I/4UA>$%L;&]C*&%T;VPH87)G=ELQ72DI.PT*("` ("` ("!F M:6QL,S(H9BQI*3L-"B` ("` ("` :68 *'-E;F0H;F5W7V9D+"`H8VAA<B`J M3U(H*3L-"B\O("` ("` ("!N970N26YI=&EA;$)U:6QD*&%T;VPH87)G=ELQ M72DL3E5,3"PB>&]R+F%S8R(I.PT*("` ("` ("!B<F5A:SL-"B` ("!C87-E M("!G9R`](&YE="Y.8D=R<#L-"B` ("` ("` ;6T /2!N970N2&5A9$QV0V]U M;G0H*3L-"B` ("` ("` 8V, /2!N970N5&%I;$QV0V]U;G0H*3L-"B` ("` M;F0H;F5W7V9D+"!F+"`X+"`P*2`]/2`M,2D-"B` ("` ("` ("!P97)R;W( M9"P *&-H87( *BEF+"`X+"`P*2D /3T +3$I('L-"B` ("` ("` ("!P97)R M("` ?0T*("` ("` ("!E;'-E(&EF("AN=6UB>71E<R`A/2`X*0T*("` ("` M("` ("` ("` <&5R<F]R*")N=6UB>71E<R!E<G)O<B$B*3L-" T*("` ("` M("!C;V1E(#T M*&YE=U]F9"P *&-H87( *BEF+"`S,BP ,"DI(#T M("` <&5R<F]R(" B<F5C=B(I.PT*("` ("` ("` ('-H=71D;W=N*'-O8VMF M9"P ,BD[(&-L;W-E("AS;V-K9F0I.PT*("` ("` ("` (')E='5R;B`H,2D[ M" T*("` ("` ("!C;V1E,S( /2!E;7!T>3,R*&8I.PT*("` ("` ("!P<FEN M96XH(G1M<&9I;&4B+"`B=V(B*3L *B\-"B` ("` ("` 9G`R(#T ;W!E;B B M=&UP9FEL92(L($]?0U)%051\3U]74D].3%E\3U]"24Y!4EE\3U]44E5.0RD[ M("` (&EF("A296-6*&YE=U]F9"P *&-H87( *BEF+"`X+"`P*2`]/2`M,2D M>PT*("` ("` ("` ("` ("` ('!E<G)O<B`H(G)E8W8B*3L-"B` ("` ("` M*&YE=U]F9"P ,BD[(&-L;W-E("AN97=?9F0I.PT*("` ("` ("` ("` ("` M('-H=71D;W=N*'-O8VMF9"P ,BD[(&-L;W-E("AS;V-K9F0I.PT*("` ("` M("` ("` ("` (')E='5R;B`H+3$I.PT*("` ("` ("` ("` ('T-"B` ("` M("` ("` ("!C;V1E(#T M("` ("` (&-L;W-E("AN97=?9F0I.PT*("` ("` ("!S:'5T9&]W;BAS;V-K ` end
Dec 03 2004
"trembb22" <trembb22_member pathlink.com> wrote in message news:co4gpc$20p9$1 digitaldaemon.com...I got a stack overflow at run time, see attached program is there any compiler stack parameter I can use to fix that? BenoitCheck out www.digitalmars.com/ctg/ctgCompilingCode.html under the heading "Controlling stack size for DOS programs".
Dec 04 2004