<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to exception after all code has been scanned</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/facb3da8bb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/facb3da8bb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/facb3da8bb/</id><updated>2020-02-27T13:50:16.162000Z</updated><subtitle>Recent posts to exception after all code has been scanned</subtitle><entry><title>exception after all code has been scanned</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/facb3da8bb/?limit=25#7cdf" rel="alternate"/><published>2020-02-27T13:50:16.162000Z</published><updated>2020-02-27T13:50:16.162000Z</updated><author><name>tvm</name><uri>https://forge.codesys.com/u/tvm/</uri></author><id>https://forge.codesys.com60453f30760514fa138236e84c808ca1948631f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;THANK YOU!&lt;/p&gt;
&lt;p&gt;I spent all day yesterday trying to figure this out.  &lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>exception after all code has been scanned</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/facb3da8bb/?limit=25#3a62" rel="alternate"/><published>2020-02-27T13:50:16.030000Z</published><updated>2020-02-27T13:50:16.030000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com1244456c699f565433cdca7d15430dcdcd07fa5e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;I would recommend to start with the 'checkbounds' implicit check (maybe you've done this already?!)&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://faq.codesys.com/pages/viewpage.action?pageId=3538982" rel="nofollow"&gt;https://faq.codesys.com/pages/viewpage. ... Id=3538982&lt;/a&gt;&lt;br/&gt;
As long you see no valid address in the exception, this seems a crash in the runtime not in the iec code.&lt;br/&gt;
So if checkbounds does not lead to a result I fear you need  the plc manufaturer to investigate.&lt;br/&gt;
Sure removing code parts should help to to find the reason of the exception.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>exception after all code has been scanned</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/facb3da8bb/?limit=25#ada2" rel="alternate"/><published>2020-02-27T13:50:15.905000Z</published><updated>2020-02-27T13:50:15.905000Z</updated><author><name>tvm</name><uri>https://forge.codesys.com/u/tvm/</uri></author><id>https://forge.codesys.combfb3d44acd7a666b0ed21644d6298b1f0bb637df</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have an application which is causing an access violation exception.  I can reproduce the exception, but I can't figure out what line of code is causing it.  I get the following log messages:&lt;br/&gt;
&lt;em&gt;EXCEPTION&lt;/em&gt; &lt;span&gt;[AccessViolation]&lt;/span&gt; occurred: App=&lt;span&gt;[Application]&lt;/span&gt;, Task=&lt;span&gt;[MAST]&lt;/span&gt;&lt;br/&gt;
&lt;em&gt;SOURCEPOSITION&lt;/em&gt; App]&lt;span&gt;[Application]&lt;/span&gt; area=0, offset=0&lt;/p&gt;
&lt;p&gt;I've set breakpoints all throughout the code, to stop the scan before the exception occurs, but when I start to step through it to see where the problem is, I can step all the way to the end of my code, right down to the last line of the last function block of the last program in MAST, and still not trigger the exception.  I then set a breakpoint at the first line of the first function block in the first program in MAST.  The exception occurs before it hits that breakpoint.  So it appears to be happening after all my code has been scanned, before the next scan.&lt;br/&gt;
I've disabled all my I/O, visualizations, and Symbol Configuration, with the same results.&lt;/p&gt;
&lt;p&gt;I set MAST up on a 30 second cycle so I could try to isolate whether it was happening at the beginning or the end of the scan.  It is definitely happening after the end of a scan, not before the beginning of the next scan.&lt;/p&gt;
&lt;p&gt;What else happens after the code has been scanned?&lt;/p&gt;
&lt;p&gt;using:&lt;br/&gt;
Schneider Machine Expert v1.1 SP1 (Codesys 3.5.12.80)&lt;br/&gt;
Schneider M241 PLC&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>