Guest_imported
New member
- Jan 1, 1970
- 0
I've run into a very strange problem. I'm coding on the AIX platform, and for some reason, a function that I've written to access an SQL database has run into problems since I added a column to an xMotif table.<br><br>The table has three columns, the first is an ASCII character, the next is the ASCII code for that character, and the third column is the description of the character. In the SQL table, it only has the first and third column.<br><br>To investigate my problem, I created a function called ErrorFile, which logged entries and exits into and from functions. Upon the insertion of an ErrorFile call, the problem stopped.<br><br>Eventually I determined that it was segfaulting at the line "XtVaSetValue(dlg->scr_table->table,<br> XmNtopRow, 1,<br> XmNrowCount, tb_data->count,<br> XmNtableData, tb_data,<br> NULL);<br><br>I suspect that the error is that tb_data has become corrupt.<br><br><br>If in one of the functions I add a call to getenv, it works, as long as the environment asked for is valid. (Well, actually I only know that getenv(); does not work)<br><br>It doesn't have to assign the environment to anything, nor does it have to be any particular envionment variable.<br><br>Does anyone have any idea why a getenv would help ANYTHING?