<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to PriviledgedInstruction Exception</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/</id><updated>2022-02-10T15:16:19.175000Z</updated><subtitle>Recent posts to PriviledgedInstruction Exception</subtitle><entry><title>PriviledgedInstruction Exception</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/?limit=25#5adb" rel="alternate"/><published>2022-02-10T15:16:19.175000Z</published><updated>2022-02-10T15:16:19.175000Z</updated><author><name>mike-at-gms</name><uri>https://forge.codesys.com/u/mike-at-gms/</uri></author><id>https://forge.codesys.com22c040dcbbd14dd3e84e3bed163abc52b8be6ecc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you, the checkbounds function identified an array problem.&lt;/p&gt;
&lt;p&gt;I still do not understand the exception (or why it was not thrown when the array was created) other than my code would 'sometimes' try to access restricted memory.&lt;/p&gt;
&lt;p&gt;The exception has not returned yet to verify all this, but I have a tool to find problems if it comes back.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PriviledgedInstruction Exception</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/?limit=25#d814" rel="alternate"/><published>2022-02-10T08:18:11.012000Z</published><updated>2022-02-10T08:18:11.012000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comea53f77823b55434b0fd169b579f20dba47e104a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;please start to analyze the application with checkbounds first:&lt;br/&gt;
&lt;a href="https://faq.codesys.com/pages/viewpage.action?pageId=3538982" rel="nofollow"&gt;https://faq.codesys.com/pages/viewpage.action?pageId=3538982&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PriviledgedInstruction Exception</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/?limit=25#aaf3" rel="alternate"/><published>2022-02-09T22:19:22.358000Z</published><updated>2022-02-09T22:19:22.358000Z</updated><author><name>mike-at-gms</name><uri>https://forge.codesys.com/u/mike-at-gms/</uri></author><id>https://forge.codesys.com48c8a9bffb91e64b057604d192d06f0d44ffae79</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Update:&lt;br/&gt;
I took a working project and migrated changes in small parts. I tested each change and then copied the working project to a different folder. At some point, the project started throwing the exception. I tried to compare files but the .bootinfo was not helpful.&lt;br/&gt;
HOWEVER, I then copied the 'working' project back to the original folder. The exception remains. I have verified that the two .project files are exactly the same. If I open the 'working' project in the sub folder, it works. Same .project file in two locations, one works the other does not.&lt;br/&gt;
On the project that does not work, I have performed a 'Clean' and rebuild and I have deleted all other files in the folder to force a rebuild. The 'broken' file is still broken even though it is the same .project file.&lt;/p&gt;
&lt;p&gt;What could be going on?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PriviledgedInstruction Exception</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/?limit=25#4e93" rel="alternate"/><published>2022-02-09T13:34:26.058000Z</published><updated>2022-02-09T13:34:26.058000Z</updated><author><name>mike-at-gms</name><uri>https://forge.codesys.com/u/mike-at-gms/</uri></author><id>https://forge.codesys.comc013991fa1ef5a19f6af080ed7ea7fe3b8ae977e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The project is large and proprietary. The steps involved to trigger the exception also require a TCP client that is specific to this application. &lt;/p&gt;
&lt;p&gt;The general steps are: PLC starts, initialization complete, TCP Listener initialized, client begins TCP communication. During handshaking, an acknowledgement of the connection is retuned. While adding the ACK to a queue the exception is thrown. The TCP communications code has not changed for months. I can connect and communicate every time until the 'magic' change (not related to communications at all) causes this to stop working. And from that point on, nothing I do will allow it to work.&lt;/p&gt;
&lt;p&gt;I am not looking for a solution to my 'code error', I am looking for general information about the exception so I can narrow down the part of my project that has 'changed'. If I know more about the source of the error, maybe I could build a test project.&lt;/p&gt;
&lt;p&gt;What system generates this exception; Windows or the CodeSys runtime (I am using Control RTE V3 v. 3.5.15.0)? Why does a seemingly simple code change provoke the exception but reverting that change does not stop the exception?&lt;/p&gt;
&lt;p&gt;I am going to start again with my working backup and try to isolate a broken version. I will then try to compare any files I can find (like the .bootinfo files).&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PriviledgedInstruction Exception</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/?limit=250#60ba" rel="alternate"/><published>2022-02-09T07:40:10.814000Z</published><updated>2022-02-09T07:40:10.814000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.com2f5fb899d049e6c275c8abdc2c07ea8a9d87ba4f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you post your project then maybe we can check your steps and reproduce the error.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PriviledgedInstruction Exception</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68f595f1b2/?limit=25#8a26" rel="alternate"/><published>2022-02-09T02:13:17.173000Z</published><updated>2022-02-09T02:13:17.173000Z</updated><author><name>mike-at-gms</name><uri>https://forge.codesys.com/u/mike-at-gms/</uri></author><id>https://forge.codesys.comaeb638293cef31f499166d5e4b9c02743229142d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have project in 3.5 SP15 64bit that has been working fine for months. Today, I made a seemingly innocent change and suddenly I am getting the following exception:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;SOURCEPOSITION&lt;/em&gt; App=&lt;span&gt;[Application]&lt;/span&gt; area=3, offset=1422839&lt;br/&gt;
&lt;em&gt;EXCEPTION&lt;/em&gt; &lt;span&gt;[&amp;lt;excpt&amp;gt;PriviledgedInstruction&amp;lt;/excpt&amp;gt;]&lt;/span&gt; occurred: App=&lt;span&gt;[&amp;lt;app&amp;gt;Application&amp;lt;/app&amp;gt;]&lt;/span&gt;, Task=&lt;span&gt;[&amp;lt;task&amp;gt;CommunicationTask&amp;lt;/task&amp;gt;]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The exception occurs on the same line of code (which has not changed for weeks) no matter what I do. Undoing the last change does not fix the problem.&lt;/p&gt;
&lt;p&gt;I restored an older version of the project and slowly copied the my recent changes and checked the results. I was able to get most of the changes copied before another simple change cause the exception.&lt;/p&gt;
&lt;p&gt;I cannot find any information about this exception.&lt;/p&gt;
&lt;p&gt;**What causes this exception and how do I undo a change that introduces it since it does not appear to be an actual error in my code?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>