when I exit a function i get 'general protection exception' -' processor fault'. Function writes to file and works ok except won't exit. What does this mean please, and where should I look ? Am using Turbo C 4.5 & Windows xp. Must be overwriting memory somehow I suppose but can't see where. Have increased stack size in .def file- no use.
All suggestions welcome !!
danijohn 0 Newbie Poster
Recommended Answers
Jump to PostCould you post the code you're having trouble with? Most likely you're trying to acess memory you shouldn't be, such as using a pointer that isn't pointing to what you expect it to, but it's kind of hard to guess unless you actually show us what you're trying to do.
Jump to Postwhen I exit a function i get 'general protection exception' -' processor fault'. Function writes to file and works ok except won't exit. What does this mean please, and where should I look ? Am using Turbo C 4.5 & Windows xp. Must be overwriting memory somehow I suppose but …
Jump to PostHis problem is almost certainly not caused by using TC 4.5 (which though old is still somewhat servicable and can produce 32 bit Windows code) but by a bug in his code.
Jump to PostThanks for reply. You are probably right that I'm missing some goodies staying with an old compiler, but I don't want the cost of a new one, or learning a new environment.
In spite of the bizarre error messages, it turned out to be a simple coding error.cost is …
All 16 Replies
John A 1,896 Vampirical Lurker Team Colleague
SpS 34 Posting Pro
~s.o.s~ commented: Good advice - ~s.o.s~ +9
jwenting 1,889 duckman Team Colleague
danijohn 0 Newbie Poster
danijohn 0 Newbie Poster
danijohn 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
jwenting 1,889 duckman Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
jwenting 1,889 duckman Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
John A 1,896 Vampirical Lurker Team Colleague
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
alifriend7 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.