...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...