Page 1 of 1

DrawAnnotation question

Posted: 2010-01-22T05:02:37-07:00
by erotavlas_turbo
Hi all,

I'm writing a C code that use the following method:

DrawAnnotation(d_wand,x,y,(const unsigned char *) member_list->callername), where member_list is data structure with char* callername field.

When i run the program I get the following error:

Code: Select all

asterisk: wand/drawing-wand.c:770: DrawAnnotation: Assertion `text != (const unsigned char *) ((void *)0)' failed.
If i write the same data to a text file, the program will work well
fprintf(file,"CallerName %s, member_list->callername);

Can you help me?

Thank you in advance

Re: DrawAnnotation question

Posted: 2010-01-25T03:52:58-07:00
by erotavlas_turbo
Hi,

anyone can help me?

Thank

Re: DrawAnnotation question

Posted: 2010-01-27T04:01:43-07:00
by erotavlas_turbo
I have solved with the following trick

Code: Select all

char buffer[50];
			
       			
			sprintf( buffer, "%d", member_list->id );	
        		DrawAnnotation(d_wand,x+175,y,(const unsigned char *) buffer );
:D