Mail Archives: djgpp/1998/10/14/14:12:00
Hi folks,
Really hopeing someone will look at this and give me some clues
as to where to start looking as I'm Stuck.
I have some code that compiles/runs fine under NT and 95. Trouble is
I want it to run under DOS (It's a shop till system).
I have this structure defined :-
typedef struct {
char product[PRODUCT_LEN];
int stock ;
int price ;
char bar[BAR];
int active ;
int quantity ;
char vat_code ;
} SellRecord ;
When I define an array of this structure I find I can can define an
array of up to 6 and everything runs fine. If I define the array with
a size of anything greater the program fails with this error message :-
Exiting due to signal SIGSEGV
Page fault at eip=00004023, error=0006
It looks like memory to me, which would explain why it runs
under NT/95 but not dos, but I'm danged if I can work out what to
do next.
This is running under Caldera DR-Dos 7, but I have the same problems
with MS Dos.
Any help would be really appreciated.
Thanks,
John.
--
+------------------------------------------------------------+
John Furlong.
Leighton Buzzard,
Bedfordshire,
UK.
email jfurlong AT worldhq DOT com
- Raw text -