Crashing after Shutdown -- advice to workaround.

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Feb 10 16:22:51 CST 2007


On 10/2/07 5:30 PM, "Beatrix Willius" <bwillius at gmx.de> wrote:

Hi Beatrix,
 
> there was a problem with FileEndings(currentAttachment), which caused an
> OutOfBounds. If it's not Valentina, where is the application crashing? By
> itself, the crash isn't a problem, but it's confusing the users.

As far as I see template of crash is next:

    fldText or blob = something

    ...  >>> here exceptino is throw,
    
    AddRecord()


---
    so AddRecord() is not executed, you go to Shutdown,
    which start cleanup, note that BLOB field is in DIRTY state.

---
Well, simple C++ test did not reproduce problem with shutdown.
Do you have way reproduce it?



----
I think you can try redesign a little code to avoid such crash future.

    move code which do/can throw exception BEFORE you start
    assign table fields. May be collect some result into local vars.

And only when you have all required info on hands, start assign table
fields.


-- 
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