PtMultitextWidget SIGSEGVs modifying vert scroll bar

I have a PtMultiTextWidget I’m using as a status display. I resized the
window in PhAB accidentally, then tried to restore the original size. Now,
whenever I run the program, the widget update routine crashes trying to
adjust the vertical scroll bar. This I gleaned from the backtrace buffer in
gdb. The widget can display 6 lines total before needing to scroll and
crashes after calling PtTextModifyText on the 6th line. This did not occur
prior to the accidental resize.

I deleted the widget and recreated it in the hope that a fresh instantiation
would behave differently. Now the program crashes on the second call to
PtTextModifyText!

Found the problem - loose nut behind the keyboard de-referencing an array.

“Harry Qualls” <hfq@tree-d.com> wrote in message
news:c0r2k8$5oo$3@inn.qnx.com

I have a PtMultiTextWidget I’m using as a status display. I resized the
window in PhAB accidentally, then tried to restore the original size. Now,
whenever I run the program, the widget update routine crashes trying to
adjust the vertical scroll bar. This I gleaned from the backtrace buffer
in
gdb. The widget can display 6 lines total before needing to scroll and
crashes after calling PtTextModifyText on the 6th line. This did not occur
prior to the accidental resize.

I deleted the widget and recreated it in the hope that a fresh
instantiation
would behave differently. Now the program crashes on the second call to
PtTextModifyText!