Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
seg
- Page 1
Re: Seg Fault
Programming
Software Development
19 Years Ago
by Narue
>
Seg
Fault Check your array indices. Use a debugger, or sprinkle the code liberally with debug prints statements. If you don't even know the general area that the segmentation fault is coming from then you aren't debugging properly, and debugging is a huge part of programming so you'd better start learning how to do it and get used to it.
SEG FAULT when trying to close ofstream
Programming
Software Development
11 Years Ago
by sidvb1
…* logger = Logger::Instance(); logger->WriteToFile(); } Occasionally I receive a
SEG
FAULT when logging. Here is the gdb output: #0 0x0000003d8786d1b3… Logger::CloseLogFile (this=0x2aaab001c460, prefix=...) at Logger.cpp:225 The
SEG
FAULT is occuring on the closing of the file (AFAIK…
seg fault that doesnt make sense
Programming
Software Development
18 Years Ago
by jhdobbins
… last program.. just does different things.. anyway, im getting a
seg
fault i dont understand one bit its off of the… but if you input 7 to quit the program it
seg
faults. also, if you run one of the other menu… question but when you type a value in it will
seg
fault. is my input incorrect? thanks. [code]/*This program will…
Seg Fault ~ Linked List Delete
Programming
Software Development
18 Years Ago
by Mistro116
Hello, I get the following
seg
fault error when I try to delete the last node … delete function and high level function are included below: The
seg
fault only occurs when the if value in BeginQuizFirstTry detecting… not true or = 0. Can anyone tell me why this
seg
faults? [CODE]int Delete (NODEPTR *headPtr, char *target) { /* Node pointers…
Re: Seg Fault - Two Hours and Nothing.
Programming
Software Development
14 Years Ago
by JasonHippy
…a debug build from your IDE. When the
seg
-fault occurs you should be given the opportunity…line of your code that is causing the
seg
fault further down the stack. Once you'…the code and watching the variables until the
seg
-fault occurs. As long as you're …watching the right things, the cause of the
seg
-fault should become more or less apparent. …
Re: seg fault that doesnt make sense
Programming
Software Development
18 Years Ago
by jhdobbins
i still got a
seg
fault but it was good enough to turn it in.
Seg Fault
Programming
Software Development
19 Years Ago
by dontcare
… the median function, the average function might be giving the
seg
fault. Anway I can't figure it out. You should…
Re: Seg Fault
Programming
Software Development
19 Years Ago
by jasweb2002
^^ Exactly. You need to find where the
seg
fault is hitting. When I have that problem, I usually fill my program with stupid couts like "entering _____ function", "about to enter so and so loop", "got out of so and so loop" blah blah blah
seg fault when accessing the array
Programming
Software Development
18 Years Ago
by musicmancanora4
… i can do some calculations. But i keep getting a
seg
fault. [code] int main(void) { unsigned month; unsigned year; unsigned…
Seg fault, bug in gcc compiler??
Programming
Software Development
16 Years Ago
by achillez
… then ./short enter a number, you ll end up in
seg
fault. you can comment the first n try d second…
Seg Fault problem
Programming
Software Development
15 Years Ago
by opposition
… code in a while(!ins.eof()) loop, it reports a
seg
fault.... here is my code. [CODE]#include <iostream>…
Re: Seg Fault problem
Programming
Software Development
15 Years Ago
by opposition
just been tring to figure this out for ages, for some reason it also has a
seg
fault it i try to compare something that doesnt even do anything like... [CODE] if(dates[0] == 0) { cout << "SOMEHTING" << endl; }[/CODE] is there something really that wrong with my code :| i cant see where ive gone wrong...
Seg fault when using ludcmp.
Programming
Software Development
14 Years Ago
by gimst19
… and C come out just fine, but there is a
seg
fault when I try to run the lud files. Can…
Seg Fault?
Programming
Software Development
14 Years Ago
by BlackStar
[ICODE] struct Node{ int n; Node *next; }; struct Some{ Node * ptr; }; int main() { Node *aNode = new Node; Some *aSome; aSome->ptr = aNode; } [/ICODE] Why do I get a
Seg
Fault here?
Seg Fault - Two Hours and Nothing.
Programming
Software Development
14 Years Ago
by swolll
…; break; } [/code] No matter what I do, I get a
Seg
Fault. I think I need to erase the Playlist pointers…
Re: Seg Fault - Two Hours and Nothing.
Programming
Software Development
14 Years Ago
by swolll
I think the problem is how I access the second vector, but I don't know how to fix it. cout << allPlaylists.at(0).getPlaylistName(); // Does work, but... cout << allPlaylists.at(0).listSongs.at(0).getSongName(); // Causes a
seg
fault. How would I access a function for a vector of a vector if not that way?
Re: Seg Fault - Two Hours and Nothing.
Programming
Software Development
14 Years Ago
by mitrmkar
Why are you doing a thing like [ICODE]listSongs.push_back(NULL);[/ICODE] there? Are you sure that you are not doing e.g. a [ICODE]listSongs.at( [I]index of a NULL pointer[/I] )->getSongName()[/ICODE] causing the
seg
fault?
Re: Seg Fault - Two Hours and Nothing.
Programming
Software Development
14 Years Ago
by swolll
I've used a debugger, and the
seg
faults occur whenever I use a statement with allPlaylists/listSongs. For example, like this: allPlaylists.at(0).listSongs.at(0)->getSongName(); How can I use Songs getSongName function for listSongs (which is of type *Songs)?
Seg Fault
Programming
Software Development
13 Years Ago
by dansnyderECE
… function to anything between 0-5 and 8+ then the
seg
fault doesn't occur either. Any ideas?
Re: Seg Fault
Programming
Software Development
13 Years Ago
by nezachem
Can you provide some test data set (the smaller the better) which exhibits the
seg
fault?
Re: Seg Fault
Programming
Software Development
13 Years Ago
by nezachem
[B]>> which exhibits the
seg
fault[/B] Are you sure a segfault is reproducible with this set?
Re: Seg Fault
Programming
Software Development
13 Years Ago
by dansnyderECE
… most up to date code and this definitely causes a
seg
fault: [CODE]#include "VMIPS.h" #include "VMIPS_MIPS…
Re: Seg Fault
Programming
Software Development
13 Years Ago
by dansnyderECE
The
seg
fault is definitely gone. Thanks for sifting through my code …
Seg Fault with char array
Programming
Software Development
13 Years Ago
by Empireryan
… somebody to point out my error. I'm getting a
seg
fault after writing to an array of char. I need…
Seg Fault! C++ pthreads In Linux
Programming
Software Development
13 Years Ago
by John Linux
… Merge method (thread runs this method), but I keep getting
seg
faults. I am sure its something obvious, please help me…
Re: Seg Fault! C++ pthreads In Linux
Programming
Software Development
13 Years Ago
by ausrasul
test is actually a pointer, you are sending a an address of an address, that give memory violation exception (
seg
fault) try: [CODE]rc = pthread_create(&thread1, NULL, Merge, (void *) test);[/CODE] see I removed the "&" from the container "test"
Seg fault in operator<< (answer QUICKLY if possible)
Programming
Software Development
12 Years Ago
by tvm78
… i have this program written and i am getting a
seg
fault and the stack said in operator<<. I…
seg fault when i move esi reg address to eaxd
Programming
Software Development
9 Years Ago
by Roger_2
I am attempting to reverse an array2 however my program
seg
faults and ends right at `mov eax, dword [edi]` . theoretically …
doubly linked list seg fault help
Programming
Software Development
12 Years Ago
by wnr78ta
…class I am in and I keep getting a
seg
fault on my last line of code, no…will print them all then on the last one
seg
fault, all my test functions are working how… should too. Any idea what would cause a
seg
fault? only things in the class are what …i can think of is the destructor causing a
seg
fault. the destructor just calls my popback function …
Re: doubly linked list seg fault help
Programming
Software Development
12 Years Ago
by wnr78ta
I tried these changes and its still giving me a
seg
fault on the last line of code. maybe thats not the problem. What else could cause a
seg
fault on the last line of code no matter what that line of code is? Thanks
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC