Comment 5 for bug 541221

Andrew Johnson (anj) wrote :

Here's the bug: If the native field type changes, we never clear the old native subscription, so after fixing the buffer allocation properly the eventCallback() routine is still getting called with the data from the old subscription type.

Either we need to be less clever (i.e. forget the whole 'native subscription' thing and just request the type that we're looking for), or we could just forget the fact that the data type changed underneath us and keep using the old subscription and buffer [not good if the array size gets bigger because we'll never see the larger array], or else we have to clear the old subscription and create a new one whenever the data type or array size changes. Getting the latter synchronized properly through the dbCa task is not going to be easy, so I'm more inclined to simplify the whole thing.

edited on: 2008-07-24 17:31