Tobias,
On my PC, your application crashes in another place than you describe.
The reason for that, I imagine, is this :
> XtSetArg(wargs[m],XmNcells,all_rows);m++;
> XtSetValues(Matrix,wargs,m);
You're changing the cell matrix without telling the widget how many
rows and columns it has. I would expect this to work well only if you
set XmNcolumns and XmNrows at the same time.
However, there's an easier and safer way to do all this.
For changing or setting the dimensions of the matrix, I would advise one
of the following :
* set at creation
XtSetArg(al[ac], XmNrows, 1234); ac++;
XtSetArg(al[ac], XmNcolumns, 234); ac++;
m = XbaeCreateMatrix(parent, "mat", al, ac);
* change using API : XbaeMatrixAddRows() and XbaeMatrixAddColumns()
For setting the contents of cells, it is much safer to use
XbaeMatrixSetCell().
Danny
--
Danny Backx ([EMAIL PROTECTED] [EMAIL PROTECTED])
Home page : http://users.skynet.be/danny.backx
Projects: LessTif (http://www.lesstif.org)
Oleo (http://www.gnu.org/software/oleo/oleo.html)