585,753 active members*
3,874 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Dynomotion/Kflop/Kanalog > My C# 2010 Application runs, and works with KFlop, but not independent of dev. prog?
Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2004
    Posts
    235

    My C# 2010 Application runs, and works with KFlop, but not independent of dev. prog?

    My new CNC C# program, works as it should, as long as I am running from C# 2010 program, even without debug.

    Then I publish it... and I get the error below. During and after trying to install the program. Even on the same computer, and on my laptop?
    __________________________________________________ _____________________________________________

    Problem signature:
    Problem Event Name: CLR20r3
    Problem Signature 01: truemachinecnc4.exe
    Problem Signature 02: 1.0.0.0
    Problem Signature 03: 53bbf267
    Problem Signature 04: KMotion_dotNet
    Problem Signature 05: 1.0.1.0
    Problem Signature 06: 5133ac38
    Problem Signature 07: 3a
    Problem Signature 08: e1
    Problem Signature 09: KMotion_dotNet.DMException
    OS Version: 6.1.7601.2.1.0.768.3
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

    __________________________________________________ ________________________

    I am not sure why the program works so well in the development enviroment... and then not from the Release folder... or after install?
    Any help would be much appreciated.
    __________________________________________________ ________________________

    I have tried to move all the .dll's over from Kmotion release to my release folder, and the two manifest files... but still the error.
    Tried to run as admin.

    Thanks in advance...
    ,
    Robot & Machine Design - BLUECNC4, GreenCNC3, RedCNC2L, SilverCNC2; CNC Software!
    www.truemachinedesign.com - - - - - - - - - - - - - www.truemachineautomation.com

  2. #2
    Join Date
    May 2006
    Posts
    4045

    Re: My C# 2010 Application runs, and works with KFlop, but not independent of dev. pr

    Hi jeffserv,

    I'm not sure either. But since you are using VS2010 instead of VS2008 you may need to include the VS2010 run time distributables and possibly a manifest. The ones we include in the KMotion/Release directory are for VS2008. Running from within VS2010 may somehow find the necessary installed VS2010 DLLs. You might even need both unless you re-compile our KMotion Libraries using VS2010. I'm also not familiar with what you mean by "publish".

    HTH
    Regards
    TK
    http://dynomotion.com

  3. #3
    Join Date
    Jul 2004
    Posts
    235

    Re: My C# 2010 Application runs, and works with KFlop, but not independent of dev. pr

    In VS 2010 publish, is the method for deploying your application...

    I am researching the dependencies, of my exe... and seeing if I find anything related. As well the idea of distributables....

    Have not succeeded yet. Works perfect if ran from VS2010... just not outside the program...
    Robot & Machine Design - BLUECNC4, GreenCNC3, RedCNC2L, SilverCNC2; CNC Software!
    www.truemachinedesign.com - - - - - - - - - - - - - www.truemachineautomation.com

  4. #4
    Join Date
    May 2006
    Posts
    4045

    Re: My C# 2010 Application runs, and works with KFlop, but not independent of dev. pr

    Hi jeffserv,

    I can't see a problem. Here is what I did:

    #1 Fresh Install Version 4.33cc
    #2 open C:\KMotion433cc\PC VC Examples\BuildExamples\BuildExamples.sln with VS2010
    #3 allow the projects to be converted
    #4 change to Release Config
    #5 set SimpleFormsCS as startup project
    #6 verify SimpleFormsCS Project Properties | Build | Output Path = C:\Kmotion433cc\KMotion\Release
    #7 Rebuild SimpleFormsCS
    #8 Verify C:\KMotion433cc\KMotion\Release\SimpleFormsCS.exe has new time stamp
    #9 exit VS2010
    #10 double click C:\KMotion433cc\KMotion\Release\SimpleFormsCS.exe
    #11 runs ok!

    Regards
    TK
    http://dynomotion.com

  5. #5
    Join Date
    Jul 2004
    Posts
    235

    Re: My C# 2010 Application runs, and works with KFlop, but not independent of dev. pr

    Ok,

    Where is the download page for 4.33cc

    I only see 4.32 on your web site??
    Robot & Machine Design - BLUECNC4, GreenCNC3, RedCNC2L, SilverCNC2; CNC Software!
    www.truemachinedesign.com - - - - - - - - - - - - - www.truemachineautomation.com

  6. #6
    Join Date
    Jul 2004
    Posts
    235

    Cool Solved Problem!

    Finally solved my problem, with running my new C# GUI external of VS2010.
    __________________________________________________ ____________

    Had to move into the root folder of my ".exe"... all the KMotion dll files found in the /release folder of KMotion.
    Another file I had to move, was the KMotionServer.exe. Without that being in the same folder... it would always give an error,
    and stop my program at the first access to the board.

    After this I simply built my program into the KMotion release folder, where all these KMotion files are. Then the program would run,
    outside the VS2010 host.

    Thanks for your input Tom. Your support is very much appreciated.

    I now have my program Icon on my desktop... and can go on to testing what I have created.
    Robot & Machine Design - BLUECNC4, GreenCNC3, RedCNC2L, SilverCNC2; CNC Software!
    www.truemachinedesign.com - - - - - - - - - - - - - www.truemachineautomation.com

  7. #7
    Join Date
    May 2006
    Posts
    4045

    Re: My C# 2010 Application runs, and works with KFlop, but not independent of dev. pr

    Hi jeffserv,

    I'm a bit confused by your reply. I thought you did not want to target your program to the KMotion\Release folder. But I never argue with success

    Here is a link to our latetst Test Version 4.33cc.
    http:\\dynomotion\Software\KMotion433cc.exe

    Regards
    TK
    http://dynomotion.com

Similar Threads

  1. Replies: 0
    Last Post: 05-01-2013, 05:00 PM
  2. Fadal runs and runs and runs awayyyy!
    By pbrokaw in forum Fadal
    Replies: 25
    Last Post: 01-16-2012, 03:26 PM
  3. Solid Works 2010 2d sketch printing
    By chet470 in forum SolidCAM for SolidWorks and SolidCAM for Inventor
    Replies: 1
    Last Post: 05-02-2011, 08:57 PM
  4. edgcam 2010 and inventor 2010
    By inflateable in forum EdgeCam
    Replies: 8
    Last Post: 03-22-2010, 09:03 AM
  5. Independent Sodick Tech??
    By XYZ machine in forum EDM Discussion General Topics
    Replies: 1
    Last Post: 01-13-2009, 02:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •