Re: Fw:Re:[info-performer] Huge Problem with PFQHIT_NAME

Date view Thread view Subject view Author view

From: Christian Rothländer (Mailinglisten++at++rothlaender.net)
Date: 09/11/2005 09:55:28


Hi Stephane

Thanks for the Idea, the Segfault is gone, but I still get Null-Pointers back instead of the Name of the Object.
It's really weired.

Christian

stephane.adam++at++tiscali.fr schrieb:
> Rehello Christian, it'a again me ;-)
> I gorgot the explanation:
>
> You can't pass a pointer of a pointer because there is no allocation of your data; So you have a segment fault.
> You must put a pointer of a allocated variable.
> I'm not sure you can put a wstring, only if your reserved enough memory fot your string.
> With this code it should work:
>
> #define SIZE_OF_MAX_NAME 250 //
> char name[SIZE_OF_MAX_NAME];
> (*hits[0])->query(PFQHIT_NAME, &name);
> outputs.push_back(name);
>
> Stephane A. from France.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Sep 11 2005 - 09:55:35 PDT