Stack overflow addressing 16K buffer

I have a program which sends and receives messages over TCP/IP.
Originally the message size was 8K and it worked fine. The
message size has been changed to 16K. The program is compiled
-ms switch for a 16-bit small model and it compiles without
errors.

However, when the program is running, I get the error:

Stack Overflow at 0005:0000CF46

and the program halts.

Have I encountered a limitation in the memory model or possibly
the 16 bit addressing? Should I try other memory models? Can
program with different memory models co-exist? And lastly,
is there any hardware reasons for keeping the 16-bit small
memory model (I am running on an RTP6800 single board computer
from RTP Corp.)

Thank you in advance for any assistance!

I offered a comment in comp.os.qnx.

Bill Caroselli


“Shawn” <smdhome@yahoo.com> wrote in message
news:MPG.15a6a6ef486c11b989686@inn.qnx.com

I have a program which sends and receives messages over TCP/IP.
Originally the message size was 8K and it worked fine. The
message size has been changed to 16K. The program is compiled
-ms switch for a 16-bit small model and it compiles without
errors.

However, when the program is running, I get the error:

Stack Overflow at 0005:0000CF46

and the program halts.

Have I encountered a limitation in the memory model or possibly
the 16 bit addressing? Should I try other memory models? Can
program with different memory models co-exist? And lastly,
is there any hardware reasons for keeping the 16-bit small
memory model (I am running on an RTP6800 single board computer
from RTP Corp.)

Thank you in advance for any assistance!

“Bill Caroselli @ Q-TPS” <BillCaroselli@Q-TPS.com> wrote in message
news:9hinig$g6l$1@inn.qnx.com

I offered a comment in comp.os.qnx.

Me too

Bill Caroselli


“Shawn” <> smdhome@yahoo.com> > wrote in message
news:> MPG.15a6a6ef486c11b989686@inn.qnx.com> …
I have a program which sends and receives messages over TCP/IP.
Originally the message size was 8K and it worked fine. The
message size has been changed to 16K. The program is compiled
-ms switch for a 16-bit small model and it compiles without
errors.

However, when the program is running, I get the error:

Stack Overflow at 0005:0000CF46

and the program halts.

Have I encountered a limitation in the memory model or possibly
the 16 bit addressing? Should I try other memory models? Can
program with different memory models co-exist? And lastly,
is there any hardware reasons for keeping the 16-bit small
memory model (I am running on an RTP6800 single board computer
from RTP Corp.)

Thank you in advance for any assistance!