Memory Fault from member function

Hey guys so I keep encountering a memory fault when I try to call a member function of a class. I'm not sure why. Any ideas?

1
2
3
4
5
6
7
for (int i = 0; i < 30; i++) { 
 if(i % 2 == 0) { 
     objectname.function(i); 
 } else { 
     objectname.function(i); 
 } 
}//end for 
Hmm, I don't see a memory fault here, but "function" may well be a language keyword in c++11? You may want to give us more code, or show us the error you're getting or a bit more information otherwise.
Topic archived. No new replies allowed.