Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Application gets stuck on exit

More
29 Mar 2011 10:04 #334 by support
R.,
This is going to be nearly impossible to resolve without having a “repro” application.

From the “hints” in the text below, it looks like that the customer is using the COM version of the component, from C++. In general, the exit scenarios get very complicated here, especially when the component is run In-process. Can you please ask the customer what have they checked in EasyOPC-DA Options, and if “In-process server” is checked, then uncheck it, and leave only “Local server” checked?

Regards,
<span style="font-family: "Arial","sans-serif"; color: #1f497d; font-size: 10pt">Zbynek Zahradnik

Please Log in or Create an account to join the conversation.

More
29 Mar 2011 10:03 #333 by support
<span style="font-family: "Tahoma","sans-serif"; font-size: 10pt">From:<span style="font-family: "Tahoma","sans-serif"; font-size: 10pt"> R.
Sent: Monday, March 28, 2011 7:54 PM
To: Zbynek Zahradnik
Subject: Data.NET Error

..... [a customer] ..... is using Data.NET and [...] says:

<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">Occasionally, my application gets stuck on exit. This seems to happen when there is no actual OPC server that client can connect to. Any attempts to communicate with the server return error as they should, but the program hangs inside __crtExitProcess()/ExitProcess()
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">The dump file is attached. Do you know of anything that may cause such behavior?
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">We do use apartment model for COM:
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">we call CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">And have _ATL_APARTMENT_THREADED flag defined.
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">Unfortunately I cannot reproduce the problem with the small app.
<span style="font-family: "Microsoft Sans Serif","sans-serif"; color: black; font-size: 8.5pt">
The dump file had an error message number 0x80000004: A trace trap or other single-instruction mechanism signaled that one instruction has been executed. I haven’t been able to find any helpful information on this error. Is he just missing the CoUnitialize?

Any ideas on this error would be great.

Thanks,
<span style="font-family: "Calibri","sans-serif"; color: black; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">R.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.051 seconds