You will notice i have commented the loop out to eliminate the bob memory variable that the data is being loaded into but regardless it does not seem to drop back to the main and the next log statement.
I am stumped here. i like to think of programming as a puzzle, but this has had me going for a couple of months now due to the complexity of this program in relation to my skills.
I would much appreciate as with my last posts if someone could 'hint' to me the direction i should be researching in. even beter if someone could point me to a good resource on how to troubleshoot defuncts on gcc under linux.
Thanks in advance guys and gals....
Rabid Monkey...
Expand|Select|Wrap|Line Numbers
- int loadgeneticfile()
- {
- logfile("loadgeneticpair");
- char fnamegen[40];
- sprintf(fnamegen,"%s%s%s","./Database/",GLOBAL_alivefilerec.name,".gen");
- logfile(fnamegen);
- FILE * geneticfileP;
- long p=2000;
- if (geneticfileP = fopen (fnamegen,"r")) {flockfile(geneticfileP);logfile("loading");
- /* for (p=2000;p<GLOBAL_alivefilerec.size-1;p++) {
- fread(&childlogicrec, sizeof(childlogicrec), 1, geneticfileP);
- bob[p].IO=childlogicrec.portIO;
- bob[p].logik=childlogicrec.logictype;
- bob[p].output=childlogicrec.output;
- bob[p].inputA=childlogicrec.inputA;
- bob[p].inputB=childlogicrec.inputB;
- }*/
- funlockfile(geneticfileP);fclose(geneticfileP);
- } else {logfile("failed");}
- logfile("end loadgenticpair.....");
- }