PC SDK 5.13 problem with VS2005 under Win 7 x64
Hi,
public partial class MyForm : Form{public MyForm(){
try
{
InitializeComponent(); //work good in debug
........ // no erros catchMyMethod(); // strange!! catch Exception here and not when i enter in MyMethod, never enter into this method...}
catch(Exception ex) { MessageBox.Show(ex.Message, "Error 0001:", MessageBoxButtons.OK, MessageBoxIcon.Error); }}void MyMethod(){try{....//create my and ABB object.......}catch(Exception ex) { MessageBox.Show(ex.Message, "Error 0002:", MessageBoxButtons.OK, MessageBoxIcon.Error); }}}
Comments
-
Maybe can be help some other information, paste OUTPUT message:'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_64mscorlib2.0.0.0__b77a5c561934e089mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'FlexRemote.exe' (Managed): Loaded 'C:UsersecapitanioDesktopFlexRemote2.0_betaPCGUIinReleaseFlexRemote.exe', Symbols loaded.
'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_MSILSystem.Windows.Forms2.0.0.0__b77a5c561934e089System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_MSILSystem2.0.0.0__b77a5c561934e089System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_MSILSystem.Drawing2.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_MSILSystem.Xml2.0.0.0__b77a5c561934e089System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_MSILmscorlib.resources2.0.0.0_it_b77a5c561934e089mscorlib.resources.dll', No symbols loaded.
'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_MSILABB.Robotics.Controllers5.13.1034.0__1da709b7d1f14b7bABB.Robotics.Controllers.dll', No symbols loaded.
'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_MSILABB.Robotics5.13.1034.0__1da709b7d1f14b7bABB.Robotics.dll', No symbols loaded.
A first chance exception of type 'System.BadImageFormatException' occurred in FlexRemote.exe
'FlexRemote.exe' (Managed): Loaded 'C:windowsassemblyGAC_MSILSystem.Configuration2.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
And this is the LOCALS screen shot:
0 -
The first time a method is called, the code is compiled at runtime (just-in-time from MSIL). It seems that this first compilation is the one that tries to load the class and fails to load one of the assemblies needed by classes used inside your method.BR/CarlosCarlos Martinez
ABB0 -
Tnx Carlos for your answer,
Ok, it's true what you wrote, and i think that assembly that needed it's really the assembly referred in my message error "ABB.Robotics.Adapters.IRC5.dll". But i have just added this dll in my project, setted it to copy to local when build the project, and i added his path (C:Program Files...) in project properties reference path, but always don't work and i have the same message error.
Some idea for resolve about this dependence???
(Yes, i have just installed completely Robostudio Online 5.13 and his RoboWare and whole SDK in my local drive, and my users is a administrator account on my workstation).
bye Ema
0 -
This is a easy example of code that explain my problem under Win7 x64.Try it....bye Ema
0 -
Hi ECapitano,the Visual Studio project setting Build/General/Platform Target, shall be set to "x86" explicitly, and not "Any CPU" which I think is the default in Visual Studio 2005.Please try to change that and see if the application runs on the 64-bit machine.0
-
ok, tank you very much, resolved!!!
this topic can be closed!!
bye Ema
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings