"Write changes before the correct workarea was selected"

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
ic2
Posts: 1861
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

"Write changes before the correct workarea was selected"

Post by ic2 »

Hello Robert,

I read this in theWhatsnew for X# 2.5.2.0 (Cahors)

• Several DbServer methods were calling a method to write changes before the correct workarea was selected. This was an old bug originating in VO and has been fixed.

Could you tell me which methods in VO did this? We sometimes have issues with overwritten records or where for some unexplainable reason something is not written as expected. We do normally see this only once in many 100's (or even 100.000's) of comparable write actions but knowing what is wrong in VO might help finding the cause.

Dick
User avatar
wriedmann
Posts: 3773
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

"Write changes before the correct workarea was selected"

Post by wriedmann »

Hi Dick,
this was only the cause when CC_OPTIMISTIC was set.
The methods where it is occurring (even in SP4b) are OrderScope(), Pack(), SetOrder(), Update().
You can try with this RDD classes DLL (where it is fixed also for VO):
https://www.riedmann.it/download/VO28RDD.zip
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4552
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

"Write changes before the correct workarea was selected"

Post by robert »

Dick,
If you look at the VOSDK source in our github repo, in the RDD folder you can see the change history:
https://github.com/X-Sharp/XSharpPublic ... lasses_SDK
Click on the History button on the top right
You will see that the last commit listed here is the one that does this. You can see exactly which changes we made.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
ic2
Posts: 1861
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

"Write changes before the correct workarea was selected"

Post by ic2 »

Hello Wolfgang, Robert,

@Wolfgang: so this is a replacement for the VO28RDD.dll without the mentioned issues? This is great! Did you apply the X# changes in the SDK and compile the DLL?

@Robert. Thanks for the link. I am not really familiair with Github but if see some '7 days' messages where I understand you moved, removed and reinserted SELF:__OptimisticFlush() in several methods. If these are in Wolfgang's VO DLL then these command will be a bit more reliable in VO thanks to the work in X# :)

Dick
User avatar
robert
Posts: 4552
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

"Write changes before the correct workarea was selected"

Post by robert »

Dick,

Maybe it is time to familiarize yourself with GitHub.
There are heaps of source code there with things you can use and do not have to write yourself !

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
wriedmann
Posts: 3773
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

"Write changes before the correct workarea was selected"

Post by wriedmann »

Hi Dick,
the VO DLL is the most current VO SDK source with the changes applied.
I had discovered this bug when I worked with a customer on the migration from VO 2.5 to 2.8 (I was really shocked how much invalid code 2.5 compiles....).
And since the X# DLLs should be corrected, the same changes are applied to the X# sources.
Wolfgang
P.S. on the customer sites where you have the update problems: do you have there a mix of different OS versions and/or different language versions on on the client PCs?
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
ic2
Posts: 1861
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

"Write changes before the correct workarea was selected"

Post by ic2 »

Hello Robert,
robert wrote: Maybe it is time to familiarize yourself with GitHub.
There are heaps of source code there with things you can use and do not have to write yourself !

Robert
I've checked out almost every system for code management in the past years. None worked. I've lost code with it, or it does not flush, it's always something ("Git failed with a fatal error." I've seen them all). Git/source control never seem to work. Also code in Github is far from readable/accessible.

I often use working code from others but instead of Github I find it all (with some explanation and readable and clear code snippets) in sites like Stackoverflow, Codeproject and more.

Finally I assume you are aware of the controversy around Github caused by Microsoft? The latest news is that GitHub contracted with ICE, a controversial company that should not be involved in an Open Source Code repository system. See e.g.
https://www.theatlantic.com/technology/ ... ts/604339/

So I prefer to stay as far away from Github as possible.

Dick
ic2
Posts: 1861
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

"Write changes before the correct workarea was selected"

Post by ic2 »

Hello Wolfgang,

Thanks for the changes you made in the DLL. We are going to use it in our own systems and then distribute the DLL for clients too.
We have a -rare- situation that existing records are overwritten by what should have been in an appended record. No idea if any of the issues could cause this. As it is only 2 or 3 isolated cases a year, research (logs etc) of how it happened almost always lead to nothing. It would be great if it is an issue with the VO DLL. All these issues are on RD accounts, so there's no mix of different OS-es or languages. The ADS DBFCDX files concerned are 100% VO.


Dick
Post Reply