Re: [sqlite] reading BLOB - Segmentation fault

2006-08-02 Thread Kiril Dzolev
Yes it is working. On 02/08/06, Martin Jenkins <[EMAIL PROTECTED]> wrote: Ignore that, I wasn't thinking C++ :( Does the CppSQLite demo work on your machine? Martin > Kiril Dzolev wrote: > > You're calling blobGet(), but blobGet is an unitialised variable of type > "CppSQLite3Binary"

Re: [sqlite] reading BLOB - Segmentation fault

2006-08-02 Thread Gerald Dachs
> This is not realy for this forum, but maybe somebody can tell me what I am > doing wrong. I am using CppSQLite wrapper. > > Code 1 : With this code "Segmentation fault" > > const unsigned char* putBLOBInBinary(CppSQLite3DB , int ) { > CppSQLite3Query q; > CppSQLite3Binary blobGet; > >

Re: [sqlite] reading BLOB - Segmentation fault

2006-08-02 Thread Kiril Dzolev
Are you using pBufferOut later in main()? I think you can't pass a pointer to a member object because that object is invalid outside your function, unless ofcourse if the object isn't responsible for cleanup. Merijn Yes I am using pBufferOut and lengthBLOB later

RE: [sqlite] reading BLOB - Segmentation fault

2006-08-02 Thread Merijn Vandenabeele
-Oorspronkelijk bericht- Van: Kiril Dzolev [mailto:[EMAIL PROTECTED] Verzonden: woensdag 2 augustus 2006 13:54 Aan: sqlite-users@sqlite.org Onderwerp: Re: [sqlite] reading BLOB - Segmentation fault There is no warning. But as I can see the problem is here If erase this line

RE: [sqlite] reading BLOB - Segmentation fault

2006-08-02 Thread Merijn Vandenabeele
-Oorspronkelijk bericht- Van: Kiril Dzolev [mailto:[EMAIL PROTECTED] Verzonden: woensdag 2 augustus 2006 13:54 Aan: sqlite-users@sqlite.org Onderwerp: Re: [sqlite] reading BLOB - Segmentation fault There is no warning. But as I can see the problem is here If erase this line

Re: [sqlite] reading BLOB - Segmentation fault

2006-08-02 Thread Kiril Dzolev
There is no warning. But as I can see the problem is here If erase this line lengthBLOB=blobGet.getBinaryLength(); end just print it like cout<<"Retrieved binary Length: "<

Re: [sqlite] reading BLOB - Segmentation fault

2006-08-02 Thread Martin Jenkins
Kiril Dzolev wrote: You're calling blobGet(), but blobGet is an unitialised variable of type "CppSQLite3Binary" (whatever that is). Doesn't your compiler warn you about that? Martin > const unsigned char* putBLOBInBinary([...]) >{ >[...] >CppSQLite3Binary blobGet; > >[...] >

[sqlite] reading BLOB - Segmentation fault

2006-08-02 Thread Kiril Dzolev
This is not realy for this forum, but maybe somebody can tell me what I am doing wrong. I am using CppSQLite wrapper. Code 1 : With this code "Segmentation fault" const unsigned char* putBLOBInBinary(CppSQLite3DB , int ) { CppSQLite3Query q; CppSQLite3Binary blobGet;