Menu

#35 SetData function does not unlock data when error in is TRUE

open
9
2007-07-24
2007-07-23
Jim Kring
No

When an error flows into SetData, the object is not being unlocked. This causes problems, because it requires that the developer check for errors outside this function and then explicitly handle unlocking on the error condition. It is recommended that this function operate in the same fashion regardless of the error in condition and merge any internal errors with the upstream error.

Discussion

  • Jim Kring

    Jim Kring - 2007-07-23

    Logged In: YES
    user_id=288901
    Originator: YES

    Image of SetData before fix.
    File Added: before_fix.png

     
  • Jim Kring

    Jim Kring - 2007-07-23

    Image of SetData before fix.

     
  • Jim Kring

    Jim Kring - 2007-07-23

    Logged In: YES
    user_id=288901
    Originator: YES

    Image of SetData after fix.
    File Added: after_fix.png

     
  • Jim Kring

    Jim Kring - 2007-07-23

    Image of SetData after fix.

     
  • Jim Kring

    Jim Kring - 2007-07-23

    Logged In: YES
    user_id=288901
    Originator: YES

    A decision was made by me (Jim Kring) and Tomi Maila to unlock the data and set the data with the input data on error in = TRUE. The input error will take priority over any internal errors raised in this function.

     
  • Jim Kring

    Jim Kring - 2007-07-23

    Logged In: YES
    user_id=288901
    Originator: YES

    Note: Classes created with the buggy template will have to be upgraded manually.

     
  • Jim Kring

    Jim Kring - 2007-07-23
    • status: open --> pending
     
  • Jim Kring

    Jim Kring - 2007-07-23

    Logged In: YES
    user_id=288901
    Originator: YES

    Changing status to pending for review by Tomi.

     
  • Tomi Maila

    Tomi Maila - 2007-07-24

    Logged In: YES
    user_id=1699817
    Originator: NO

    The same issue applies to derived template ogrsc_active_obj_tmpl

     
  • Jim Kring

    Jim Kring - 2007-07-24

    Logged In: YES
    user_id=288901
    Originator: YES

    Thanks, Tomi. I've changed the issue status back to OPEN.

     
  • Jim Kring

    Jim Kring - 2007-07-24
    • status: pending --> open
     
  • Jim Kring

    Jim Kring - 2007-07-24
    • status: open --> pending
     
  • Jim Kring

    Jim Kring - 2007-07-24

    Logged In: YES
    user_id=288901
    Originator: YES

    Tomi, I've changing status to pending for your review.

     
  • Jim Kring

    Jim Kring - 2007-07-24
    • status: pending --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.