Segmentation error Programming Software Development 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 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 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 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 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 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 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 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 by Narue >p_arr[i]=insert; Tell me the value of i in this line of code. Re: Segmentation Error Programming Software Development 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 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 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 by death_oclock Point taken, sorry. Re: Segmentation Error Programming Software Development by atman thank you guys so much!!! Re: Segmentation Fault - its jamican me crazy Programming Software Development 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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…