xsharp.eu • Problem Writing Memo File in X# and Reading it from VO
Page 1 of 1

Problem Writing Memo File in X# and Reading it from VO

Posted: Thu Dec 23, 2021 11:36 am
by hilberg.it
Hi,
I have a strange problem, when I am writing to a FPT file in X# with RDDSETDEFAULT("DBFCDX"). I can read and write from it in X#. It works fine. But when I want to read from it in VO it states that the field is corrupted. I can fix the corruption by some prog that was suggested here, and it works again in VO.

Any ideas in which direction I could investigate? Could it be related to memoblock size or something like this?

As background information: I need the same database to be accessible from the ported X# app and from existing VO Apps. I hope this is possible.

Thank you very much already.

Problem Writing Memo File in X# and Reading it from VO

Posted: Thu Dec 23, 2021 12:08 pm
by Chris
Yes, there should be no problem sharing the same dbf/cdx/fpt from both X# and VO apps. Can you please post
the files, together with a runnable sample for both VO and X# that shows the problem, so we can have a look?

.

Problem Writing Memo File in X# and Reading it from VO

Posted: Thu Dec 23, 2021 8:32 pm
by hilberg.it
Hi Chris,
thanks for your help. Appreciate it. Great that this works in general!

I tried to extract the problem and build an Example App. But I couldn't reproduce the problem outside of my Business App.
In my app I noticed that the memo field gets filled with a very large empty string (255 characters). Adding an 'AllTrim' in X# solved the problem, that VO could not access the file anymore.
VO did not need an AllTrim and did not corrupt the field in that case. But I couldn't reproduce it in an App with that exact same String.

I thought that the length of the memo field might be exceeded?
Do you know where that is configured?

The Error Code was:
ERROR CODE: 32 [ CORRUPTION DETECTED ]
SUBSYSTEM: FLEXFILE
ERROR SUBCODE: 2006
OPERATION: Corruption detected in memo-file

Do you know what the code stands for?

Besides that I don't know why the issue occured. If I can reproduce it, I will tell you.

Cheers

Problem Writing Memo File in X# and Reading it from VO

Posted: Thu Dec 23, 2021 9:13 pm
by Chris
Hmmm, not sure what might have caused that in your main app. Robert has written those RDDs, let's see if he has an idea...

Problem Writing Memo File in X# and Reading it from VO

Posted: Thu Dec 23, 2021 9:20 pm
by robert
Guys,

It would help if we could get the DBF/FPT that VO thinks are corrupt.

Robert