Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
January 16, 2002 exit problem | ||||
---|---|---|---|---|
| ||||
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 Re: exit problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to S³awomir Sztuka | -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 Odp: exit problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | 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 Re: exit problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to S³awomir Sztuka | 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 > > > > > > > > > > > > |
Copyright © 1999-2021 by the D Language Foundation