|
|
Label: ♦english
♦bug report
klabim
created at Tuesday, 2010-09-07, 19:44:50
1 Replies, 653 Hits
Hi,
I run in some trouble while calling a dao function from the c++ code. The dao function should return a string, but the returned code contains an invalid pointer (garbage). However, the type indicates a string. The following code does demonstrate the problem: The dao script looks like this:
function getSomeString() {
The C++ code it looks like this:
return 'StringFromDao' }
DValue value = DaoNameSpace_FindData(m_nameSpace, "getSomeString" );
where by the value is:if( value.t == DAO_ROUTINE ){ DaoVmProcess_Call( m_vmProcess, value.v.routine, NULL, NULL, 0 ); } value = DaoVmProcess_GetReturned( m_vmProcess ); value.t = 5 value.v.s.mbs = Bad Ptr If I call the function in the dao script I get the string returned. like
str = getSomeString();
str contains StringFromDao. Hope you can help out. Thanks Comments
fu commented at Tuesday, 2010-09-07, 23:43:09
There was a minor bug in storing returned value in the DaoVmProcess structure. Now it is fixed and updated to the google code repository. Thank you for reporting this bug.
|
fu: ... I forgot to say something about the plan for the whole new year in my previous reply. Well, besides w ... (Jan.19,01:40) fu: ... Happy new dragon year (which will start from this sunday)! Actually, it was a busy month (I wish th ... (Jan.18,22:46) ybabel: What's the plan for the new year ? Hello 'vry budy :- ) happy new year (when is the new year for you Fu ?) I saw you come back and comm ... (Jan.18,18:59) |