[ADK-V4RB 0005252]: Using Valentina.WriteToLog without initializing
Ruslan Zasukhin
ruslan_zasukhin at valentina-db.com
Mon Dec 6 10:02:54 CST 2010
On 12/6/10 5:58 PM, "Beatrix Willius" <bwillius at gmx.de> wrote:
> Ahem, normally nothing should crash. Even if this is the result of my own
> stupidity. What do the others think?
This have no sense.
We have 1000 methods in V4RB, line in anyother ADKs.
If we will add into EACH method something as
if( !gInited )
return false;
Then for applications with correct code we get significant penalty.
Why we need do this?
YOU HAVE WRITE wrong code.
You have get crash as sign of this.
Correct code and continue.
Nobody asks that strlen(NULL) did not crash.
It just crash. Because it must be fastest.
Its YOU and YOUR CODE is wrapper around V4RB.
You and your code also should take care about correctness
Your GUI also should filter data of user enters.
Not only DBMS layer...
> Begin forwarded message:
>
>> From: Mantis Bug Tracker <vbt at valentina-db.com>
>> Date: 5. Dezember 2010 20:50:47 MEZ
>> To: bwillius at gmx.de
>> Subject: [ADK-V4RB 0005252]: Using Valentina.WriteToLog without initializing
>>
>>
>> The following issue has been CLOSED
>> ======================================================================
>> http://www.valentina-db.com/bt/view.php?id=5252
>> ======================================================================
>> Reported By: Beatrix Willius
>> Assigned To:
>> ======================================================================
>> Project: ADK-V4RB
>> Issue ID: 5252
>> Category: (No Category)
>> Reproducibility: have not tried
>> Severity: minor
>> Priority: normal
>> Status: closed
>> Resolution: open
>> Fixed in Version:
>> ======================================================================
>> Date Submitted: 2010-12-05 16:20 CET
>> Last Modified: 2010-12-05 20:50 CET
>> ======================================================================
>> Summary: Using Valentina.WriteToLog without initializing
>> Description:
>> Was trying to produce a VException to test something on Cocoa, but a single
>> line
>> of code
>>
>> Valentina.WriteToLog "test"
>>
>> crashes hard.
>>
>> 1 libvshared_fat_release.dylib 0x0e4a0044
>> fbl::StToUTF16::StToUTF16(unsigned
>> int, char const*) + 36
>> 2 V4RB.rbx_0.dylib 0x0e40d17c
>> Valentina_WriteToLog(REALstringStruct*) + 56
>> 3 Mein Programm.debug 0x00227844 Valentina.WriteToLog%%s + 48
>> ======================================================================
>>
>> ----------------------------------------------------------------------
>> (0005442) Ruslan Zasukhin (administrator) - 2010-12-05 20:50
>> http://www.valentina-db.com/bt/view.php?id=5252#c5442
>> ----------------------------------------------------------------------
>> OF course it crashes hard, because nothing is inited.
>>
>> Issue History
>> Date Modified Username Field Change
>> ======================================================================
>> 2010-12-05 16:20 Beatrix WilliusNew Issue
>> 2010-12-05 20:50 Ruslan ZasukhinNote Added: 0005442
>> 2010-12-05 20:50 Ruslan ZasukhinStatus new => closed
>> ======================================================================
--
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