Newbie alert - Creating databases in Lingo

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Apr 13 11:51:38 CDT 2003


on 4/13/03 11:46 AM, Zav - Alex Zavatone at zavpublic at mac.com wrote:

Hi Zav,

>> So if you will find reproducible way to crash V4MD,
>> Please send me small project that do this.
>> Okay?
>> 
>> I am not sure, but from above, follow that crash happens with bad, NOT
>> Existed path ?
>> 
>> Or because of 2 CreateDatabase() ?
> 
> It happens in the first addfield after the second invalid database
> creation.  So it looks like adding a field to table within an invalid
> database object.

Okay, this explain things.

After second Bad CreateDatabase() you get bad dbRef.

Actually you need check ValentinaError() after each critical Valentina call.
If you see that error happens you must not continue attempts to use dbRef or
cursorRef because they are NOT valid.

If you want say -- it must not crash, then I agree with you.
In the same time we want avoid many checks.

So, during DEVELOPMENT, you need set DebugLevel for Valentina as 2.
In this debug mode, V4MD will type you error messages in msg window,
And it will PROTECT self from such crashes.

For RELEASE you need remove DebugLevel to get faster speed.

> Now that I look at it, it's quite poor code of mine.  I'll try to
> come up with some excuse later.
> 
> A sample is on the way.
> 
> I don't TRY to break things.  It just happens.

I think you do not need send me nothing now.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list