[BUG]ORM: Properties of type kbmMWNullable gets AV with SafeValue

Home Forums kbmMW [BUG]ORM: Properties of type kbmMWNullable gets AV with SafeValue

Tagged: , ,

Viewing 0 reply threads
  • Author
    Posts
    • #53525

      Hi object properties declared as (example):

      [kbmMW_Field(‘name:image’,ftGraphic)]
      property Image:kbmMWNullable<TMemoryStream> read FImage write SetImage;

       

      Get AV when calling:

      p.Image.SafeValue.LoadFromFile(‘..\..\face.png’);

      This because it seems safeValue returns a NIl pointer instead of an initialized TMemoryStream. I also tested with TkbmMWMemoryStream and does the same

      To reproduce this BUG, use the kbmMWORMMultitierDemo and click on ‘Rem,oveTables’ button

       

Viewing 0 reply threads
  • You must be logged in to reply to this topic.