I have problems with one of our applications written in C#:
In our main application we have a function which does some calculations every second:
From time to time, we have the problem that this calculation fails because of
- The value of the variable actValue jumps to 8.64E+7
- From one second to the next, the value of elapsedTime has 1 day higher.
I programmed another test application which does similar things like the function described above and have a test where both,
the test application and our main application run parallel on the same PicoMOD6.
-> The result was, that both, the test application and the main application have errors in the calculation funkcion.
The next test was to deactivate the calculation function in the main application.
-> The were still errors in the test application.
The next test was that I habve deactivated the main application the only let the test application run.
-> In this test I found no errors in the test application.
After some more tests, I found out that the problem seems to be located in the CAN-Bus operation of the main application:
When I start the main application with deactivated CAN-Bus communication (No CanPort opened), neither the main application nor the test application
have any errors.
Actually I have no ideas how to fix the problem or how the CAN-Bus operation in one application can cause problems in another application.
Have anyone ever had similar problems or has anyone an idea what can cause the problem?
And if yes, how to fix it?