Exceptions in App:Exec() in a project newly updated to 2.8
Posted: Thu May 13, 2021 3:08 pm
Hello All
I think this could be my first post on the forum after lurking for some time so please be gentle with me.
I'm working with an application that was migrated from VO to X# 2.7 last year and behaved as expected, however after now moving to 2.8 we are encountering an issue.
Just a bit of background on the application and our environment. We use Visual Studio 2019 (the improvements to the integration are greatly appreciated, well done guys) and the application uses XS2Ado (thank you Robert for the new version) and also bBrowser. It's not a large project but is being used as a test bed for migrating a much larger project hopefully in the not so distant future.
So whats the problem?
Since moving to 2.8 we are having an issue with the App:Exec() throwing exceptions. App is sub-classed as XApp and everything appears to behave initially. We get our main shell window displayed, a login form which functions as expected but as soon as we call SELF:Exec in our XApp:Start we get an exception.
No exported method 'ACTIVE'
The stack trace we see in VS is
OOPHELPERS:DOSEND (Line: 0)
__INTERNALSEND (Line: 0)
APP:EXEC (Line: 0)
XAPP:START (Line: 120)
START (Line: 13)
Line 120 of our XApp:Start is just SELF:Exec()
I did try adding the EXECNORMAL at one point but we still get the same result.
I can't spot anything in our code that refers to 'ACTIVE' as a method but have noticed something a little strange in the project itself. Although the references to the various dll's go back to the XSharpAssemblies folder and the files are being copied to our build folders the Version of the files in the VS Reference Properties doesn't seem to be the same as the actual file details. For example XSharp.Core.dll is showing 2.6.0.0 in VS but 2.8.0.11 for the file itself. I don't know why or how this discrepancy could appear or if it's anything to do with the issue but thought I'd mention it.
I'm struggling to get past this at the moment and any help or ideas are greatly appreciated.
Thanks
Karl
I think this could be my first post on the forum after lurking for some time so please be gentle with me.
I'm working with an application that was migrated from VO to X# 2.7 last year and behaved as expected, however after now moving to 2.8 we are encountering an issue.
Just a bit of background on the application and our environment. We use Visual Studio 2019 (the improvements to the integration are greatly appreciated, well done guys) and the application uses XS2Ado (thank you Robert for the new version) and also bBrowser. It's not a large project but is being used as a test bed for migrating a much larger project hopefully in the not so distant future.
So whats the problem?
Since moving to 2.8 we are having an issue with the App:Exec() throwing exceptions. App is sub-classed as XApp and everything appears to behave initially. We get our main shell window displayed, a login form which functions as expected but as soon as we call SELF:Exec in our XApp:Start we get an exception.
No exported method 'ACTIVE'
The stack trace we see in VS is
OOPHELPERS:DOSEND (Line: 0)
__INTERNALSEND (Line: 0)
APP:EXEC (Line: 0)
XAPP:START (Line: 120)
START (Line: 13)
Line 120 of our XApp:Start is just SELF:Exec()
I did try adding the EXECNORMAL at one point but we still get the same result.
I can't spot anything in our code that refers to 'ACTIVE' as a method but have noticed something a little strange in the project itself. Although the references to the various dll's go back to the XSharpAssemblies folder and the files are being copied to our build folders the Version of the files in the VS Reference Properties doesn't seem to be the same as the actual file details. For example XSharp.Core.dll is showing 2.6.0.0 in VS but 2.8.0.11 for the file itself. I don't know why or how this discrepancy could appear or if it's anything to do with the issue but thought I'd mention it.
I'm struggling to get past this at the moment and any help or ideas are greatly appreciated.
Thanks
Karl