<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error after stopping executable in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/209548#M118564</link>
    <description>My German's not what it used to be, but I believe this is the same problem I was having with a project a few months ago, where I was developing the executable on one machine and distributing to lab machines.  The programs ran on the other PCs just fine but the error message had to be cleared upon exiting every time.  I believe I called it into NI tech support and they told me to make sure my development PC and the distribution PC were using the same version of NI-VISA.  When I updated the distribution PC, the problem went away.  &lt;BR /&gt;If this doesn't fix your problem let me know and I can pour through my notes and verify this was my solution.</description>
    <pubDate>Tue, 26 Apr 2005 14:54:08 GMT</pubDate>
    <dc:creator>Zac Fisher - NGC</dc:creator>
    <dc:date>2005-04-26T14:54:08Z</dc:date>
    <item>
      <title>Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/209531#M118555</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;I'm working on a project, which now is almost finished. Unfortunately I discovered the attached error, after stopping the executable.&lt;BR /&gt;&lt;BR /&gt;The error appears on two different machines (both with WinXP).&lt;BR /&gt;&lt;BR /&gt;Could anyone of you figure out what could cause this error? A few weeks ago I had no problems and I can't remember any change which could be linked to OLE.&lt;BR /&gt;&lt;BR /&gt;If you need more information let me know.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Thomas&lt;P&gt;Message Edited by becktho on &lt;SPAN class="date_text"&gt;04-26-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:31 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2005 14:29:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/209531#M118555</guid>
      <dc:creator>becktho</dc:creator>
      <dc:date>2005-04-26T14:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/209548#M118564</link>
      <description>My German's not what it used to be, but I believe this is the same problem I was having with a project a few months ago, where I was developing the executable on one machine and distributing to lab machines.  The programs ran on the other PCs just fine but the error message had to be cleared upon exiting every time.  I believe I called it into NI tech support and they told me to make sure my development PC and the distribution PC were using the same version of NI-VISA.  When I updated the distribution PC, the problem went away.  &lt;BR /&gt;If this doesn't fix your problem let me know and I can pour through my notes and verify this was my solution.</description>
      <pubDate>Tue, 26 Apr 2005 14:54:08 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/209548#M118564</guid>
      <dc:creator>Zac Fisher - NGC</dc:creator>
      <dc:date>2005-04-26T14:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/209747#M118649</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Both PC's use the same version of NI-VISA and the error appears on both machines.&lt;BR /&gt;So I think this won't fix my problem.&lt;BR /&gt;&lt;BR /&gt;Do you have another idea?&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Tue, 26 Apr 2005 20:18:29 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/209747#M118649</guid>
      <dc:creator>becktho</dc:creator>
      <dc:date>2005-04-26T20:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/210347#M118898</link>
      <description>Guten Tag, Thomas! Wie geht's?&lt;BR /&gt;&lt;BR /&gt;The German error that you are getting:&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;&lt;I&gt;Die anweisung in ”0x77f75da0” verweist auf Speicher in ”0x050c2a74”. Der Vorgang "read" konnte nicht auf dem Speicher durchgeführt werden.&lt;/I&gt;&lt;/LI&gt;&lt;BR /&gt;is equivalent to the English error:&lt;BR /&gt;&lt;BR /&gt;&lt;LI&gt;&lt;I&gt;The instruction at ”0x77f75da0” referenced memory at ”0x050c2a74”. The memory could not be “read”.&lt;/I&gt;&lt;/LI&gt;&lt;BR /&gt;For troubleshooting this type of error, refer to the KnowledgeBase with the following name:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;LabVIEW Application Error: The instruction at "[address x]" referenced memory at "[address y]". The memory could not be "read".&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck!</description>
      <pubDate>Thu, 28 Apr 2005 07:17:41 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/210347#M118898</guid>
      <dc:creator>Philip_Courtois</dc:creator>
      <dc:date>2005-04-28T07:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/210350#M118899</link>
      <description>Hi Philip&lt;BR /&gt;&lt;BR /&gt;The error message is no problem actually, due to the fact that I'm a native german speaker.&lt;BR /&gt;&lt;BR /&gt;The problem is the reason. The windowtitle says "OleAutomation Window"... and I'm not aware of any ole object I use. The error also just appears after exiting labview if I ran the executable. If I test it in development mode there is no problem.&lt;BR /&gt;&lt;BR /&gt;I also have never seen the error while the program was running - just after exiting.&lt;BR /&gt;&lt;BR /&gt;It's really very strange and annoying :(.&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Thu, 28 Apr 2005 07:42:32 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/210350#M118899</guid>
      <dc:creator>becktho</dc:creator>
      <dc:date>2005-04-28T07:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211046#M119160</link>
      <description>Hi Thomas,&lt;BR /&gt;&lt;BR /&gt;Even though the &lt;A href="http://digital.ni.com/public.nsf/websearch/E8C5C452F04EF7BE86256EF50068CAAF?OpenDocument" target="_blank"&gt;KnowledgeBase&lt;/A&gt; is referring to the LabVIEW.exe object, I still think that it will give you an idea of what to look for.&lt;BR /&gt;&lt;BR /&gt;Let me know if it doesn't help, thanks.</description>
      <pubDate>Fri, 29 Apr 2005 17:16:49 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211046#M119160</guid>
      <dc:creator>Philip_Courtois</dc:creator>
      <dc:date>2005-04-29T17:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211273#M119283</link>
      <description>&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/28403"&gt;@becktho&lt;/a&gt; wrote:&lt;BR /&gt;Hi Philip&lt;BR /&gt;&lt;BR /&gt;The error message is no problem actually, due to the fact that I'm a native german speaker.&lt;BR /&gt;&lt;BR /&gt;The problem is the reason. The windowtitle says "OleAutomation Window"... and I'm not aware of any ole object I use. The error also just appears after exiting labview if I ran the executable. If I test it in development mode there is no problem.&lt;BR /&gt;&lt;BR /&gt;I also have never seen the error while the program was running - just after exiting.&lt;BR /&gt;&lt;BR /&gt;It's really very strange and annoying :(.&lt;BR /&gt;&lt;BR /&gt;Thomas&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Are you by any change using external DLLs or maybe CINs? This type of error is quite often due to a DLL corrupting memory it shouldn't even touch. The reason why this can happen are manyfold. First the DLL might contain a bug. Second the call to the DLL is not entirely correct configured. For instance if you pass an array of 32 elements allocated by LabVIEW to the Call Library Node but the DLL expects to be able to write 33 elements into the array it will scribble over some memory not belonging to the array but instead to some data used by LabVIEW to track its internal states. As long as you execute the program LabVIEW may never need to touch that area or only in rare circumstances but when LabVIEW closes down it wants to properly deallocate anything it has&lt;BR /&gt;created and will likely stumble over the memory incorrectly modified by the DLL.&lt;BR /&gt;&lt;BR /&gt;So I would first check for external DLLs or maybe CINs of any kind not coming standard with&lt;BR /&gt;LabVIEW. It is almost always the reason for such errors both in my applications and in most others I ever saw.&lt;BR /&gt;&lt;BR /&gt;Rolf Kalbermatter</description>
      <pubDate>Sun, 01 May 2005 18:47:23 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211273#M119283</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2005-05-01T18:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211327#M119309</link>
      <description>Hi Philip, Rolf&lt;BR /&gt;&lt;BR /&gt;I almost assumed that it could be a dll-call (I have just one dll used in my project) and it is as you both said.&lt;BR /&gt;&lt;BR /&gt;I made a llb to call the MessageBox-function (I like the icons these messages display) and this cause the problem.&lt;BR /&gt;&lt;BR /&gt;Attached is the actual version. Is there a way to make this work?&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Mon, 02 May 2005 05:59:36 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211327#M119309</guid>
      <dc:creator>becktho</dc:creator>
      <dc:date>2005-05-02T05:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211435#M119353</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I just found this &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=56915&amp;amp;requireLogin=False" target="_blank"&gt;thread&lt;/A&gt;. The vi posted there actually makes the same, except the window-handle which is passed to the dll.&lt;BR /&gt;&lt;BR /&gt;I tried this in my version but I still get this error (Ok - maybe one has to live with such errors if one likes MS functions ;)).&lt;BR /&gt;&lt;BR /&gt;Do you know about something similar in LV (not the standard message)? As mentioned in my previous post - I'd like something with the icons.&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Mon, 02 May 2005 13:59:16 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211435#M119353</guid>
      <dc:creator>becktho</dc:creator>
      <dc:date>2005-05-02T13:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211766#M119469</link>
      <description>Hi Thomas,&lt;BR /&gt;&lt;BR /&gt;Your VI runs fine on my LabVIEW 7.0 and 7.1.1, and I can even close LabVIEW without any errors. Your VI seems to be fine except for the "uType" which is supposed to be I32 and not U32. However, this mistake shouldn't result in the error you are getting.&lt;BR /&gt;&lt;BR /&gt;Please try the attached "Message Box.vi" that comes from the LabVIEW Intermediate II class. It calls the same DLL and has been tested many, many times and proven its stability. Let me know if this also generates the error on your machine, thanks.</description>
      <pubDate>Tue, 03 May 2005 07:08:13 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211766#M119469</guid>
      <dc:creator>Philip_Courtois</dc:creator>
      <dc:date>2005-05-03T07:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211777#M119474</link>
      <description>Hi Philip&lt;BR /&gt;&lt;BR /&gt;Ok, I replaced my dll-call with your vi, built an exe, run it and the error still appears.&lt;BR /&gt;&lt;BR /&gt;Don't forget the point that it works correctly and without error, if I start it in development mode. The error just comes up after stopping / exiting an executable.&lt;BR /&gt;&lt;BR /&gt;Did you try my vi as exe too?&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Tue, 03 May 2005 07:47:04 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211777#M119474</guid>
      <dc:creator>becktho</dc:creator>
      <dc:date>2005-05-03T07:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211809#M119486</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/3354"&gt;@Philip&lt;/a&gt; C. wrote:&lt;BR /&gt;Your VI seems to be fine except for the "uType" which is supposed to be I32 and not U32.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Really?&lt;BR /&gt;According to the &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/messagebox.asp" target="_blank"&gt;MSDN&lt;/A&gt; this is a UINT.&lt;BR /&gt;Is there something I'm missing?</description>
      <pubDate>Tue, 03 May 2005 09:17:46 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211809#M119486</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2005-05-03T09:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211814#M119489</link>
      <description>I agree with tst - that's why I set a U32.&lt;BR /&gt;&lt;BR /&gt;But maybe that's one more MS-puzzle, which mankind will never be able to solve... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Tue, 03 May 2005 09:24:17 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/211814#M119489</guid>
      <dc:creator>becktho</dc:creator>
      <dc:date>2005-05-03T09:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/212233#M119679</link>
      <description>Hi Thomas and 'tst',&lt;BR /&gt;&lt;BR /&gt;Ooops, you are right that the 'uType' should be U32 and not I32. The confusion comes from the MessageBox.vi that uses I32 to avoid a coercion dot, since the "MessageBox Type" Listbox can only be a I32. Sorry!&lt;BR /&gt;&lt;BR /&gt;Apart from this, I figured out what the issue was. Originally I was able to reproduce the error with your executable. I noticed that the "user32.dll" was being copied to the "data" folder when building your VI into an executable. Since your VI was supposed to point at the DLL in the "C:\WINDOWS\SYSTEM32\" folder, I deleted the DLL in the "data" folder. From that point onwards, I didn't receive the error anymore.&lt;BR /&gt;&lt;BR /&gt;I tried building the "MessageBox.vi" into an executable and noticed that a "data" folder wasn't created, hence no copy of the user32.dll. After some investigation, it turns out that the reason that the DLL is not copied, is because the DLL is not being specified by path in the Call Library Function Node - only the name "user32.dll" appears where it in your VI specified "C:\WINDOWS\SYSTEM32\user32.dll". Specifying the complete path will result in the DLL being added to the "data" directory when the VI gets build to an executable. Refer to &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=112100&amp;amp;requireLogin=False" target="_blank"&gt;this other thread&lt;/A&gt; about the same issue.&lt;BR /&gt;&lt;BR /&gt;Therefore, to make a long store short, you have two options to fix your VI/executable:&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;Workaround: After creating the executable, delete the user32.dll from the "data" directory. Your executable will now spend some time searching for the DLL every time you launch the executable. Fix this by adding the "C:\WINDOWS\SYSTEM32\" folder to "Tools &amp;gt;&amp;gt; Options... &amp;gt;&amp;gt; Paths &amp;gt;&amp;gt; VI Search Path" of the executable. This will result in an added line in the *.ini file.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Fix: Use only the name of the DLL in the Call Library Function Node by deleting the path (see info in the above link). This will result in no copy of the DLL being created when building the application.&lt;/LI&gt;&lt;/OL&gt;&lt;BR /&gt;Thomas, I hope this solves your issue on your system too. Please let me know if you have any questions, thanks.</description>
      <pubDate>Wed, 04 May 2005 06:11:10 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/212233#M119679</guid>
      <dc:creator>Philip_Courtois</dc:creator>
      <dc:date>2005-05-04T06:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/212270#M119690</link>
      <description>Hi Philip&lt;BR /&gt;&lt;BR /&gt;It was a long hard fight but in the end I could manage to remove the path.&lt;BR /&gt;&lt;BR /&gt;Now it works.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your help.&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Wed, 04 May 2005 08:10:07 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/212270#M119690</guid>
      <dc:creator>becktho</dc:creator>
      <dc:date>2005-05-04T08:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error after stopping executable</title>
      <link>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/454162#M220409</link>
      <description>&lt;DIV&gt;Hi @ all, &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have the same problem!&lt;/DIV&gt;
&lt;DIV&gt;But the error doe's not appear after stopping the executable!&lt;/DIV&gt;
&lt;DIV&gt;It is shown however if I insert a combi box on the front panel and want to change the characteristics.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I don't know what to do and I can't work without using a combi box!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks, &lt;/DIV&gt;
&lt;DIV&gt;Atha&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Dec 2006 15:46:53 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Error-after-stopping-executable/m-p/454162#M220409</guid>
      <dc:creator>Athanassios</dc:creator>
      <dc:date>2006-12-14T15:46:53Z</dc:date>
    </item>
  </channel>
</rss>

