Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi all,
i'm new to Actors, and i'm tryig to use IVFSNODE_GetData() its returning value 38 can any body help me?
sample code
-------------------

VfsPath path[2];
AECHAR *pbuf=(AECHAR *)MALLOC(sizeof(AECHAR)*20);
AEECLSID type = AEEIID_VFS_STRING_DATA;
int size=10;
path[0]=kstring;
path[1]=NULL;

nRetVal= IVFSNODE_GetData( node, path, &type, pbuf, &size);
DBGPRINTF("%s",pbuf);

------------------------------------------------
in tringml
----------------------------------

------------------------------

Thanks
Aditya

first check functionality of that ,I think u'r not sending proper parameters to the
IVFSNODE_GETDATA .......check the parameters....I think there is no error code
on 38 :)---------
Regards,
Venki

first check functionality of that ,I think u'r not sending proper parameters to the
IVFSNODE_GETDATA .......check the parameters....I think there is no error code
on 38 :)---------
Regards,
Venki

vengvve wrote:I think there is no error code on 38 :)
Error 38 is EBUFFERTOOSMALL
aditya_hyd wrote: AECHAR *pbuf=(AECHAR *)MALLOC(sizeof(AECHAR)*20);
AEECLSID type = AEEIID_VFS_STRING_DATA;
int size=10;
path[0]=kstring;
path[1]=NULL;
nRetVal= IVFSNODE_GetData( node, path, &type, pbuf, &size);
DBGPRINTF("%s",pbuf);
Check the params passed, i see that size is 10 and malloced size for buffer is 20*sizeof(AECHAR).

vengvve wrote:I think there is no error code on 38 :)
Error 38 is EBUFFERTOOSMALL
aditya_hyd wrote: AECHAR *pbuf=(AECHAR *)MALLOC(sizeof(AECHAR)*20);
AEECLSID type = AEEIID_VFS_STRING_DATA;
int size=10;
path[0]=kstring;
path[1]=NULL;
nRetVal= IVFSNODE_GetData( node, path, &type, pbuf, &size);
DBGPRINTF("%s",pbuf);
Check the params passed, i see that size is 10 and malloced size for buffer is 20*sizeof(AECHAR).