VCursor.Database crashes
Beatrix Willius
bwillius at gmx.de
Fri Jan 29 11:53:24 CST 2010
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.
>
> valentina-bounces at lists.macserve.net schrieb am 29.01.2010 09:13:30:
>
>> I will try to reproduce it.
>> But please, provide more info - what kind of cursor (Client or
>> server)?
>> Under vServer or locally?
>>
>>> The code seems to be quite simple:
>>
>>> if hasCursor = nil then Return
>>> theCursor = hasCursor
>>> ValentinaDB = new VDatabase
>>> ValentinaDB = theCursor.Database
>>> theMailApplication = hasMailApplication
>>
>> Why do you create a db instance first:
>> ValentinaDB = new VDatabase
>> and then replace it with another db instance?
>> ValentinaDB = theCursor.Database
Mit freundlichen Grüßen/Regards
Trixi Willius
http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macserve.net/pipermail/valentina/attachments/20100129/a1392dc9/attachment-0001.html
More information about the Valentina
mailing list