Report to DENY using LV 2011 built dll crash

I have an application that uses a built DLLs LabVIEW.  LV dll is called by a dll ActiveX component integrated into VS 2010.  The dll of the LV was origninally built using LV 2010 and worked well.  When we build the same application using LV 2011, everything works up until the closure of the top-level application.  We are then prompted with a dialog box telling us that a failure has been detected (journal text below).  The error occurs if we use static or dynamic linking to the dll.  If I disable DENY it to the application, there is no problem; If as we use a component ActiveX, I must create a for the calling application ini file or disable the DENY for the entire system.  None of these options is desirable, because we cannot know all applications that could use our ActiveX module and cannot control each system we will be deployed on.  If we do not find a work around that, we will have to go back to LV 2010.

####
#Date: Thu, October 27, 2011 13:28:20
#OSName: Windows 7 Professional
#OSVers: 6.1
#OSBuild: 7600
#AppName: home page
#Version: 11.0 32-bit
#AppKind: AppLib
Base address of #LabVIEW: 0 x 30000000

27/10/2011 1:32:41.891 PM
Crash 0 x 0: Crash taken to DENY
File Unknown (0): Crash: Crash captured by DENYING
Minidump ID: 6972c89d-ba7b-437a-9d41-d3df28550f98
ExceptionCode: 0xc0020001y
N

I think I've solved my problem, which I will describe in the case where the same thing is happening to others.  The root of the problem, near as I can tell, had something to do with the appeal of the LV dll of in another dll. For some reason, when I linked statically to the dll, the DllUnload process caused this crash report.  I found evidence to suggest that this can occur when you unload a dll from in the process of unloading in another dll on the web; as is the case with static linking.  When I tried dynamic link, I initially tried to use a global instance of the HINSTANCE dll who got charged and discharged with the WinApp object, the result would have been basically the same.  If I connect dynamically to the unload dll event and explicitly the dll before the call dll being unloaded, the problem disappears.  My calling dll is an ActiveX application, I tied to the instance of the dll to the COM object rather than the object WinApp.

Still don't know why it's a problem for LV 2011 and not 2010 LV.  Perhaps the 'crash' still past and just has not been reported significantly since the app was close anyway.  I'm not sure.  Anyway, hope this helps people out there.

Tags: NI Software

Similar Questions

  • Create dllmain for labview built dll

    I have a lot of labview code I want to turn it into a DLL. The dll will require some global state initialization after cleaning on process_attach and process_detach. If I was building the C code DLL, that I would create a DLLMain function to take care of this, however when I look in the properties of specifications of generation of a DLL in the LabVIEW Project Explorer, I can't find an option to set my initialsation code and stop. Note that I use LabVIEW 8.6.

    On another note, in looking at the docs for the Call library function node we're talking reminders for the reserve, cancel and abort. What does mean to 'reserve' and 'Cancel '? The description suggests that these reminders can be used for initialization and cleanup but I see not how make use of this in a context where my labview built DLL could be described as some other environment (e.g. an exe written in C).

    I'm still fairly new to LabVIEW so I apologize if I missed something obvious.

    DLLMain is VERY limited in what it can do without causing a charger global potentional lock in Windows System. The execution of LabVIEW VIs is something requiring an infrastructure that is not safe for DLLMain initialization already almost 100%. So there is no way that I can see, LabVIEW could allow you to run a specific VI at load time. And change DLLMain yourself isn't an option either, given that LabVIEW that creates on the fly for each DLL and the code is quite tricky.

    What is the problem about the design of your DLL in such a way that the user must call an initialization function explicitly before using other features in it? After all there is no global state in a LabVIEW DLL, except by functions that are loaded into memory and remain in memory for as long as you want to maintain global state. Once function initialized global X() a memory of leaves before the Y() function that references global was loaded into memory, the enitre a global state is lost and reset to the default state when loading function Y().

  • Satellite P100-160: Mono sound when you use MciSendString() calling Winmm.dll

    I have a Satellite P100-160.
    The sound works well for some programs, Windows Media Player, etc. Audigy.

    However when I call for its program using MciSendString() calling Winmm.dll I get only mono sound channel, good times left channel is almost silent. SetAudio volume has no effect.
    I've updated the BIOS and the audio driver for the latest versions available on this site.

    Does anyone have a solution or pointer to a solution.

    Is it really a laptop problem?
    Maybe the multimedia function MciSendString() provides only the mono or your have done something wrong?  :|

    See Microsoft Developer Network:
    http://msdn2.Microsoft.com/en-us/library/ms709492 (vs.85) .aspx

    I don't know what you want to do and why you use the MciSendString() to call Winmm.dll, but if the sound display correctly using current players like Windows Media Player, for example, I really put t see any hardware problem m

    Note it is a Toshiba user forum and here you will encounter common users who share knowledge and solve common issues of interest.
    In your case, I recommend you to visit a few Microsoft developer forums and support sites.

    Best regards and good luck

  • Deal with failure when using LabVIEW 2011 and DSC MODBUS communication

    I'm currently reading from operating records a PLC with MODBUS/TCP. I confirmed that the PLC will update the values and in response to a MODBUS communication correctly by using a third-party program called Modbus Poll. However, when I try to query the PLC using the LabVIEW shared variable engine, I am unable to read the values of the same addresses that I consult with Modbus Poll.

    My installation is simply to a PC directly connected to the controller via Ethernet without a router between the two. I'm using LabVIEW 2011 SP1 with the DSC module.

    I opened the Manager of distributed systems OR to display the State of all variables in the Modbus Library that I created, and I noticed that the ILO CommFail permanently the value 'true '. All other variables with a 'read' access mode signal "failure of process". I tried to restart the process and stop and start the local variable engine without success. I also restarted my computer several times to see if any services did not exist, but this does not appear to have solved the problem.

    Finally, I resorted to listening to communications on the network card I have the PLC connected via Ethernet using Wireshark and found that while Modbus Poll communicates with PLC, number of MODBUS and TCP packet is sent and received. However, when using only LabVIEW or the DSM OR communicate with the controller, there don't seem to be any communication on the network card.

    Something that may be interesting to note is that I could communicate with the PLC and to read values with the DSM just once, when I understood everything first what address I should be reading of. All of this has stopped working shortly after. Prior to this, 'CommFail' was not generally set to 'true' with my current setup. Thinking it was my firewall, I have since disabled my firewall, but this seems to have had no effect on the problem either.

    Any help on this would be appreciated.

    So, I thought about it. It turns out that the IP address of the server i/o MODBUS must be set to the address of the MODBUS slave, not the local computer. The address of the i/o MODBUS server is defined by the navigation in the Explorer window projects, expanding the variable engine shared library for MODBUS and right click on the server MODBUS (for example Modbus1) item and select Properties.

    In addition, the addresses seem to be shifted by + 1.

    Thanks for the tip so.

  • Control CMD (command line interface) using Labview 2011.

    Hello

    I'm trying to control software that has an interface to command line using LabView 2011 but I have problems when reading the information.

    Is attached the VI I created so far, but it is not working properly.

    Problems so far:

    1 - if I use ReadLine(), it blocks showing no error and nothing else.

    2 - ReadToEnd () same problem as the previous line, the software hangs just at this stage.

    3 - if I compare the response of the "peek" in waiting for the - 1 indicating there is not more character, the hook of software as the previous steps.

    You have some clues as to what might be wrong or another way to 'control' the CMD to send messages, read and send messages, etc...

    Thank you very much for your help.

    I've done it before - I posted about this on the forum here: https://forums.ni.com/t5/LabVIEW/How-to-open-close-and-monitor-a-application-xyz-exe-using/m-p/32511...

    I did also wrap in a library at a given time and post it on the forums, but I couldn't find this particular post.

  • use microsoft 2011 met apple MacBook pro tracht technical bestanden van word you openen Stijl me short unicode lukt niet

    use microsoft 2011 meets apple MacBook pro tracht technical bestanden van word you openen Stijl me like unicode, bij het openen squeeze ik angeschlossenen lukt niet scrambled text niet leesbare text, gaarne close

    Hello AIMonaros,

    Thanks for the translation :-). I would recommend to repost your question in our office for Mac support forums where one of the experts in this area would be better suited to offer you a solution.

  • I need a copy of Visual Studio 2008 while I have the same version of Crystal Reports that are used by one of my clients.

    Buy Visual Studio 2008

    I need a copy of Visual Studio 2008 while I have the same version of Crystal Reports that are used by one of my clients.

    Can I buy Visual Studio 2010 with MSDN Essentials and then download and use Visual Studio 2008

    Hello

    Welcome to Microsoft Windows 7 answers Forum!

    Thank you for visiting the Microsoft answers Forum.

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums

    I hope this helps.

  • Hard drive crashed and now 'My Documents' reports 'access denied '.

    My drived by 'C' crashed. I replaced the trive and install a new copy of XP pro on a new drive. I plugged the old drive as slave and when I go to the 'Documents and Settings' area I am able to open most of all files except thoes in "Documents and Settings/username / My Documents". This directory and several others in the 'Documents and Settings' box report "Access denied" when I try to open them.

    Hi 1handclapping,

    You will need to take ownership of files or files that refuse to that you access from your old hard drive.

    Please see the following article:
    http://support.Microsoft.com/kb/308421

  • using WHS 2011 to save a windows 8 pro laptop I get an error. Does anyone have a solution

    Windows Home Server 2011 is currently not able to back up starting systems UEFI is not able to save the TPG type systems.  It must be sent in a future update of the Windows Home Server product.

    Is this always the case?

    I just had my father buy a new Dell laptop, on the assumption that he would be able to connect to its network and to back up the server in the same way that his laptop Win7 had been save.

    Now, I'm at a loss as the best thing to tell him to do so until the next time that I visit.

    Wim...

    Separated from -.

    https://answers.Microsoft.com/en-us/Windows/Forum/windows_8-security/using-WHS-2011-to-back-up-a-Windows-8-Pro-laptop-i/abf11e93-9b49-4833-a32a-9090f85d25a2

    Hi William,.

    Your request would be better suited in the TechNet forum. Please post your query by clicking on the link.

    Take the WHS2011 of the discussion here:

    http://social.Microsoft.com/forums/en-us/whs2011/threads

    Thank you

  • What social media analytics and reports do you use E10?

    What social media analytics and reports do you use E10?

    I am very curious as Marilyn well. I had some difficulty in finding ways to measure social with Eloqua.

    I used the report Social Media breakdown under Web site reports, but the data are very basic and I can get a lot more Google Analytics. The SocialMedia_PowerHour.ppt is well over a year, and a version of the E10 could be very useful.

    I'm looking for ways to see traffic to landing pages and forms that come from social media sources.

    Also is there some ETA on a possible link Eloqua GA?

  • Report on the use of resources by VMfolder

    Hi guys,.

    I need to get a report that will review records VM to a vCenter and will report back the total amount of RAM used by each folder (implemented and active ideally), CPU (MHz) and perhaps the space used disk

    We organize virtual machines by product/object, our idea is that, by looking at their records, we are able to estimate the total amount of the use of resources by product. I wish I could set this as a weekly task and get the result emailed in HTML form.

    I tried to restore code snippets I've found, but none seem to do the trick.

    Any help would be greatly appreciated.

    Like this

    Get-VM | Group-Object -Property {$_.Folder.Id} | Select @{N="Folder";E={  $folder = $_.Group[0].Folder  $path = $folder.Name  while($folder.Parent){    $folder = $folder.Parent    $path = $folder.Name + "/" + $path  }  $path  }},  @{N="NumCPU";E={$_.Group | Measure-Object -Property NumCpu -Sum | Select -ExpandProperty Sum}},  @{N="MemoryGB";E={$_.Group | Measure-Object -Property MemoryGB -Sum | Select -ExpandProperty Sum}} |Export-Csv C:\report.csv -NoTypeInformation -use
    
  • How to create a report page by using the Web layout editor

    Hi Experts,

    I use wcc11.1.1.7, I need to create the report page by using the Web layout editor, but in this applet (editor), there are only 3 types of link to the page: local page, external page, query, it must be of type of the active report (historical), why I can't see them? y at - it components should I activate this?

    Best regards

    It doesn't have to be in the link on the Page, but in the Page Type.

    See the documentation for http://docs.oracle.com/cd/E28280_01/doc.1111/e26694/e02_weblayout_edit.htm#i1068085 for more details.

  • Built app crashes instantly

    I am building an application in Labview 2010 Professional (upgrade to the latest patch, f4)

    The application is built successfully, but when I run my application built, it crashes instantly (on the same computer, I built it on) declaration of an accident in lvrt.dll

    I tried leaving the parts of the code that accesses the dll files, but that did not help. I'm not able to use remote debugging, because it crashes instantly.

    First of all, I was able to build and run the application on my development machine, but not run it on the deployment computer. Later, I wasn't able to run on the development computer, either, I haven't had huge changes in the code so I don't know what the difference is.

    Now I'm building on a new installation of Labview professional 2010 on the deployment computer and cannot run it on computers. I use a few screws G opened, installed through VIPM, nothing too special.

    How can I continue my troubleshooting, anoyone has suggestions?

    When you build, you might try setting screws that run during initialization to open their facades when it is called. That would tell you if the accident occurs before the beginning of your code, or to what extent the code actually gets before exploding. You can extend what you already have by throwing disable structures around things to disable everything except the logical database structure (machine, handler, regardless of the State...)? He demand in one piece or are there processes that run in the background?

    Mike...

  • DLL crashes LabView 2013 Pro, but good to EXE

    Hello

    I started having a problem older "degenerate." I had a previous post about a dll which plays a role of interface between a program running under Windows and LabView. The details are here:

    http://forums.NI.com/T5/LabVIEW/installed-program-no-Comm-with-driver/m-p/2659765/highlight/true#M79...

    Note that this isn't a double post, I just mentioned my recent problem there, when he was not that common.

    (http://forums.ni.com/t5/LabVIEW/installed-program-no-comm-with-driver/m-p/2662503/highlight/true#M79...

    Today - unknown reason - after a win system restart I can not run my development environment LabView code. When I run the main VI, it blocks all of the LabView environment during the first call of dll. This problem we had before also, but the 2nd of the 3rd test he ran OK. Today, I tried like 30 times, too many system restart. The native software spectroscope works very well too.

    Strange, if I run the exe to build, everything works fine. The problem appears only when I run LabVIEW. There is no error code, only a window appeared the first time, as I can send the error report to NOR. I can dig into some logs tomorrow at the lab, I just need to know where I can get.

    It seems that someone has also experienced similar behavior with external dll call:

    http://forums.NI.com/T5/LabVIEW/problem-DLL-crashes-LabVIEW/m-p/2562667/highlight/true#M773565

    "In the application resulting (Exe), it seems to work very well."

    What is the difference between when the dll is built in the exe file, and when it is executed from the LabView dev environment?

    Thanks for any idea and help!

    (if nothing helps, I just re - build the exe after changes to the program, but it slows down some coding)

    The last time, we have no comments from the company that created this dll, I'll try to contact again...)

    Hello

    you said that you have read the discussion in the following link:

    http://forums.NI.com/T5/LabVIEW/problem-DLL-crashes-LabVIEW/m-p/2562667/highlight/true#M773565

    Are you facing exactly the same problem?

    If Yes, then there is not much we can do. LV is an access contradication with your included DLL unless you have access to its source. You do not experience these problems with the exe since that only works on the run-time engine while the LV environment executes the code in a different way (why LV reserve this special memory on which your DLL is also trying to access.

  • DirectX SDK - CreateEffect E_NOTIMPL - Windows-Shell-DLL crash

    Hello

    I win 10 x 64 and I have installed the DirectX SDK.

    I need to run the example FF Const, to test the Force Feedback on my wheel.

    The following function returns "E_NOTIMPL".

    If (FAILED (hr = g_pDevice-> CreateEffect (GUID_ConstantForce,
    eff, & g_pEffect, NULL)))

    {
    Back at the time;
    }

    Shell-Windows-DLL crashes, if I want to read a ffb effects on control of drive of the navigation panel.

    So I think there must be something wrong with the sdk!

    Can someone help me?

    Friendly reg.

    Spy-Shifty

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *

Maybe you are looking for

  • Remote control does not work, and the load does not appear on Apple TV

    Hello I just returned from vacation and my remote seems has stopped working.   Naturally, my first assumption was that the charge was simply exhausted. Apparently that was the case.   He seems to have just died. I did pay for more than two hours and

  • Bowers & Wilkins T7 Bluetooth speaker connected, no sound

    Connects to the speaker, but will not make a sound. It isn't muted in the sound preferences and it won't work for any sound, not iTunes, amazon etc... I have sound from all of these places if I disconnect and use the laptop speakers. Can I use the sp

  • (satellite a60) (USB) Universal Serial Bus controller

    Hello, I just formatted my laptop and now when I goto the Device Manager I see an icon missing drivers. I already have a full windows update. Its about "(USB) Universal Serial Bus controller". I tried to find the drivers to support page here to toshi

  • U410 no WiFi after downgrading for Win 7

    Hey everybody. I am a newbie in what it is technical so please be nice. Recently, I've killed my Ideapad U410 of Windows 8 for Windows 7. Installed all the drivers and all works fine except for the Wifi. He is yet to find a network, it's more like he

  • Replace the LED SWITCH OFF / ON

    My LED on top of the computer does not work.  I know how to get to the switch, but I can't understand how to remove it to put a new switch in.  Any help would be appreciated. HP Pavilion P6000 series Model # p6654y