Jump to content

Run application in "Any CPU" mode


Rico

Recommended Posts

Hi,

 

i have a problem to add the EventHandler if i compile my application in Any CPU mode.

It throws the following error:

 

try
{
	//add eventhandler for the PubOnlineMgrNotification Events
    ConnectedLineManager.PubOnLineMgrNotification += EventHandler;
}
catch (Exception e)
{
	Console.WriteLine(e.Message);
}

 

bei System.Runtime.InteropServices.ComTypes.IConnectionPoint.Advise(Object pUnkSink, Int32& pdwCookie)
   bei CLMGRLib.IClientLineMgrEventsPub_EventProvider.add_PubOnLineMgrNotification(IClientLineMgrEventsPub_PubOnLineMgrNotificationEventHandler )
   bei CLMGRLib.ClientLineMgrClass.add_PubOnLineMgrNotification(IClientLineMgrEventsPub_PubOnLineMgrNotificationEventHandler )
   bei CdSwyxIt.SwyxItClientSdkEvents.ClientSdkEvents.Connect(ClientLineMgrClass lineManager, MessageHandler lineManagerMessageDelegate)
  
  Ausnahme von HRESULT: 0x80040202

 

I works perfect if i set the option "32-Bit bevorzugen" (see attachment).

 

My Problem is, that i can't set this option, because my application connects to SAP Business One.

If i set this option, i can't connect to SAP Business One 64bit Client.

 

 

 

Best regards,

Rico

 

 

 

Screenshot - 11.01.2017 , 16_20_10.png

Link to comment
Share on other sites


  • 3 weeks later...
  • 8 months later...
  • Member

Hello,

 

swyx!it client and CLMgr.exe are both 32 bit applications. So an application which uses the client line manager component must also be in 32 bit.

As far as i know, the only way for 64 bit application is to use the CDS SDK, which works with web services.

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.