10-06-2011 01:28 AM
I added your code immediately after InitCVIRTE() at the beginning of my application, and I'll let you know.
Not deleting the process when it already exists didn't completely solve the problem, but the situation is better: the Variable engines now hangs twice or three times a day (an not 20 times!!)
10-11-2011 07:24 AM
OK. I can confirm that the problem is not completely solved.
How can I further debug the issue?
10-13-2011 02:40 AM
I have one additional information:
I hope this helps.
10-13-2011 10:48 AM
Do the two conditions you mentioned above happen as a result of the CVI application, or do they both occur even if you do not run your application on startup?
10-13-2011 11:08 AM
As I said in one of my previous messages: it's not a problem of running my application on startup!!!!
While developing m applications, sometimes I'm able to successfully launch the application itself several times, then at some moments it doesn't work anymore and I must restart my PC.
After some empirical test I found out that if I launch my application the first time immediately after system bottom (and then I stop it, starting writing some modifications to the source code), I'll able to develop for some hours before the engine hangs.
If I don't launch the application immediately after the bottom, the first or the second time I launch it (inside CVI or as standalone executable, it doesn't matter) the engine hangs.
And sometimes the engine hangs even re-launching the application without any modification to the source code!
So the question is: how can I debug why the engine hangs (and I see this at least 2 or 3 times a day)?
After having applied the workaround you proposed (basically not to delete the variables if they already exist) I see an engine hang 2 or 3 times a day. Without this workaround I saw an engine hang 25-30 times a day. And every time I must reboot the PC.
I think the problem is in some race condition or concurrent access to some network resource done from Variable Engine and some other application and/or Windows service...
10-13-2011 01:28 PM
Vix,
I have sent you a private message with an attachment for advanced troubleshooting. This should allow us to create a log of the MXS service. Please follow the directions and send me the logs back.
10-14-2011 01:13 AM
I can't find any private message yet. Have you already sent it?
10-14-2011 04:25 AM
My mistake. I haven't seen the private message. I've just answered
07-08-2019 12:43 PM
Hi Vix,
Have you found a reliable solution to this issue already. If so, could you share how you solved it
07-09-2019 01:20 AM
The topic is quite old and so I had to search into the old email to find the answer.
I don't know if what happened to me 8 years ago (with WinXP and Win7) can be related to what happens now, but I try to summarize what we found.
The issue came from the PC of one of my colleague, who had installed a Microsoft Loopback Adapter on hi WinXP PC.
When he joined the corporate domain with the Loopback Adapter enabled, my PC crashed immediately.
This post on NI forum is related to some issue with Loopback Adapter, but I wasn't able to find if this is related to my issue.
After some weeks, @D_Biel found a similar issue on his own PC, generated by MS Loopback Adapter on Win7.
In his case, a couple of settings helped:
This issue had been highly prioritized by NI team and (probably) a newer relase of some NI services could have fixed the issue (I can't say).
I haven't received any update since 2012, but I asked my colleague to uninstall the MS Loopback Adapter and I solved my issue.
In the meanwhile, I and the collegue changed our PCs and I didn't see the issue anymore.