.the application program is running fine but the problem is this when i am running exe file it is showing a error lvrt.dll memory accsess violation.same exe is working fine if i make my visa resource name to constant in the application.what is the problem?If you are **absolutely sure** that the non-constant version of your program is sending the same VISA resource name as the constant version, this sounds like a bug. Have you talked to NI about it?
In the version that isn't using a constant to hold the VISA resource name, where are you getting the value from? Setup file? Are you sure you are getting the right name?
One thing you can do in situations like this is do a special build where you set LV to not remove the front panel for the VI that is making the VISA call ("VI Settings" tab in the app builder). Alternately, you could set the subvi to open it's frontpanel when it's called. Either technique allows you to see the value being passed to it in the executable.
Mike...