Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 What does segmentation violation mean?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
LadyFlamestress




PostPosted: Tue Dec 29, 2009 4:24 pm   Post subject: What does segmentation violation mean?

I'm just curious cause my program keeps saying it. I use a lot of pictures, so I'm thinking it's a memory thing. But how do I fix it?
Sponsor
Sponsor
Sponsor
sponsor
ecookman




PostPosted: Tue Dec 29, 2009 5:05 pm   Post subject: RE:What does segmentation violation mean?

ive never heard of it but I will look into it.
[Gandalf]




PostPosted: Tue Dec 29, 2009 7:01 pm   Post subject: RE:What does segmentation violation mean?

That's a useless post if there ever was one, ecookman...

http://en.wikipedia.org/wiki/Segmentation_fault
rdrake




PostPosted: Tue Dec 29, 2009 7:58 pm   Post subject: Re: RE:What does segmentation violation mean?

Gandalf @ Tue Dec 29, 2009 7:01 pm wrote:
That's a useless post if there ever was one, ecookman...

http://en.wikipedia.org/wiki/Segmentation_fault
QFT.

It basically means you're touching memory not allocated to you. Stop that.
andrew.




PostPosted: Tue Dec 29, 2009 8:05 pm   Post subject: RE:What does segmentation violation mean?

Sounds like you are using so much memory that it tries to write over a section where it's not allowed to.
Tony




PostPosted: Tue Dec 29, 2009 8:25 pm   Post subject: RE:What does segmentation violation mean?

Except that this is Turing, so chances are it's some internal error. There was another thread recently, where loading a faulty .gif file caused segmentation faults.

As with most bugs -- try to isolate where in your program this fault occurs.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: