bBrowser errors
Posted: Mon Aug 01, 2022 1:40 pm
I was trying to solve some issues, see https://www.xsharp.eu/forum/public-prod ... ing-horror. It looked like the default installation of bBrowser consists of Debug instead of Release versions.
To be sure I tried to create the bBrowsers DLL's from the source. Unfortunately that ends in the following compiler error, in bConvertLogicToUsual:
Error XS9109 Argument 3 may not be passed with the '@' prefix
1 Not sure how I solve this without compromising the working. It is also a bit frustrating that this latest download (although from april 2021) isn't compiling in the latest X#.
How do I solve this?
2 The next step I tried is to re-include the latest bBrowser DLL in our project, from C:Program Files (x86)bBrowser.NET 4 (XSharp Edition)Assemblies. If I do that VS complains that the .Net version (of the bBrowser DLL's) is newer than the version of my project. VS doesn't tell me the actual versions, that was too much effort for the programmers, but I changed the project 4.7 which seemed fine. However, it looked like VS doesn't have any problem with a solution full of 4.6 based projects!
Why do I get a warning when I add a reference of a DLL targeting a newer .Net version but can I simply continue with everything else on the previous target version? Can't I change all target version at once for example?
3 As written I eventually ended up bDataColumn (Class).prg appearing in VS during my debug because it crashed at line 1250 (See some lines of the code, the last line is where it crashed) with the error below it. What is wrong with that?
Dick
To be sure I tried to create the bBrowsers DLL's from the source. Unfortunately that ends in the following compiler error, in bConvertLogicToUsual:
Error XS9109 Argument 3 may not be passed with the '@' prefix
Code: Select all
if IsLogic(uValue) .and. !IsLogic(uTemp)
if bConvertLogicToUsual(uValue, self:PropertyGet(#LogicValueIdentifier, NULL_ARRAY), @uTemp)
uValue := uTemp
endif
endif
How do I solve this?
2 The next step I tried is to re-include the latest bBrowser DLL in our project, from C:Program Files (x86)bBrowser.NET 4 (XSharp Edition)Assemblies. If I do that VS complains that the .Net version (of the bBrowser DLL's) is newer than the version of my project. VS doesn't tell me the actual versions, that was too much effort for the programmers, but I changed the project 4.7 which seemed fine. However, it looked like VS doesn't have any problem with a solution full of 4.6 based projects!
Why do I get a warning when I add a reference of a DLL targeting a newer .Net version but can I simply continue with everything else on the previous target version? Can't I change all target version at once for example?
3 As written I eventually ended up bDataColumn (Class).prg appearing in VS during my debug because it crashed at line 1250 (See some lines of the code, the last line is where it crashed) with the error below it. What is wrong with that?
Code: Select all
access Value as usual
// aktuellen Spaltenwert zurückgeben
local uValue as usual
local cbEBPrevious as usual
// Wert ermitteln
cbEBPrevious := ErrorBlock({|| _Break(NIL)})
Code: Select all
XSharp.Internal.WrappedException
HResult=0x80131500
Message=Exception of type 'XSharp.Internal.WrappedException' was thrown.
Source=XSharp.RT
StackTrace:
at XSharp.RT.Functions._Break(__Usual uValue)
at bTools.bBrowser.bDataColumn.<>c.<get_Value>b__107_0() in C:TempVisual Studio 2019bBrowser.NET 4 (XSharp Edition)bBrowserColumnsbDataColumn (Class).prg:line 1520
at <>f__AnonymousType0.Eval(__Usual[] Xs$Args)
at XSharp.RT.Functions.Eval(ICodeblock block, __Usual[] args)
at XSharp.RT.Functions.Eval(__Usual uCodeBlock, __Usual[] args)
at VO.DbServer.Error(__Usual[] Xs$Args)
at VO.DbServer.FIELDGET(__Usual[] Xs$Args)