Bug? RAF.WriteObject will write Null when called from a B4A Compiled library

thedesolatesoul

Expert
Licensed User
Longtime User
OK. So didnt have enough space to define the whole problem.
This is a problem with Custom Types into Lists.

Lets say I have a list MyList of custom type object MyType.
I create a class, and write the object with:
RAF.WriteObject(MyList, False, RAF.CurrentPosition)
I read it back, it works fine.

Now I compile the class to a lib. Call it in another project.
It reads back null from all the objects.

To demonstrate this I attach two samples.
First open CustomTypeLib (which contains the class, you can run this, and also compile this to lib)
Then open CustomTypeLibTest (which requires the library you compiled with the first project)

It is hard to tell whether the null is coming from the read or write, but I think it happens on the write by opening the file in a notepad++.
 

Attachments

  • CustomTypeLib.zip
    6.5 KB · Views: 179
  • CustomTypeLibTest.zip
    6 KB · Views: 185
Top