Associer une dll à un projet et executer un programme appelant sans mettre la dll dans VXI pnp

Bonjour
Je souhaiterai exécuter un programme appelant une dll que j'ai compilé et que j'ai lier à l'exécutable mais pas placé dans VXI pnp.
La compilation se passe bien mais lorsque je lance l'application, un message apparaît et indique que la dll est intraouvable j'ai inclut le chemin du dossier dans lequel est stocké la DLL dans les include path mais sans succès.
Merci d'avance pour votre aide

Bonjour,
Merci d'avoir posté votre question sur le forum de National Instruments.
Pourvez-vous m'envoyer votre code?
Brice S.
National Instruments France

Similar Messages

  • K-MELEON executed an invalid instruction in module NPSWF32.DLL at 0177:03715767.

    There is a bug in the Flash Player 9.0.115.0 that crashes
    K-Meleon at kidswb.com after I press enter. First there is and add
    for EON KID and it switches to the BATMAN add I recieive the error
    message "K-MELEON executed an invalid instruction in module
    NPSWF32.DLL at 0177:03715767."

    The thing is, these errors occur at seemingly random times and sometimes not at all. I have removed all but the latest jvm.dll but to no avail. I suspect that some kind of run-time exception is the real culprit, but one seemingly impossible to pin down (possibly due to timing or memory usage). It would help greatly to know what the error messages are refering to - the hex that is.

  • SEAMONKEY executed an invalid instruction in module NPSWF32.DLL at 0177:30055767.

    There is a bug in the Flash Player 9.0.115.0 that crashes
    SEAMONKEY at kidswb.com after I press enter. First there is and add
    for EON KID and it switches to the BATMAN add I recieive the error
    message "SEAMONKEY executed an invalid instruction in module
    NPSWF32.DLL at 0177:30055767."

    aman ghus jao bans balli bamboo lekar..

  • Resource-only DLL does not contain executable code

    A resource-only DLL does not contain executable code. Since
    LoadLibrary (http://msdn.microsoft.com/en-us/library/windows/desktop/ms684175.aspx) attempts to call the entry point before returning, it will fail for resource-only DLLs. Instead, you should call
    LoadLibraryEx (http://msdn.microsoft.com/en-us/library/windows/desktop/ms684179.aspx) passing a
    LOAD_LIBRARY_AS_DATAFILE, LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE, or
    LOAD_LIBRARY_AS_IMAGE_RESOURCE flag, to load a resource-only DLL. This prevents to loader from attempting to call the entry point.

    Hello,
    Just check if there is space in the front of these numeric values or some garbage value...if there is... then it may not be able to pad it up with zero and hence the issue...check in R/3 about how these values are stored...you can remove the space from the front and change it in PSA...and then load but first do the analysis of the source system and see why its coming up wrong.
    Regards
    Ajeeet

  • Want help to execute the programm of MethodEntryEvent

    Hi,
    I am trying to develop a programm for automatic logging in the programme. I took the hepl of java API and the Google site for searching some programms and successed also. but while running these sample programms i am getting classNotFound exception and some other exceptions also. i executed the programm Seq.java downloaded from the site http://search.cpan.org/src/PHILCROW/UML-Sequence-0.05/java/Seq.java. i am not able to understand how to execute it. what ever i tried its giving the same output whatever defined in the System.err() in the file. but it should display the corrosponding class details for which i need to see the output.
    can anyone help me in this regard and tell me the process to execute the programm.
    i took another e.g. trace example, which (in J2SE 1.4.x or 5.x) will be found in $JAVA_HOME/demo/jpda/examples.jar and unpacking it by
    jar -xvf $JAVA_HOME/demo/jpda/examples.jar i found the
    com/sun/tools/example/trace/Trace.java
    when i tried to execute it to see the output for some other programm i got the following exceptions,
    -- VM Started --
    ====== main ======
    main -- DateExample
    | Exception: instance of java.lang.ClassNotFoundException(id=97) catch: java.lang.ClassLoader:286
    | | | | | | | | | | | | | | | | | | | | Exception: instance of java.lang.ClassNotFoundException(id=98) catch: java.lang.ClassLoader:286
    | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.lang.ClassNotFoundException(id=98) catch: java.lang.ClassLoader:286
    | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=99) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=99) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=100) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=100) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=101) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=101) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.lang.ClassNotFoundException(id=102) catch: java.util.ResourceBundle:1074
    | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.lang.ClassNotFoundException(id=102) catch: java.util.ResourceBundle:1074
    | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=105) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=105) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=106) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=106) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=115) catch: null
    | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=118) catch: null
    ====== main end ======
    -- The application exited --
    i execute this programm i used the command as
    java Trace -output trace.log DateExample
    where trace.log is output file and DateExample is the java file.
    Can any one help me in this regard to execute the programms and can give me a detailed solution procedure.
    can anyone suggest me any other programm for auto exit and entry display for classes or methods with detailed execution steps.
    Thanks,

    Hi,
    i tried by setting the class path in the environment variables.
    still i am getting the same exceptions. i m sending the files on which i m working and requesting to give some solution. the files are
    // Trace.java
    import com.sun.jdi.VirtualMachine;
    import com.sun.jdi.Bootstrap;
    import com.sun.jdi.connect.*;
    import java.util.Map;
    import java.util.List;
    import java.util.Iterator;
    import java.io.PrintWriter;
    import java.io.FileWriter;
    import java.io.IOException;
    * This program traces the execution of another program.
    * See "java Trace -help".
    * It is a simple example of the use of the Java Debug Interface.
    * @version @(#) Trace.java 1.4 03/01/23 17:55:38
    * @author Robert Field
    public class Trace {
    // Running remote VM
    private final VirtualMachine vm;
    // Thread transferring remote error stream to our error stream
    private Thread errThread = null;
    // Thread transferring remote output stream to our output stream
    private Thread outThread = null;
    // Mode for tracing the Trace program (default= 0 off)
    private int debugTraceMode = 0;
    // Do we want to watch assignments to fields
    private boolean watchFields = false;
    // Class patterns for which we don't want events
    private String[] excludes = {"java.*", "javax.*", "sun.*",
    "com.sun.*"};
    * main
    public static void main(String[] args) {
    //new Trace(args);
    //DateExample d = new DateExample();
    //String[] arg = {(new DateExample().toString())};
    //String[] arg = {"E:/java_progs/classLoader/project logging/com/sun/tools/example/trace/DateExample.java"};
    //d.dateDisplay();
    new Trace(args);
    * Parse the command line arguments.
    * Launch target VM.
    * Generate the trace.
    Trace(String[] args) {
    System.out.println("entered into the method Trace(String[] args)");
    PrintWriter writer = new PrintWriter(System.out);
    System.out.println("Printer object created.....");
    int inx;
    for (inx = 0; inx < args.length; ++inx) {
    System.out.println("inside for loop args.length is "+args.length+" and the data is "+args[inx]);
    String arg = args[inx];
    if (arg.charAt(0) != '-') {
    break;
    if (arg.equals("-output")) {
    System.out.println("inside args== -output");
    try {
    writer = new PrintWriter(new FileWriter(args[++inx]));
    System.out.println("writer object createed....");
    } catch (IOException exc) {
    System.err.println("Cannot open output file: " + args[inx]
    + " - " + exc);
    System.exit(1);
    } else if (arg.equals("-all")) {
    System.out.println("inside args== -all");
    excludes = new String[0];
    } else if (arg.equals("-fields")) {
    System.out.println("inside args== -fields");
    watchFields = true;
    } else if (arg.equals("-dbgtrace")) {
    System.out.println("inside args== -bdgtrace");
    debugTraceMode = Integer.parseInt(args[++inx]);
    System.out.println("inside args== -bdgtrace the debugTraceMode is "+debugTraceMode);
    } else if (arg.equals("-help")) {
    System.out.println("inside args== -help called usage();");
    usage();
    System.exit(0);
    } else {
    System.err.println("No option: " + arg);
    usage();
    System.exit(1);
    System.out.println("the index is "+inx+" the args.length is "+args.length);
    if (inx >= args.length) {
    System.err.println("<class> missing");
    usage();
    System.exit(1);
    StringBuffer sb = new StringBuffer();
    sb.append(args[inx]);
    for (++inx; inx < args.length; ++inx) {
    sb.append(' ');
    sb.append(args[inx]);
    System.out.println("the string buffer contains \n "+sb);
    vm = launchTarget(sb.toString());
    generateTrace(writer);
    System.out.println("after generateTrace(writer)");
    * Generate the trace.
    * Enable events, start thread to display events,
    * start threads to forward remote error and output streams,
    * resume the remote VM, wait for the final event, and shutdown.
    void generateTrace(PrintWriter writer) {
    System.out.println("inside generateTrace(PrintWriter writer) the debugTraceMode is "+debugTraceMode);
    vm.setDebugTraceMode(debugTraceMode);
    EventThread eventThread = new EventThread(vm, excludes, writer);
    eventThread.setEventRequests(watchFields);
    System.out.println("inside generateTrace(PrintWriter writer) the eventThread.setEventRequests(watchFields) is ");
    eventThread.start();
    redirectOutput();
    vm.resume();
    // Shutdown begins when event thread terminates
    try {
    eventThread.join();
    errThread.join(); // Make sure output is forwarded
    outThread.join(); // before we exit
    } catch (InterruptedException exc) {
    // we don't interrupt
    writer.close();
    System.out.println("the writer is closed....");
    * Launch target VM.
    * Forward target's output and error.
    VirtualMachine launchTarget(String mainArgs) {
    System.out.println("inside VirtualMachine launchTarget(String mainArgs) "+mainArgs);
    LaunchingConnector connector = findLaunchingConnector();
    System.out.println("Lunching connector found "+connector);
    Map arguments = connectorArguments(connector, mainArgs);
    try {
    return connector.launch(arguments);
    } catch (IOException exc) {
    throw new Error("Unable to launch target VM: " + exc);
    } catch (IllegalConnectorArgumentsException exc) {
    throw new Error("Internal error: " + exc);
    } catch (VMStartException exc) {
    throw new Error("Target VM failed to initialize: " +
    exc.getMessage());
    void redirectOutput() {
    Process process = vm.process();
    System.out.println("inside redirectOutput() after getting the virtual m/c process");
    // Copy target's output and error to our output and error.
    errThread = new StreamRedirectThread("error reader",
    process.getErrorStream(),
    System.err);
    outThread = new StreamRedirectThread("output reader",
    process.getInputStream(),
    System.out);
    errThread.start();
    outThread.start();
    * Find a com.sun.jdi.CommandLineLaunch connector
    LaunchingConnector findLaunchingConnector() {
    List connectors = Bootstrap.virtualMachineManager().allConnectors();
    System.out.println("inside redirectOutput() after getting the connectors list");
    Iterator iter = connectors.iterator();
    while (iter.hasNext()) {
    Connector connector = (Connector)iter.next();
    System.out.println("inside while (iter.hasNext()) after getting the connector objects from itterator");
    if (connector.name().equals("com.sun.jdi.CommandLineLaunch")) {
    System.out.println("inside if (connector.name().equals('com.sun.jdi.CommandLineLaunch'))");
    return (LaunchingConnector)connector;
    throw new Error("No launching connector");
    * Return the launching connector's arguments.
    Map connectorArguments(LaunchingConnector connector, String mainArgs) {
    System.out.println("Map connectorArguments(LaunchingConnector connector, String mainArgs) the mainArgs is "+mainArgs);
    Map arguments = connector.defaultArguments();
    Connector.Argument mainArg =
    (Connector.Argument)arguments.get("main");
    if (mainArg == null) {
    System.out.println("inside the mainArg==null ");
    throw new Error("Bad launching connector");
    mainArg.setValue(mainArgs);
    System.out.println("the mainArg is "+mainArg);
    if (watchFields) {
    System.out.println("inside the if (watchFields)********");
    // We need a VM that supports watchpoints
    Connector.Argument optionArg =
    (Connector.Argument)arguments.get("options");
    if (optionArg == null) {
    throw new Error("Bad launching connector");
    System.out.println("inside the if (watchFields)the optionArg is "+optionArg);
    optionArg.setValue("-classic");
    System.out.println("optionArg.getValue() is ");
    return arguments;
    * Print command line usage help
    void usage() {
    System.out.println("inside usage()");
    System.err.println("Usage: java Trace <options> <class> <args>");
    System.err.println("<options> are:");
    System.err.println(
    " -output <filename> Output trace to <filename>");
    System.err.println(
    " -all Include system classes in output");
    System.err.println(
    " -help Print this help message");
    System.err.println("<class> is the program to trace");
    System.err.println("<args> are the arguments to <class>");
    // DateExample.java
    import java.util.Date;
    import java.text.DateFormat;
    import java.util.Calendar;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    public class DateExample {
    public static void main(String[] args) {
    Date a = new Date();
    System.out.println("Today is : "+a);
    Calendar ca= Calendar.getInstance();
    ca.set(a.getYear(),a.getMonth(),a.getDate());
    ca.add(Calendar.DATE,1);
    DateFormat df1 = DateFormat.getDateInstance(DateFormat.SHORT);
    String s1 = df1.format(ca.getTime());
    System.out.println("(SHORT) Today is + 1 :" + s1);
    //java.sql.Date s = new java.sql.Date(2005,6,1);
    //System.out.println("Date from sql is : "+s);
    Date a1 = new Date(2005,06,01);
    System.out.println("Today is a1 : "+a1);
    java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("MM-dd-yyyy HH:mm:ss");
    System.out.println("After format :"+formatter.format(a1));
    System.out.println("After format :"+formatter.format(new Date(s1)));
    java.text.SimpleDateFormat formatter1 = new java.text.SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
    System.out.println("After format :"+formatter1.format(a1));
    // EventThread.java
    import com.sun.jdi.*;
    import com.sun.jdi.request.*;
    import com.sun.jdi.event.*;
    import java.util.*;
    import java.io.PrintWriter;
    * This class processes incoming JDI events and displays them
    * @version @(#) EventThread.java 1.4 03/01/23 17:55:38
    * @author Robert Field
    public class EventThread extends Thread {
    private final VirtualMachine vm; // Running VM
    private final String[] excludes; // Packages to exclude
    private final PrintWriter writer; // Where output goes
    static String nextBaseIndent = ""; // Starting indent for next thread
    private boolean connected = true; // Connected to VM
    private boolean vmDied = true; // VMDeath occurred
    // Maps ThreadReference to ThreadTrace instances
    private Map traceMap = new HashMap();
    EventThread(VirtualMachine vm, String[] excludes, PrintWriter writer) {
    super("event-handler");
    this.vm = vm;
    this.excludes = excludes;
    this.writer = writer;
    System.out.println("inside EventThread(VirtualMachine vm, String[] excludes, PrintWriter writer) ");
    * Run the event handling thread.
    * As long as we are connected, get event sets off
    * the queue and dispatch the events within them.
    public void run() {
    System.out.println("inside run() ");
    EventQueue queue = vm.eventQueue();
    while (connected) {
    System.out.println("inside while (connected) ");
    try {
    EventSet eventSet = queue.remove();
    EventIterator it = eventSet.eventIterator();
    System.out.println("got EventSet and EventIterator *** ");
    while (it.hasNext()) {
    System.out.println("inside while (it.hasNext())");
    handleEvent(it.nextEvent());
    eventSet.resume();
    System.out.println("event is resumed ***** ");
    } catch (InterruptedException exc) {
    // Ignore
    } catch (VMDisconnectedException discExc) {
    handleDisconnectedException();
    break;
    * Create the desired event requests, and enable
    * them so that we will get events.
    * @param excludes Class patterns for which we don't want events
    * @param watchFields Do we want to watch assignments to fields
    void setEventRequests(boolean watchFields) {
    System.out.println("inside setEventRequests(boolean watchFields) ");
    EventRequestManager mgr = vm.eventRequestManager();
    // want all exceptions
    ExceptionRequest excReq = mgr.createExceptionRequest(null,
    true, true);
    // suspend so we can step
    excReq.setSuspendPolicy(EventRequest.SUSPEND_ALL);
    excReq.enable();
    MethodEntryRequest menr = mgr.createMethodEntryRequest();
    for (int i=0; i<excludes.length; ++i) {
    System.out.println("inside for (int i=0; i><excludes.length; ++i) for createMethodEntryRequest() ");
    menr.addClassExclusionFilter(excludes);
    menr.setSuspendPolicy(EventRequest.SUSPEND_NONE);
    menr.enable();
    MethodExitRequest mexr = mgr.createMethodExitRequest();
    for (int i=0; i><excludes.length; ++i) {
    System.out.println("inside for (int i=0; i><excludes.length; ++i) for createMethodExitRequest() ");
    mexr.addClassExclusionFilter(excludes);
    mexr.setSuspendPolicy(EventRequest.SUSPEND_NONE);
    mexr.enable();
    ThreadDeathRequest tdr = mgr.createThreadDeathRequest();
    // Make sure we sync on thread death
    tdr.setSuspendPolicy(EventRequest.SUSPEND_ALL);
    tdr.enable();
    if (watchFields) {
    System.out.println("inside if (watchFields) ************** ");
    ClassPrepareRequest cpr = mgr.createClassPrepareRequest();
    for (int i=0; i><excludes.length; ++i) {
    System.out.println("inside for (int i=0; i><excludes.length; ++i) the excludes.length is ************** "+excludes.length);
    cpr.addClassExclusionFilter(excludes);
    cpr.setSuspendPolicy(EventRequest.SUSPEND_ALL);
    cpr.enable();
    * This class keeps context on events in one thread.
    * In this implementation, context is the indentation prefix.
    class ThreadTrace {
    final ThreadReference thread;
    final String baseIndent;
    static final String threadDelta = " ";
    StringBuffer indent;
    ThreadTrace(ThreadReference thread) {
    System.out.println("inside ThreadTrace(ThreadReference thread)");
    this.thread = thread;
    this.baseIndent = nextBaseIndent;
    indent = new StringBuffer(baseIndent);
    nextBaseIndent += threadDelta;
    println("====== " + thread.name() + " ======");
    private void println(String str) {
    System.out.println("inside void println(String str)");
    writer.print(indent);
    writer.println(str);
    void methodEntryEvent(MethodEntryEvent event) {
    System.out.println("inside methodEntryEvent(MethodEntryEvent event)");
    println(event.method().name() + " -- "
    + event.method().declaringType().name());
    indent.append("| ");
    void methodExitEvent(MethodExitEvent event) {
    System.out.println("inside methodExitEvent(MethodExitEvent event)");
    indent.setLength(indent.length()-2);
    void fieldWatchEvent(ModificationWatchpointEvent event) {
    System.out.println("inside fieldWatchEvent(ModificationWatchpointEvent event)");
    Field field = event.field();
    Value value = event.valueToBe();
    println(" " + field.name() + " = " + value);
    void exceptionEvent(ExceptionEvent event) {
    System.out.println("inside exceptionEvent(ExceptionEvent event) ");
    println("Exception: " + event.exception() +
    " catch: " + event.catchLocation());
    // Step to the catch
    EventRequestManager mgr = vm.eventRequestManager();
    StepRequest req = mgr.createStepRequest(thread,
    StepRequest.STEP_MIN,
    StepRequest.STEP_INTO);
    System.out.println("stepRequest is created "+req);
    req.addCountFilter(1); // next step only
    req.setSuspendPolicy(EventRequest.SUSPEND_ALL);
    req.enable();
    // Step to exception catch
    void stepEvent(StepEvent event) {
    System.out.println("inside stepEvent(StepEvent event) ");
    // Adjust call depth
    int cnt = 0;
    indent = new StringBuffer(baseIndent);
    try {
    cnt = thread.frameCount();
    System.out.println("inside try cnt is "+cnt);
    } catch (IncompatibleThreadStateException exc) {
    while (cnt-- > 0) {
    System.out.println("inside while indent is "+indent);
    indent.append("| ");
    EventRequestManager mgr = vm.eventRequestManager();
    mgr.deleteEventRequest(event.request());
    void threadDeathEvent(ThreadDeathEvent event) {
    System.out.println("inside threadDeathEvent(ThreadDeathEvent event) ");
    indent = new StringBuffer(baseIndent);
    println("====== " + thread.name() + " end ======");
    * Returns the ThreadTrace instance for the specified thread,
    * creating one if needed.
    ThreadTrace threadTrace(ThreadReference thread) {
    ThreadTrace trace = (ThreadTrace)traceMap.get(thread);
    System.out.println("inside ThreadTrace threadTrace(ThreadReference thread) trace is "+trace);
    if (trace == null) {
    trace = new ThreadTrace(thread);
    traceMap.put(thread, trace);
    return trace;
    * Dispatch incoming events
    private void handleEvent(Event event) {
    System.out.println("inside handleEvent(Event event) ");
    if (event instanceof ExceptionEvent) {
    System.out.println("inside handleEvent(Event event) in ExceptionEvent ");
    exceptionEvent((ExceptionEvent)event);
    } else if (event instanceof ModificationWatchpointEvent) {
    System.out.println("inside handleEvent(Event event) in ModificationWatchpointEvent ");
    fieldWatchEvent((ModificationWatchpointEvent)event);
    } else if (event instanceof MethodEntryEvent) {
    System.out.println("inside handleEvent(Event event) in MethodEntryEvent ");
    methodEntryEvent((MethodEntryEvent)event);
    } else if (event instanceof MethodExitEvent) {
    System.out.println("inside handleEvent(Event event) in MethodExitEvent ");
    methodExitEvent((MethodExitEvent)event);
    } else if (event instanceof StepEvent) {
    System.out.println("inside handleEvent(Event event) in StepEvent ");
    stepEvent((StepEvent)event);
    } else if (event instanceof ThreadDeathEvent) {
    System.out.println("inside handleEvent(Event event) in ThreadDeathEvent ");
    threadDeathEvent((ThreadDeathEvent)event);
    } else if (event instanceof ClassPrepareEvent) {
    System.out.println("inside handleEvent(Event event) in ClassPrepareEvent ");
    classPrepareEvent((ClassPrepareEvent)event);
    } else if (event instanceof VMStartEvent) {
    System.out.println("inside handleEvent(Event event) in VMStartEvent ");
    vmStartEvent((VMStartEvent)event);
    } else if (event instanceof VMDeathEvent) {
    System.out.println("inside handleEvent(Event event) in VMDeathEvent ");
    vmDeathEvent((VMDeathEvent)event);
    } else if (event instanceof VMDisconnectEvent) {
    System.out.println("inside handleEvent(Event event) in VMDisconnectEvent ");
    vmDisconnectEvent((VMDisconnectEvent)event);
    } else {
    System.out.println("inside handleEvent(Event event) in else unexcepted type ");
    throw new Error("Unexpected event type");
    * A VMDisconnectedException has happened while dealing with
    * another event. We need to flush the event queue, dealing only
    * with exit events (VMDeath, VMDisconnect) so that we terminate
    * correctly.
    synchronized void handleDisconnectedException() {
    System.out.println("inside handleDisconnectedException() ");
    EventQueue queue = vm.eventQueue();
    while (connected) {
    System.out.println("inside handleDisconnectedException() in while (connected) ");
    try {
    EventSet eventSet = queue.remove();
    EventIterator iter = eventSet.eventIterator();
    System.out.println("inside handleDisconnectedException() got EventSet & EventIterator ");
    while (iter.hasNext()) {
    System.out.println("inside handleDisconnectedException() in while (iter.hasNext()) ");
    Event event = iter.nextEvent();
    if (event instanceof VMDeathEvent) {
    System.out.println("inside handleDisconnectedException() in if ");
    vmDeathEvent((VMDeathEvent)event);
    } else if (event instanceof VMDisconnectEvent) {
    System.out.println("inside handleDisconnectedException() in else ");
    vmDisconnectEvent((VMDisconnectEvent)event);
    eventSet.resume(); // Resume the VM
    } catch (InterruptedException exc) {
    // ignore
    private void vmStartEvent(VMStartEvent event) {
    System.out.println("inside vmStartEvent(VMStartEvent event)**** ");
    writer.println("-- VM Started --");
    // Forward event for thread specific processing
    private void methodEntryEvent(MethodEntryEvent event) {
    System.out.println("inside methodEntryEvent(MethodEntryEvent event)****** ");
    threadTrace(event.thread()).methodEntryEvent(event);
    // Forward event for thread specific processing
    private void methodExitEvent(MethodExitEvent event) {
    System.out.println("inside methodExitEvent(MethodExitEvent event)****** ");
    threadTrace(event.thread()).methodExitEvent(event);
    // Forward event for thread specific processing
    private void stepEvent(StepEvent event) {
    System.out.println("inside stepEvent(StepEvent event)****** ");
    threadTrace(event.thread()).stepEvent(event);
    // Forward event for thread specific processing
    private void fieldWatchEvent(ModificationWatchpointEvent event) {
    System.out.println("inside fieldWatchEvent(ModificationWatchpointEvent event)***** ");
    threadTrace(event.thread()).fieldWatchEvent(event);
    void threadDeathEvent(ThreadDeathEvent event) {
    System.out.println("inside threadDeathEvent(ThreadDeathEvent event)****** ");
    ThreadTrace trace = (ThreadTrace)traceMap.get(event.thread());
    if (trace != null) { // only want threads we care about
    trace.threadDeathEvent(event); // Forward event
    * A new class has been loaded.
    * Set watchpoints on each of its fields
    private void classPrepareEvent(ClassPrepareEvent event) {
    System.out.println("inside classPrepareEvent(ClassPrepareEvent event)****** ");
    EventRequestManager mgr = vm.eventRequestManager();
    List fields = event.referenceType().visibleFields();
    for (Iterator it = fields.iterator(); it.hasNext(); ) {
    System.out.println("inside classPrepareEvent(ClassPrepareEvent event) inside for loop Iterator ****** ");
    Field field = (Field)it.next();
    ModificationWatchpointRequest req =
    mgr.createModificationWatchpointRequest(field);
    for (int i=0; i<excludes.length; ++i) {
    System.out.println("inside classPrepareEvent(ClassPrepareEvent event) inside for loop int ****** ");
    req.addClassExclusionFilter(excludes);
    req.setSuspendPolicy(EventRequest.SUSPEND_NONE);
    req.enable();
    private void exceptionEvent(ExceptionEvent event) {
    System.out.println("inside exceptionEvent(ExceptionEvent event)****** ");
    ThreadTrace trace = (ThreadTrace)traceMap.get(event.thread());
    if (trace != null) { // only want threads we care about
    trace.exceptionEvent(event); // Forward event
    public void vmDeathEvent(VMDeathEvent event) {
    System.out.println("inside vmDeathEvent(VMDeathEvent event)****** ");
    vmDied = true;
    writer.println("-- The application exited --");
    public void vmDisconnectEvent(VMDisconnectEvent event) {
    System.out.println("inside vmDisconnectEvent(VMDisconnectEvent event)****** ");
    connected = false;
    if (!vmDied) {
    System.out.println("inside vmDisconnectEvent(VMDisconnectEvent event)in if loop ****** ");
    writer.println("-- The application has been disconnected --");
    // StreamRedirectThread.java
    import java.io.*;
    * StreamRedirectThread is a thread which copies it's input to
    * it's output and terminates when it completes.
    * @version @(#) StreamRedirectThread.java 1.4 03/01/23 17:55:38
    * @author Robert Field
    class StreamRedirectThread extends Thread {
    private final Reader in;
    private final Writer out;
    private static final int BUFFER_SIZE = 2048;
    * Set up for copy.
    * @param name Name of the thread
    * @param in Stream to copy from
    * @param out Stream to copy to
    StreamRedirectThread(String name, InputStream in, OutputStream out) {
    super(name);
    this.in = new InputStreamReader(in);
    this.out = new OutputStreamWriter(out);
    setPriority(Thread.MAX_PRIORITY-1);
    System.out.println("inside StreamRedirectThread(String name, InputStream in, OutputStream out) ****** ");
    * Copy.
    public void run() {
    System.out.println("inside StreamRedirectThread class in run() ****** ");
    try {
    char[] cbuf = new char[BUFFER_SIZE];
    int count;
    while ((count = in.read(cbuf, 0, BUFFER_SIZE)) >= 0) {
    System.out.println("inside run() in while loop the count is ****** "+count);
    out.write(cbuf, 0, count);
    out.flush();
    } catch(IOException exc) {
    System.err.println("Child I/O Transfer - " + exc);
    by using these files i m trying to trace the execution of DateExample.java through the Trace.java by using the command
    java Trace -output trace.log DateExample
    by executiing i m getting the exceptions in the output file trace.log
    -- VM Started --
    ====== main ======
    main -- DateExample
    | Exception: instance of java.lang.ClassNotFoundException(id=97) catch: java.lang.ClassLoader:286
    | | | | | | | | | | | | | | | | | | | | Exception: instance of java.lang.ClassNotFoundException(id=99) catch: java.lang.ClassLoader:286
    | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.lang.ClassNotFoundException(id=99) catch: java.lang.ClassLoader:286
    | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=100) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=100) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=101) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=101) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=102) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=102) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.util.zip.ZipException(id=104) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.util.zip.ZipException(id=104) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.lang.ClassNotFoundException(id=105) catch: java.util.ResourceBundle:1074
    | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.lang.ClassNotFoundException(id=105) catch: java.util.ResourceBundle:1074
    | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=108) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=108) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=109) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=109) catch: sun.misc.URLClassPath:293
    | | | | | | | | | | | | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=118) catch: null
    | | | | | | | | | | | | | | Exception: instance of java.io.FileNotFoundException(id=121) catch: null
    ====== main end ======
    -- The application exited --
    Could any one help me in this regard to execute the programm.
    Could any one help to show the execution of the Seq.java downloaded from the site http://search.cpan.org/src/PHILCROW/UML-Sequence-0.05/java/Seq.java, what i mentioned in my previous mail.
    thanks,

  • How to execute bapi programm

    hai
          i have a BAPI programme to delete the orders.because i need to delete more than 600 orders, can any one tell me how to execute that programme.but we can use lsmw and bdc also. my abaper has given me that programme BAPI_SALESORDER_CHANGE TO DELETE SAL. i want to know how to execute this

    Hi Satish,
    U can execute BAPI Programs in different ways
    U can execute/ See the BAPI Program  in SE38.
    And also u can use LSMW to Execute BAPI program
    in LSMW Place the BAPI program in Maintain Object Attribute Column.
    and execute like wise..
    See Link Below..
    http://www.esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI
    Reward If Helpful...
    Regards..
    Praveen Kumar.D

  • Execute another programm from Java

    Hello Java Gurus,
    I am developing a java app that reads from my DB and do some calcs with it. I would need to execute another programm later sending some of the data as parameters.
    In C I would use _exec() function, is there any function like that in Java?
    Many thnks,
    AC.

    There is a method like
    runtime.exec();
    you could use that.

  • The procedure entry point NS_Set DLL Directory could not be located in dynamic link library Xul.dll. Firefox 4 downloaded and used yesterday won't start today. Any answers?

    I downloaded Firefox 4 yesterday. I used it and had no problems. I started my computer today and clicked the Firefox icon and got the message "The procedure entry point NS_Set DLL Directory could not be located in dynamic link library Xul.dll" .I tried to shutdown and restart and got the same message.I use Norton Security. Could it not recognize Firefox 4 and done this?

    '''Edit: '''That was a lot of questions. You might want to just re-run the Firefox 5.0.1 installer to see whether that corrects what appears to be a mismatch of files. I suggest saving the installer to the desktop, restarting Windows to ensure that all file locks are released, and then running the installer. As always, you can download from here: http://www.mozilla.com/firefox/all.html
    In your other post, you wrote "I just downloaded FireFox 5.0 today, and none of the icons on my desktop will open. This is the message that I receive. The procedure entry point NS_Set DLL Directory could not be located in dynamic link library Xul.dll."
    Can you describe what happens in these different scenarios:
    (1) Start Firefox with its own program icon. Error dialog, but Firefox runs normally after you dismiss it? Or no error? Or Firefox won't start?
    (2) Firefox not running, double-click shortcut to web site on desktop. Error dialog but Firefox loads the page after you dismiss it? Or Firefox doesn't load the page? Or Firefox never loads??
    (3) Firefox running, double-click shortcut to web site on desktop. Error dialog but Firefox loads the page after you dismiss it? Or Firefox doesn't load the page? Or Firefox dies??
    (4) Double-click unrelated desktop shortcut. Does this give an error as well?
    If you've noticed effects with links in documents or emails outside of Firefox, that could be a clue as well.

  • I am trying to open Premiere Elements but get 'CoreVideo.dll is missing' and 'Core Audio Toolbox.dll is missing'. Suggests reinstalling programme - have done that but still get these messages.

    I am trying to open Premiere Elements but get 'CoreVideo.dll is missing' and 'Core Audio Toolbox.dll is missing'. Suggests reinstalling programme - have done that but still get these messages.

    update your graphics card drivers.
    if that fails, reset your preferences.

  • Est-il possible sur un iMac OS 10.6.8 de créer une clé usb d'installation bootable comme sur Mavericks (sans l'utilisation du disque d'Installation initial) ?

    Est-il possible sur un iMac OS 10.6.8 de créer une clé usb d’installation bootable comme sur Mavericks (sans l'utilisation du disque d'Installation initial) ?

    ... Pour augmenter les chance d'obtenir une bonne réponse, je suggère que tu re-postes ce message en anglais sur "special interest boards" >> "BreakPoint" ou "FeedBack"
    Message Edité par TiTou le 03-29-2006 03:04 PM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • TS1470 Error message - DLL file - Unable to execute a necessary DLL file

    Hi there,
    I tried to Install Itunes (iTunes 11.0.2 for  Windows (64-bit)), but I get this error message, see attached image:
    It is in Dutch, but it says:
    "There is a problem with this Windows Installer-package.
    A DLL-file which is necessary to complete the installation, can't be executed,
    Please contact your system support or the application supplier."
    Can anybody help me out please?!
    Thx,
    mvanrenssen

    Agree with RajaRani. For instructions on the procedure (doing a "run as administrator" on the installer file), see the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

  • Comment lancer un projet sans toucher aux dll ou librairie déjà existentes

    Bonjour,
    je dois faire un programme sur labwindows qui sera utiliser sur plusieurs PC, pour piloter une carte d'acquisition différentes à chaque fois (des vieilles PCI comme les PCI-6014 ou plus récentes comme les PCI-6221). Par contre les drivers, les versions de DAQmx sont aussi différentes selon les PC. Je voudrais donc (si c'est possible), renommer les DLL ou librairies indispensables afin de lancer l'exécutable, sans pour autant désinstaller ou remplacer les DLL ou drivers déjà existants.
    Comment dois je m'y prendre ?

    Bonjour mhen29,
    Merci d'avoir posté votre question sur le forum de National Instruments.
    Je vous conseille d’utiliser le logiciel NI-DAQmx 9.5.1 que vous pouvez trouver sur notre site. Vous pouvez le télécharger sur le lien suivant : http://joule.ni.com/nidu/cds/view/p/id/319/lang/fr
    Ce logiciel regroupe différents drivers dont ceux que vous spécifiez pour vos cartes PCI-6014 et PCI-6221. Les différents appareils supportés se trouvent sur le lien suivant : http://download.ni.com/support/softlib//multifunction_daq/nidaqmx/9.5.1/readme_fra.html
    Ces informations devraient vous aider à réaliser votre application dans les meilleures conditions.
    Bien cordialement,
    Julien De Freitas / Applications Engineer / Certified LabVIEW Developer (CLD)
    National Instruments Switzerland

  • Générer une tension puis la mettre en DLL.

    Bonjour,
    J'aimerais réaliser un programme permettant de faire varier une tension1 en fonction d'un temps1, puis une tension2 en fonction d'un temps2. Ces 2 tensions doivent etre généré sur la même voie de sortie chacune leur tour. Après avoir créé se programme sous CVI 7.1.1, j'aimerais le passer en DLL pour le faire fonctionner avec TestStand.
    Je vous joint mon petit bout de programme.
    Merci par avance.
    Miguel
    Pièces jointes :
    Tension_alim_prog.c ‏3 KB
    Tension_alim_prog.h ‏2 KB

    Bonjour Manu23,
    Afin de pouvoir déclencher et stopper ta mesure sur 2 seuils différents tu dois utiliser le noeud propriété suivant:
    La fênetre de déclenchement prend comme paramètre le seuil haut et le seuil bas.
    Cordialment
    Jean-Baptiste C.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Téléchargez dès maintenant toutes les présentations techniques !

  • TestStand don't unload handle in a DLL after step is executed and unloaded

    Hi,
    Sorry for the 'Google' English. I hope you can understand my problem.
    I developed a DLL (in C, under Visual C++.NET 2003) to program board by Ethernet. Then I developed VIs (LV 7.1) for this DLL. It's work very well.
    I adapted these VIs for TestStand 2.0.1 (Test Data indicator and Input buffer command - with the good connector). I had sometime error -18002 (Server close VI) then I configured steps so that TS load them dynamically and unload after the steps execution.
    With this step configuration, I can unloaded an Access file opened in a VI.
    In the DLL, I open another ASCII file then I close it before go back under LabVIEW. When I launch the VIs without using TestStand ('Edit code' and run under LV), I can launch the programming several times. But if I use 'Run selected step', I can launch only one programming: the file can't be open any more (handle already used). If I do 'run selected step' several times (4 to 5 times), I have an error -18002 and I must close LabVIEW and TestStand for all to free. I tested on another PC which works very well but there too I have the same problem.
    How do I have to configure TestStand to be sure that it releases the resource? Thank you in advance for your help.
    My NI login didn't work since many months (thanks Laura F. of ni.com to solve this problem) so I posted this message on NI France (SR 7158216). Today, they did not find a solution yet. The support tested the call of a DLL (opening/closing of a file) CVI directly under TestStand without problem. They must test the call of the DLL in one VI, called under TestStand. If somebody encountered already this problem and found a solution, that interests me because my customer want now to have his program speedly. Thanks a lot.
    Regards.
    PS:
    If that can help somebody:  LabVIEW does not like 'BOOL' and 'u_char' types in a DLL: the DLL works without error but the result is bad. It is to better use 'int' (instead of 'BOOL') and 'unsigned char' (instead of 'u_char') even of they are used in an internal function with the DLL. I must search a long time before understand this problem.

    Thanks for your answer
    .NIDays2008 {font-family:Arial, Helvetica, sans-serif; font-size:12px; color: #065fa3; font-weight: bold; text-decoration: none; text-align: right;} .NIDays2008 a, a:hover {text-decoration: none;} .NIDays2008 a img {height: 0; width: 0; border-width: 0;} .NIDays2008 a:hover img {position: absolute; height: 90px; width: 728px; margin-left: -728px; margin-top:-12px;}
    >> Avez-vous entendu parler de NI Days ?

  • Changer l'executable du PC RT sans redémarrer le PC

    Bonjour
    J'ai un PC RT (Phar Laps) sur lequel tourne Labview RT et un PC IHM ( Windows) liaison TCP/UDP entre les 2 PC
    D'habitude on utilise un startup.exe qui est lancer des que le PC RT est allumé.
    Ce que je souhaite faire c'est de pouvoir changer l'executable qui est exécuté sur le PC RT sans à avoir à redemarer celui ci 
    Exemple je lance sur IHM un VI (version 2.0) celui ci alors charge sur le PC RT la version RT qui correspond (sans que le PC RT redemarre) 
    Est-ce-possible ?
    Merci

    Bonjour,
    Le startup.exe est obligatoirement booté au démarrage, vous ne pouvez pas le modifier sans redémarrer. Vous pouvez néanmoins toujours passer par le projet LabVIEW du PC IHM pour redéployer un nouveau code sans redémarrer.
    A noter que vous pouvez aussi faire un VI de démarrage :
    > Configuring Startup VIs on LabVIEW Real-Time Targets with a Source Distribution
    Cordialement,
    Rémi M.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les présentations NIDays 2010 déjà disponibles au téléchargement !

Maybe you are looking for

  • Not using the most recent checked in version of the web app DLL in Release build

    Hi folks Got some peculiar behaviour - I have three build configurations set up within VS2K13 for Debug, Release and DebugOnLive. There are some basic XML transformations to update emails, db-settings etc - all very simple and working. Needed to do a

  • Error while starting sqlplus in SunSolaris-5.8

    Hello, I'm getting below error when I start sqlplus in sunOS-5.8. I'm just giving following command. $sqlplus It giving the error like, Message file sp1<lang>.msb not found Error 6 initializing SQL*Plus Any info on this would be very useful.. Thanks,

  • Want to avg only a range of subtotals

    My customers want a worksheet that displays summarized FY subtotals and then an average of the FY subtotals. Easy so far. The problem is that they want data summarized as subtotals for the previous (complete) six FYs as well as the current (incomplet

  • Will Lion speed up or slow down my machine?

    My Macbook has been upgraded to have 4GB of RAM a while ago and has been running fairly well for a long time. However, recently when too much is 'going on', rending out of AE and looking on the net, the system crashes and relogs me in! Very frustrati

  • SPL Screening in portal

    Hi Can anyone provide me good pointers, I'm looking at integrating the SAP GTS SPL for address check functionality in SAP portal. One way we have thought is to use the web services, but we need the details of the service name. Also there is a WD ABAP