VPicture field and Class Way

Ivan Smahin ivan_smahin at paradigmasoft.com
Thu Jul 16 02:22:30 CDT 2009


Hello Steve,

Thursday, July 16, 2009, 10:07:34 AM, you wrote:


> On Thursday, July 16, 2009 ivan_smahin at paradigmasoft.com (Ivan Smahin) wrote:

>>Thursday, July 16, 2009, 7:33:49 AM, you wrote:
>>
>>> I am able to run the two different Field_Picture examples to update
>>> a database with VPicture field.  When I try the same techniques in
>>> my app, I get empty fields when adding pictures.  
>>
>>> I notice there is no example for using VPicture in the Class Way
>>> set of examples.  Is it possible that VPicture does not work when
>>> opening the database with the Class Way?  That is the only
>>> difference I can see between my app and the examples.
>>
>>"Class Way"  is  just  a way to map some objects like tables,
>>fields  and  so created before database open.
>>Check  Warning  log  please  -  probably  that vPicture object is not
>>mapped...
>>

> That's what I thought regarding class way, but after banging my
> head against the wall all day, I couldn't help wondering...

> There is no warning log and I have that property set to true.

> Here is a snippet from the debug log:

> Database_SqlSelect_1...
>     PARAM: instance = 550985152
>     PARAM: inQuery = "SELECT pCoverPic  FROM Images WHERE nId = 16"
>     PARAM: inCursorLocation = 2
>     PARAM: inCursorType = 3
>     PARAM: inDirection = 1
> return object = 560355056

> Cursor_GetRecordCount...
>     PARAM: inCursor = 560355056
> return res = 1

> Cursor_GetFieldByName...
>     PARAM: inCursor = 560355056
>     PARAM: inName = "pCoverPic"
> return object = 551351024

> Picture_WriteAs...
>     PARAM: inPicture = 560269840
>     PARAM: inQuality = 50
> return

> Cursor_UpdateRecord...
>     PARAM: inCursor = 560355056
> return

> Database_Flush...
>     PARAM: inDatabase = 550985152
> return


> It doesn't look like anything is going wrong, but when I open the
> DB using VStudio, the field is listed as <empty>.

Yes, seems to be ok
But I meant Warnings_20090716_xxxxxx.log

To enable Warning log you should do following:
SET PROPERTY WarningMode TO TRUE










-- 
Best regards,
Ivan Smahin 
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com



More information about the Valentina mailing list