Select to view content in your preferred language

ArcObject in windws 7 64bit

2828
7
11-25-2010 05:15 AM
ValeriaAndronaco
Emerging Contributor
Hi
I have installed Visual Studio 2008, ArcGIS and ArcGis Engine for Microsoft .NET.
The installation is successful but when I build my toolbar for ArcMap developed into Visual Studio, this doesn't appear within the ArcMap's Toolbar.
I suppose that the problem is Windows 7 64bit because in the PC with Windows XP and Windows 7 32bit everything works fine!!!
Someone has installed the arcobject in Windows 7 64bit?
Could someone help me?

Thanks in advance!!!
0 Kudos
7 Replies
StevePiche
Emerging Contributor
I don't think the Arc Object libraries are available in 64 bits. We had the same issue and we have to compile in 32 bits mode.
0 Kudos
RuchiraWelikala
Regular Contributor
Make sure when you compile your customizations that the compilation is explicitly set to x86.
0 Kudos
ValeriaAndronaco
Emerging Contributor
Hi
Thanks for your answers. In the configuration manager of Visual Studio I have create a new
profile and set it up to use X86 instead of "Any CPU", but the toolbar doesn't works.
To be more precise, within ArcMap, if I click Customize, in the list of toolbars appears my toolbar but even if I click the check will not turn on.

Can you help me... pleaseeeeee!
0 Kudos
NeilClemmons
Honored Contributor
Don't create a new configuration profile.  Instead, update the existing Debug and Release profiles to x86.
0 Kudos
ValeriaAndronaco
Emerging Contributor
My toolbar doesn' work.
I'll describe below my step.

From Visual Studio:
Build -> Configuration Manager
In the Configuration Manager Form I have selected:
Active solution configuration: Debug
Active solution platform: x86
Next, foreach project in Configuration I have selected "Debug" and in Platform I have selected "x86".
Is this correct?
What should I do?
0 Kudos
NeilClemmons
Honored Contributor
These instructions are for Visual Basic, they may be different for C#:

In the Solution Explorer, double-click My Project
On the Compile tab, choose All Configurations in the Configuration drop-down
Click the Advanced Compile Options button
Choose x86 in the Target CPU drop-down

If this does not correct your problem, then the problem is most likely something else.

EDIT:  here are the instructions from ESRI for both VB.NET and C#.  These steps are required now at ArcGIS 10 but we ran into issues at 9.3.1 as well that were resolved by setting the target CPU to x86.

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000002ns000000
0 Kudos
AlexanderGray
Honored Contributor
ArcMap runs in 32 bit configuration and ArcMap loads the DLL so the DLL should be loaded in 32bit regardless of configuration of the dll itself.  Perhaps the problem is somewhere else and this is a false lead.  Does the toolbar show up at all in the list of toolbar or does it crash when it opens?    Is it an addin or is it registered as a arcmap toolbar?  Do you have exception handlers in your toolbar and command constructors and events (such as on create.)  It may be an unhandled exception.  You may have a different version of ArcGIS on the 32 and 64 bit machines.  You may have different account privileges.  You may have different extensions installed.  I suggest you look at other differences other than the 64 and 32 bit.