PtListReplaceItemPos problem

I have a problem with the function PtListReplaceItemPos, when I am replacing
more than 8 elements in one time, my program crash. If instead I’m using
DeleteAllItems and the AddItems, I have no problem with my application but
if a line was highlighted I lose it, so I really need PtListReplaceItemPos.
I’m using PtEnter(Pt_EVENT_PROCESS_ALLOW) and PtLeave() in the 2 cases.
Someone can figure out what could be my problem?
Thank you.

P.S. I have verify all the data that I passed to the function and they are
exact.

Can you send a sample app to me?
-Misha.

“Etienne Palardy” <epalardy@oerlikon.caNOSPAM> wrote in message
news:ar0ejf$dht$1@inn.qnx.com

I have a problem with the function PtListReplaceItemPos, when I am
replacing
more than 8 elements in one time, my program crash. If instead I’m using
DeleteAllItems and the AddItems, I have no problem with my application but
if a line was highlighted I lose it, so I really need
PtListReplaceItemPos.
I’m using PtEnter(Pt_EVENT_PROCESS_ALLOW) and PtLeave() in the 2 cases.
Someone can figure out what could be my problem?
Thank you.

P.S. I have verify all the data that I passed to the function and they are
exact.

Could you please send me a small test case that reproduces the problem?
I’ll run some tests with it and let you know what I find. Could you also
send the output from ‘uname -a’ please?

Thanks,
Dave B.


“Etienne Palardy” <epalardy@oerlikon.caNOSPAM> wrote in message
news:ar0ejf$dht$1@inn.qnx.com

I have a problem with the function PtListReplaceItemPos, when I am
replacing
more than 8 elements in one time, my program crash. If instead I’m using
DeleteAllItems and the AddItems, I have no problem with my application but
if a line was highlighted I lose it, so I really need
PtListReplaceItemPos.
I’m using PtEnter(Pt_EVENT_PROCESS_ALLOW) and PtLeave() in the 2 cases.
Someone can figure out what could be my problem?
Thank you.

P.S. I have verify all the data that I passed to the function and they are
exact.