Namazu-users-en(old)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Access Violation on nmz_get_field_data
- From: knok@xxxxxxxxxxxxx (NOKUBI Takatsugu)
- Date: Wed, 6 Mar 2002 16:29:06 JST
- X-ml-name: namazu-users-en
- X-mail-count: 00237
In article <3C853431.7080100@xxxxxxxxx>
carlos@xxxxxxxxx writes:
>> nmz_add_index("C:\\namazu\\index");
>>
>> NmzResult result = nmz_search("Some query");
>>
>> for (int i = 0; i < result.num; i++)
>> {
>> nmz_data current_hit = result.data[i];
>> char title[512] = "";
>> nmz_get_field_data(current_hit.idxid, current_hit.docid, "title", title);
>> }
>>
I think you need to call nmz_free_hlist(nmz_data_current_hit) on each
iteration, and need to call nmz_free_internal() before second try.
I don't know it causes such probrem or not, but it would be better.
--
NOKUBI Takatsugu
E-mail: knok@xxxxxxxxxxxxx
knok@xxxxxxxxxx / knok@xxxxxxxxxx