<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Access violation on RaspberryPi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/916a7932db/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/916a7932db/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/916a7932db/</id><updated>2020-02-27T13:48:18.469000Z</updated><subtitle>Recent posts to Access violation on RaspberryPi</subtitle><entry><title>Access violation on RaspberryPi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/916a7932db/?limit=25#347c" rel="alternate"/><published>2020-02-27T13:48:18.469000Z</published><updated>2020-02-27T13:48:18.469000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.comfb1f5fdde05ac6db68375622ef8134a0fe39f3cb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Make sure you get the pointer value correctly ex: ```&lt;/p&gt;
&lt;p&gt;pPointer := REF(bTempMem);&lt;/p&gt;
&lt;p&gt;&lt;code&gt;or&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;pPointer := REF(bTempMem&lt;span&gt;[0]&lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;```&lt;br/&gt;
Idealy put it in a cycling task (online edits may affects memory locations).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Access violation on RaspberryPi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/916a7932db/?limit=25#2095" rel="alternate"/><published>2020-02-27T13:48:18.403000Z</published><updated>2020-02-27T13:48:18.403000Z</updated><author><name>Shabroz.Gill</name><uri>https://forge.codesys.com/u/shabroz-gill/</uri></author><id>https://forge.codesys.com1fc9996e81619cbeab34c1413d706a559e9ce967</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a unique problem where the code runs fine on a windows soft plc, but gives an access violation on a raspberry pi&lt;br/&gt;
There is a large array initialized in a program/function block "bTempMem : ARRAY&lt;span&gt;[0..1000000-1]&lt;/span&gt; OF BYTE;"&lt;/p&gt;
&lt;p&gt;This is used initialize certain arrays by a function block using pointer access to it. It throws an access violation when trying to write to it.&lt;br/&gt;
Strangely, if I declare this as a global variable, then i dont get any access violation&lt;/p&gt;
&lt;p&gt;Any help is appreciated&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>