| || |
Unhandled exception when getting line from tada table
I am using the following function [img]images/icons/tongue.gif[/img] to get line from data table (as an array)
Does anyone see any problem in the implemantation?
public function get_row_from_db(in table, in row, inout data_arr)
auto num, row_count, element;
if (ddt_open(table, DDT_MODE_READ) != 0)
report_msg("Fail to open table - "&table);
ddt_get_parameters(table, list, num);
if (row > row_count)
for (element in data_arr)
for (element in param_array)
data_arr[param_array[element]] = ddt_val_by_row(table, row, param_array[element]);
When I am running it in loop (on tables, comtain ~ 200 lines)
I get "Unhandled exception from TSL main loop - EXCEPTION_ACCESS_VIOLATION..."
Any Ideas ???
Re: Unhandled exception when getting line from tada table
do you get the same result if you run it as a script rather than a function?
Aside from that I am always fascinated as to why any one needs to build an array of a data table.
I always thought of data table as a 2 dimensional array. one dimension being the row number and the other being the column heading. Armed with this information at any time you can select any value in the table.