VCursor.Database crashes
Ruslan Zasukhin
ruslan_zasukhin at valentina-db.com
Sun Jan 31 14:53:14 CST 2010
On 1/29/10 7:53 PM, "Beatrix Willius" <bwillius at gmx.de> wrote:
Hi Beatrix,
For me is not clear history of this issue.
So you are using 4.3 long time, and how you have come to this?
* you have try to use Vcursor.database property first time?
* or this is old code and suddenly it have stoped to work?
Please clarify this.
And report to mantis I think.
> The parameters I'm using are the following:
> EVCursorLocation.kServerSide, EVLockType.kNoLocks,
> EVCursorDirection.kRandom
>
> A similar piece of code also crashes:
>
> Thread 8 Crashed:
> 0 libvkernel_fat_release.dylib 0x0e2b8434
> fbl::vsql::Cursor::get_Database() const + 16
> 1 V4RB.rbx_0.dylib 0x0df3c4cf Cursor_GetDatabase
> (REALobjectStruct*, int) + 125
> 2 com.mothsoftware.mailarchiverx 0x005b1bf2 VCursor.Database.Get
> %o<VDatabase>%o<VCursor>i4 + 99
> 3 com.mothsoftware.mailarchiverx 0x00812df9
> WriteMessageToValentina.Constructor%
> %o<WriteMessageToValentina>o<VCursor>o<MailFields> + 1836
> 4 com.mothsoftware.mailarchiverx 0x007e6223 MailParser.parse%b
> %o<MailParser> + 11573
> 5 com.mothsoftware.mailarchiverx 0x00889d7d ArchiveThread.DoWork%
> %o<ArchiveThread> + 2305
> 6 com.mothsoftware.mailarchiverx 0x008853ad
> ThreadPoolThread.Event_Run%%o<ThreadPoolThread> + 236
> 7 rbframework.dylib 0x00fe1a5d threadRun + 633
> 8 ...ple.CoreServices.CarbonCore 0x92ce903b CooperativeThread + 309
> 9 libSystem.B.dylib 0x90fb0fbd _pthread_start + 345
> 10 libSystem.B.dylib 0x90fb0e42 thread_start + 34
>
> And here the crashing line must be
>
> dim theTable as VTable = theCursor.Database.Table("Message")
>
> Am 29.01.2010 um 10:51 schrieb Beatrix Willius:
>
>> Hi Ivan,
>>
>> I'm using the local V4RB plugin so no server involved. I'm not in
>> front of my code right now and the brain is getting older each day.
>> As far I remember I'm using the recommended cursor parameters
>> (serverside, read/write).
>>
>> Don't I have to use new for VDatabase as for every other class? Will
>> try this evening to remove the line.
>>
>> Unfortunately, the code below is part of a good half of the backend
>> of my app so it will be not easy to make a simple project for
>> reproducing this error.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list