-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opcflux panic: runtime error: invalid memory address or nil pointer dereference #20
Comments
@bnjroos What OPC DA Automation Wrapper do you have installed? Do the examples in the example folder work? Please add opc.Debug() to your code. |
I've reinstalled gbda_aut.dll once again, no more errors however my server is not detected (cf opc-cli output). I manage to browse it using several tools such as MatrikonOPC Explorer, OpenOPC and another java library.
My opc server is codesys v2.3 server. |
This package uses the OPC Automation Interface (it loads the wrapper and executes the wrapper's code as you would in a VB application); it does not directly connect to the server unlike the applications you mentioned (see here for an OPC Automation Wrapper introduction). If the examples work with the Graybox simulation server and Graybox wrapper than the code works. But, if it doesn't work in your setup, it has most likely something to do with the communication between your wrapper and the OPC server. To avoid this, I usually make sure that the entire application stack is 32bit or 64bit (opc da server, wrapper, and golang app). Hope this helps. |
I've already put everything in 32bit, I've just installed Gray Box Simulator and my server now shows up however connection fails. Still trying to figure out why. And gray box is not listed: screencap |
Thank's :) |
From the Readme: "the automation wrapper is usually shipped as part of the
OPC Core Components of your OPC Server."
If you don't have an opc server installation, maybe you can get the core
components from the opc foundation:
https://opcfoundation.org/developer-tools/samples-and-tools-classic/core-components
…On Thu, 14 Nov 2019, 09:54 Darkness, ***@***.***> wrote:
I have the same problem with opc-cli list localhost.
In my Win10 64 bit system, how can I install OPC.Automation.1?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20?email_source=notifications&email_token=AHMKOVVYIAGNJNB2KGUDWIDQTUG2PA5CNFSM4JCXTTO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEBCKWI#issuecomment-553788761>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHMKOVVVSABLXZFUBJXHJWDQTUG2PANCNFSM4JCXTTOQ>
.
|
@konimarti Yes, I have already installed |
The correct wrapper name can be found in the registry. It seems that using
"OPC Automation.2" is worth a try and could be added to the list of
wrappers. Can you report back if it worked?
…On Thu, 14 Nov 2019, 10:48 Darkness, ***@***.***> wrote:
I checked my system with oleview, and found this:
[image: OPC2]
<https://user-images.githubusercontent.com/3746639/68845737-d56b5200-0706-11ea-8851-c5353a2f8085.PNG>
does it means need use OPC.Automation.2?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20?email_source=notifications&email_token=AHMKOVXI7N4CXCSDR2VVUQDQTUNGHA5CNFSM4JCXTTO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEBHRSA#issuecomment-553810120>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHMKOVSOFFU2IV7FN2YC3SLQTUNGHANCNFSM4JCXTTOQ>
.
|
Have you tried to set GOARCH=386 (in Powershell $ENV:GOARCH=386)?
…On Thu, 14 Nov 2019, 11:43 Darkness, ***@***.***> wrote:
OPC.Automation.1 does exist in the register:
[image: reg]
<https://user-images.githubusercontent.com/3746639/68850053-377b8580-070e-11ea-8403-fea04c9d842e.PNG>
but oleutil.CreateObject(wrapper) still failed. Are there any other clue
I can follow up on?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20?email_source=notifications&email_token=AHMKOVUBDQBM5QIENEBYOETQTUTTNA5CNFSM4JCXTTO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEBMU7Y#issuecomment-553831039>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHMKOVXWGDFIVW65DT3HNNLQTUTTNANCNFSM4JCXTTOQ>
.
|
你好,可以提供一个供我调用的函数吗,我调用你这个函数,就可以列出电脑上面所有的opc服务器 |
你好 请问你解决了吗,我也不行, |
I am done with Troubleshooting solution. |
OPC 2020/09/19 18:17:15 Could not load OPC Automation object with wrapper OPC.Automation.1 |
I've installed opcflux and I get the following:
Any idea how to make it work ?
thanks,
The text was updated successfully, but these errors were encountered: