Thread overview
exit problem
Jan 16, 2002
S³awomir Sztuka
Jan 16, 2002
Walter
Odp: exit problem
Jan 18, 2002
S³awomir Sztuka
Re: exit problem
Jan 18, 2002
Walter
January 16, 2002
I have big program. I must compile with -NS option. When I exit from main()
by exit() program hangs (_exit() works OK). When I compile with -mx and
x32.lib program works OK.

S³awek


January 16, 2002
-NS puts each function in its own code segment. I suspect you may be using near code pointers somewhere. -Walter

"S³awomir Sztuka" <sztuka@ae.katowice.pl> wrote in message news:a240su$1iia$1@digitaldaemon.com...
> I have big program. I must compile with -NS option. When I exit from
main()
> by exit() program hangs (_exit() works OK). When I compile with -mx and
> x32.lib program works OK.
>
> S³awek
>
>


January 18, 2002
I haven't near code pointers. Program works OK in Symantec 6.1 (-ml -NS option). I work in Dos mode in Windows 98SE.


Walter <walter@digitalmars.com>

> -NS puts each function in its own code segment. I suspect you may be using near code pointers somewhere. -Walter
>
> "S³awomir Sztuka" <sztuka@ae.katowice.pl> wrote in message news:a240su$1iia$1@digitaldaemon.com...
> > I have big program. I must compile with -NS option. When I exit from
> main()
> > by exit() program hangs (_exit() works OK). When I compile with -mx and
> > x32.lib program works OK.
> >
> > S³awek
> >
> >
>
>


January 18, 2002
Try using the debugger from SC 6.1 to see why it's hanging. I have no idea. -Walter

"S³awomir Sztuka" <sztuka@ae.katowice.pl> wrote in message news:a28hp3$1fsd$1@digitaldaemon.com...
> I haven't near code pointers. Program works OK in Symantec 6.1 (-ml -NS option). I work in Dos mode in Windows 98SE.
>
>
> Walter <walter@digitalmars.com>
>
> > -NS puts each function in its own code segment. I suspect you may be
using
> > near code pointers somewhere. -Walter
> >
> > "S³awomir Sztuka" <sztuka@ae.katowice.pl> wrote in message news:a240su$1iia$1@digitaldaemon.com...
> > > I have big program. I must compile with -NS option. When I exit from
> > main()
> > > by exit() program hangs (_exit() works OK). When I compile with -mx
and
> > > x32.lib program works OK.
> > >
> > > S³awek
> > >
> > >
> >
> >
>
>