Home > Archive > SQL Anywhere ultralite > October 2005 > error_in_ulgen_files









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author error_in_ulgen_files
NewB

2005-10-27, 7:41 am

Pls refer my previouspost for details:

While debugging step by step i found that the error is
occuring in the files generated using Ulgen.

it is going into if(!_found) and exiting from the loop


********************
******
bool Student::GetName( ul_char * ptr, ul_length len, bool*
isNull )
{
if( !_found ) {
return false;
}
_v.sqldata = (void *)ptr;
_v.sqlind = &_isNull;
UL_ENTER_RUNTIME( (_conn)->GetCA() );
#undef c
#define c ((ul_c_Student_11 *)_cinfo)
UL_FROMDB_TCHAR_NULL
S( _v, len, c->row_6.name_,
((c->row_6._ul_null[ UL_STUDENT438_NAME_N
ULL_BYTE ] &
UL_STUDENT438_NAME_N
ULL_BIT)!=0) );
#undef c
UL_EXIT_RUNTIME( (_conn)->GetCA() );
if( isNull != UL_NULL ) {
*isNull = _isNull < 0;
}
return ul_true;
}
********************
*************

similarly in "bool ULTable::Relative( ul_fetch_offset offset
)"
it is returning at if( !IsOpen() )
********************
************
But at

m_Connection.Synchronize( &info ); //here there is a pause
and seems to sync

if( !m_Connection.LastCodeOK() ) {//doesnt enter this
loop
return( false );
}

so iam assuming that data sync has take place

********************
*

pls advice
NewB

2005-10-27, 7:41 am

Student::
is a syncronised table

There is a same problem if i use a ultralite project
GetData::
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com