memory problem!
-
Hi everybody, Perhaps a simple question but, i would like to suggest it o you: In my application, i have an "access violation" message which appear to this following line: *(pHistoDBNorm+ j- *(pInflex+i)- *pInflex), when i=0 and j=16, just with this indications, you will tell me to check if th e allocation is well done, but the problem is if i remove *(pInflex+i)- *pInflex (which is equal to 0), in the debug window, the following *(pHistoDBNorm+ j) is evaluated correctly whereas *(pHistoDBNorm+ j- *(pInflex+i)- *pInflex), always in the debug window couldn't be evaluated (instead of reading a value which would have to be the same than *(pHistoDBNorm+ j), i could read something like that:"expression couldn't be read..." why?????? thanks in advance gerald
-
Hi everybody, Perhaps a simple question but, i would like to suggest it o you: In my application, i have an "access violation" message which appear to this following line: *(pHistoDBNorm+ j- *(pInflex+i)- *pInflex), when i=0 and j=16, just with this indications, you will tell me to check if th e allocation is well done, but the problem is if i remove *(pInflex+i)- *pInflex (which is equal to 0), in the debug window, the following *(pHistoDBNorm+ j) is evaluated correctly whereas *(pHistoDBNorm+ j- *(pInflex+i)- *pInflex), always in the debug window couldn't be evaluated (instead of reading a value which would have to be the same than *(pHistoDBNorm+ j), i could read something like that:"expression couldn't be read..." why?????? thanks in advance gerald
All clues suggest that
pInflex
is invalid. Maybe you have freed it before time? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
All clues suggest that
pInflex
is invalid. Maybe you have freed it before time? Joaquín M López Muñoz Telefónica, Investigación y Desarrolloi'm not sure because i have tested at the same time and both *pInflex and *(pInflex+i) have a correct value (equal to 0). i have seen it in the debug window!
-
i'm not sure because i have tested at the same time and both *pInflex and *(pInflex+i) have a correct value (equal to 0). i have seen it in the debug window!
Wait! There's a typo in your expression, instead of
*(pHistoDBNorm+ j- *(pInflex+i)- *pInflex)
it should be
*(pHistoDBNorm+ j- (*(pInflex+i)- *pInflex**)**)
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
-
All clues suggest that
pInflex
is invalid. Maybe you have freed it before time? Joaquín M López Muñoz Telefónica, Investigación y DesarrolloSorry just a little mistake in my answer: "both *pInflex and *(pInflex+i) have a correct value (equal to 15)", not really important i know, but..!
-
Wait! There's a typo in your expression, instead of
*(pHistoDBNorm+ j- *(pInflex+i)- *pInflex)
it should be
*(pHistoDBNorm+ j- (*(pInflex+i)- *pInflex**)**)
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
you're right, sorry for this stupid mistake and thanks for your help