i am having a segmentation fault while calling a class function.
can you please advise me where i do wrong.
thank you in advance.
class function:
int IstcmsUtil::generateCvv(OC_Map_Type &inparams, char *cvv)
program call:
istcmsApp->istcmsUtil->generateCvv(cparams, gcvv);
debug core:
/development/bin>dbx embutil core
Segmentation fault in emb_fmtembfile(long) at line 635 in file "/development/src/embutil.cxx" ($t1)
635 istcmsApp->istcmsUtil->generateCvv(cparams, gcvv);
(dbx)
Without knowing your program intimately, there's no way to know for sure what caused it. Every time you freed memory or you dereferenced a pointer, there's a chance memory got corrupted. Start looking at the place where the segfault occurred, check your pointers and parameters for validity, then move outwards.
I guess istcmsApp or istcmsUtil don't point to the right adress. You could ask the debugger of your choice which one of them. Seeing more code, I might be able to tell you more.