Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
segmentation-error
- Page 1
Segmentation error
Programming
Software Development
17 Years Ago
by rpamballa
… path for randomly generated processes. My code is generating a
segmentation
error
when I run it, and I am unable to locate…
Segmentation Error
Programming
Software Development
16 Years Ago
by atman
… it compiles but after the first entry it sais "
Segmentation
Error
" and quits, any thoughts would be greatly appreciated! Thanx…
Re: Segmentation Error
Programming
Software Development
16 Years Ago
by Aia
…] Nope. That [B]i[/B] has the value of "
segmentation
fault". It never gets initialized. If you want to…
Re: Segmentation Error
Programming
Software Development
16 Years Ago
by Narue
… change to ruin the function's flexibility, potential
error
handling, [I]actual[/I]
error
handling, and thread safety. Congratulations, this gets my…
Core Segmentation Error
Programming
Software Development
17 Years Ago
by larry12720
… when I try to use it it gave me Core
segmentation
error
. I guess there is something wrong with the memory. plz…
Plz help! Segmentation error in vector
Programming
Software Development
14 Years Ago
by Bigbrain99
… my cpp file. While i'm doing that, i got
segmentation
error
in my main cpp? Is there anyway to pass the…
Re: Segmentation error
Programming
Software Development
17 Years Ago
by Nick Evan
What input are you using when you get the segmentationfault? Because I ran the code and it didn't crash... Two things I [i]did[/i] notice: 1. [code] pw = new float[n*2+2]; PS = new float[n*2+2]; F = new float[n*2+2]; [/code] You never [icode]delete[/icode] the memory you allocated => Memoryleak 2. [icode]float compv( int k, int l…
Re: Segmentation error
Programming
Software Development
17 Years Ago
by Cybulski
If you using C++ (you are posting in C++ forum) you should take advantage of STL library which is part of language now. You should almost always use STL containers and avoid C-style arrays.
Re: Segmentation Error
Programming
Software Development
16 Years Ago
by Narue
>p_arr[i]=insert; Tell me the value of i in this line of code.
Re: Segmentation Error
Programming
Software Development
16 Years Ago
by atman
[QUOTE=Narue;781606]>p_arr[i]=insert; Tell me the value of i in this line of code.[/QUOTE] depends on the pass if its the first pass then 0, if second then 1, e.c.t...
Re: Segmentation Error
Programming
Software Development
16 Years Ago
by Narue
>depends on the pass if its the first pass then 0, if second then 1, e.c.t... Bzzt! Wrong. The correct answer is "I don't know". Though I would have accepted "indeterminate" as well. Technically you don't need i at all in that function because you pass the address of the correct array element: [code=c] void enter(int *p_arr) …
Re: Segmentation Error
Programming
Software Development
16 Years Ago
by death_oclock
If you have to use array notation, also consider using a static variable instead of a parameter: [CODE]void enter(int *p_arr) { static int insert = 0; printf("\nplease enter the number:"); scanf("%d", &insert); p_arr[i++]=insert; }[/CODE]
Re: Segmentation Error
Programming
Software Development
16 Years Ago
by death_oclock
Point taken, sorry.
Re: Segmentation Error
Programming
Software Development
16 Years Ago
by atman
thank you guys so much!!!
Re: Segmentation Fault - its jamican me crazy
Programming
Software Development
16 Years Ago
by snehapatil
… ok but when i tried to run it a
Segmentation
Error
comes up - i have run valgrind its got …; } else if(accept(setsym)){ getsym(); set(); return; } else{
ERROR
("Not A Valid Instruction"); } } void instructlst(void){ if…it will be easy to find the mistake Generally
SEGMENTATION
FAULT oxxurs if there is mistake in a loop…
Segmentation fault caused by pointers
Programming
Software Development
15 Years Ago
by Simzz
… have a problem at the following code that causes a
segmentation
fault and don't know the reason: [CODE] char * cString… *point= string; while(*string!='\0') { if (*string!=letter) { *point=*string; //
segmentation
error
point++; } string++; } return first; } [/CODE] I appreciate any help concerning…
Segmentation fault on getline (UNIX)
Programming
Software Development
15 Years Ago
by Gonbe
… before, but after I made some changes I get this
segmentation
error
which I can not get rid of. (Neither can i… the program (though it's not exactly informative): [code] INPUT:
Segmentation
fault (core dumped) [/code] This is when I hit enter…
Segmentation Fault help!!!!
Programming
Software Development
15 Years Ago
by vedatsivri
… client program to test server side, but server side gave '
segmentation
error
' after fourth client request via socket. [CODE] void Thread::Start… Name : Kipa Store Name : Best Buy database closed make: *** [run]
Segmentation
fault [/QUOTE] Thank you..
Segmentation Fault on delete
Programming
Software Development
15 Years Ago
by Excizted
… class, that I'm trying to delete. This causes a
segmentation
error
, though. I'm fully aware of the virtual destructor thang…, filename); return dstream; }[/CODE] And then deleted right afterwards - result:
segmentation
fault. I hope anyone can tell me why. I've…
Re: Segmentation fault occurs sometimes and not all the time?
Programming
Software Development
13 Years Ago
by zeroliken
[QUOTE]but sometimes it encounters
segmentation
error
.[/QUOTE] On what part does the
segmentation
fault occur?
Segmentation Fault - its jamican me crazy
Programming
Software Development
16 Years Ago
by EvilOrange
…but when i tried to run it a
Segmentation
Error
comes up - i have run valgrind …Symbol s){ if (sym == s){ getsym(); return 1; }
ERROR
("Unexpected Symbol"); return 0; } int expect (Symbol … else if(accept(setsym)){ getsym(); set(); return; } else{
ERROR
("Not A Valid Instruction"); } } void instructlst(void…
Re: Segmentation fault on getline (UNIX)
Programming
Software Development
15 Years Ago
by Gonbe
… that came before getline was executed correctly, and then the
segmentation
error
showed up before the printf statement that came after getline…"]*process = 0;[/COLOR][/CODE][/QUOTE] This was indeed the
error
! I've modified this (process should have been a pointer…
Re: Segmentation fault on getline (UNIX)
Programming
Software Development
15 Years Ago
by Dave Sinkula
… that came before getline was executed correctly, and then the
segmentation
error
showed up before the printf statement that came after getline…/fflush.html[/url] [QUOTE=Gonbe;1092360]This was indeed the
error
! I've modified this (process should have been a pointer…
'Segmentation Fault'
Programming
Software Development
18 Years Ago
by psrujan
…I run the following program its gives me
segmentation
error
. I tried to do all the possible things…online but not able to figure out the
error
. I ran it suing gdb debugger but …still it stays
error
is somewhere near n=atoi(argv[2]);… Can somebdy please help me in finding the
error
. my command line arguments are ./output 2 …
Segmentation fault occurs sometimes and not all the time?
Programming
Software Development
13 Years Ago
by dineshswamy
… implentation. always it goes without any
error
. but sometimes it encounters
segmentation
error
. i dont find wny
error
or warning other than that.please…
Segmentation problem with g++
Programming
Software Development
14 Years Ago
by rAshter
… am having problem with the code below. It is showing
segmentation
error
and i am not able to remove in from the…
Re: segmentation fault in running ikdemo.c opencv sample
Programming
Software Development
13 Years Ago
by angelfriend89
… it does not exactly show me where that
error
occur.Whenever i start it captures my video.According to … which is alternate method the video ends and it say
segmentation
error
but it does not show me where exacty this…
Re: Segmentation Fault, and I know where it is
Programming
Software Development
12 Years Ago
by piero.costa
…] where the file names were stored, right ? I get an
error
when inside paralelo() I try to printf("%s"…] of course I don't get this
error
anymore but I still get a
segmentation
error
even if I use malloc(). sorry for…
Re: error in the program
Programming
Software Development
18 Years Ago
by ~s.o.s~
… found the file, only to crash for the cause of
segmentation
error
. Are you really including your sales.h file in your…
Runtime Error in Quick Sort Program
Programming
Software Development
13 Years Ago
by challarao
… out what is that thing causing
segmentation
error
in this program.... Please help.... I'm getting
segmentation
fault very frequently (i'm using…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC