Re: [sqlite] Using sqlite3_file in shims.

2014-06-30 Thread Klaas V
Renji Panicker wrote to this fine list: > >- As per the sqlite3PagerOpen function, the size of the memory allocated to >this pointer is ROUND8(pVfs->szOsFile). What configuration you're using, Renji? On some OS/browser/SupportSoftware etc. combinations this function may crash https://crash-stats

Re: [sqlite] Using sqlite3_file in shims.

2014-06-29 Thread Renji Panicker
That cleared it up, thank you for the quick response. -/renji On Mon, Jun 30, 2014 at 12:17 AM, Richard Hipp wrote: > On Sun, Jun 29, 2014 at 11:57 AM, Renji Panicker > wrote: > > If some variable "p" is a pointer to the vfstrace object, then the > underlying sqlite3_file object immediately f

Re: [sqlite] Using sqlite3_file in shims.

2014-06-29 Thread Richard Hipp
On Sun, Jun 29, 2014 at 11:57 AM, Renji Panicker wrote: > I am developing a shim, and am facing a problem (or it might be a defect in > the sample shims I have seen so far): > (1) test_vfstrace.c is probably a better example of a shim than test_multiplex.c, at least for use as a basis for some n

[sqlite] Using sqlite3_file in shims.

2014-06-29 Thread Renji Panicker
I am developing a shim, and am facing a problem (or it might be a defect in the sample shims I have seen so far): - When I receive a call to my xOpen function, the 3rd parameter is a sqlite3_file* type. - As per the sqlite3PagerOpen function, the size of the memory allocated to this pointer is RO