Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Jerry W Manweiler Ph D

@Jerry W Manweiler Ph D
About
Posts
11
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Unions in C#
    J Jerry W Manweiler Ph D

    Thank you for this posting. I am currently working on the conversion of some very old FORTRAN software for the NASA Voyager data processing as we are one of the instrument teams still working the Voyager Interstellar Mission and I have been struggling to find an option in C# to do exactly this, i.e. as mentioned in a reply this is like the FORTRAN COMMON BLOCK statement. Now I think I will be able to finish my conversion project a lot easier than attempting to write my own version of a COMMON statement and figuring out how to implement all of the various possibilities.

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    The Lounge csharp com

  • what is more reliable than ftp?
    J Jerry W Manweiler Ph D

    We do a lot of data transfers from our site to specific NASA sites and the data has to get there correctly. We had been using FTP and shipping the MD5's but one of our clients had to change their access due to security issues so we changed to SFTP which has a guaranteed delivery feature. We have not had any issues with failed or improperly transferred files since.

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    The Lounge question sysadmin

  • Is there Online Visual Studio IDE
    J Jerry W Manweiler Ph D

    Actually you do see modern doctors using leeches these days. They have found that the anesthesizing characteristics of the leech's mouth can help in some specific instances. See the following link: http://sciencenetlinks.com/science-news/science-updates/modern-leeching/[^] and you can do a Google search and find many more. So maybe there is a case for doing this work on an XP machine for this particular developer!

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    The Lounge visual-studio csharp question css cloud

  • Why MSDN?
    J Jerry W Manweiler Ph D

    I agree with the Microsoft Action Pack subscription route (MAPS). I've been using this for licenses and software downloads for about 8 years now and always have the most recent Visual Studio available for my use (as well as earlier versions assuming that I save the downloads and keep them locally). I also get multiple licenses for Windows (both desktop and server) and the office applications all for a very reasonable price. The design and development version also includes an MSDN subscription which is a highly reduced offering compared to regular MSDN subscriptions but nevertheless you get most of what you need to develop software including additional licenses for Windows and Office. The only thing that I could use but am otherwise missing is the Team Foundation Server (TFS) software but that also can be purchased by itself for about the same cost as MAPS -if you really need it. Otherwise, there are reasonable no cost solutions for code change tracking (such as GIT) although TFS does include much more that just change tracking. At a cost of about $500 per year this is a very reasonable way for a small business like mine to keep up to date with the most recent development software including the most recent Expression Web offerings.

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    The Lounge business question

  • C# Execution of Java program
    J Jerry W Manweiler Ph D

    I am running the 1st option that you indicate and provide the java application (java.exe) and the class that I am executing as one of the input parameters. Regardless of the above, the Process dies by killing all associated running processes including the IDE. The entire process (java class parms) does run just fine if I do it outside my code. So again the question is what in the code am I doing incorrectly or is it possible that you or others have run into this problem and figured out what is really going on. And to be very explicit - here is the actual code that I'm using:

            DirectoryInfo di = new DirectoryInfo(path);
            FileInfo\[\] files = di.GetFiles("\*.xml");
            foreach (FileInfo file in files)
            {
                Text = "Converting: " + file.Name;
    
                String\[\] parms = new String\[1\];
                parms\[0\] = file.FullName;                
                
                ProcessStartInfo psi = new ProcessStartInfo();
                psi.CreateNoWindow = true;
                psi.UseShellExecute = false;
                psi.RedirectStandardError = true;
                psi.RedirectStandardOutput = true;
                psi.FileName = @"\\\\NASA\\GSFC\\CDF\\CDFML2CDF.exe";
                psi.Arguments = file.FullName;
                psi.WindowStyle = ProcessWindowStyle.Hidden;
                
                try
                {
                    // Start the process with the info we specified.
                    // Call WaitForExit and then the using statement will close.
                    using (Process exeProcess = Process.Start(psi))
                    {
                        exeProcess.WaitForExit();
                        Text = "    Processing successful for file = " + file.Name;
                        Text = " ---- Process output Begin---";
                        Text = exeProcess.StandardOutput.ReadToEnd();
                        Text = " ---- Process output End---";
                    }
                }
                catch
                {
                    Text = "    Processing failed for file = " + file.Name;
                }
            }
    

    when it executes

    Process exeProcess = Process.Start(psi)

    The IDE and all threads die. There is nothing logged in the System or application event logs. There is nothing output to the system - IT JUST CRASHES the IDE and Threads. Do you have any helpful ideas or suggestions?

    C# csharp java discussion workspace

  • C# Execution of Java program
    J Jerry W Manweiler Ph D

    As I indicated in my original post, There are no exceptions thrown and the process works fine outside the C# environment That is why I'm looking for help in trying to understand what is going on.

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    C# csharp java discussion workspace

  • C# Execution of Java program
    J Jerry W Manweiler Ph D

    I based my code off of the provided sample. As far as I can tell the execute is occuring but when the process starts the system crashes.

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    C# csharp java discussion workspace

  • C# Execution of Java program
    J Jerry W Manweiler Ph D

    I'm working in .NET 4.0 and there is a Process.Start(ProcessStartInfo) method available. OK if the process is exiting with information what do I need to do to capture that information? The C# code that I'm executing just simply crashes without any exceptions thrown or anything. I am working in the Visual Studio 2010 IDE and it just simply stops.

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    C# csharp java discussion workspace

  • C# Execution of Java program
    J Jerry W Manweiler Ph D

    I'm working on a project that requires my C# code to execute a Java program provided to me by my client. I create a new ProcessStartInfo and setup the process as follows: psi = new ProcessStartInfo(); psi.CreateNoWindow = true; psi.UseShellExecute = false; psi.RedirectStandardError = true; psi.RedirectStandardOutput = true; psi.FileName = the java executable to be run; psi.Arguments = the arguments for the code; psi.WindowStyle = hidden; I then execute the program using using (Process exeProcess = Process.Start(psi)) { exeProcess.WaitForExit(); } when I execute the process the code crashes without any information. Any thoughts on what I might be doing incorrect or any thoughts on trying to get more information about why the crash occurs. As a note, if I run this process outside my code in a command prompt then it works without failure. Thanks Jerry

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    C# csharp java discussion workspace

  • Einstein's Riddle (A Challenging Logic Puzzle)
    J Jerry W Manweiler Ph D

    I am, she has a great future in front of her assuming she can get thru all of the teenage distractions.

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    The Lounge html com question

  • Einstein's Riddle (A Challenging Logic Puzzle)
    J Jerry W Manweiler Ph D

    Not to make any feel bad but my 14 year old daughter had it solved in about 10 minutes. She is a big geek and scores in the 97%+ on assessments if that helps your ego.

    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

    The Lounge html com question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups