Reputation: 319
I have recompiled a 32bit ole control for 64-bit windows platform (this is necessary due to the large amound of memory that ole is allocating in this appliance).
I need to load this inside my eclipse rcp application that is running on JDK32bit and eclipse 32bit (windows 32bit emualtion on 64 bit). I whish to not recompile the rcp application beccause it is huge and I'm afraid of many thigs could go wrong.
So far (on 32 bit platform), I used the method described at this site ActiveX Support In SWT to load this activeX. Now on 64-bit windows the loading of ole fails (it launches an exception).
Upvotes: 1
Views: 1191
Reputation: 319
Thank you Konstantin. I've found the problem I had and I would like to puntualize a couple of things that could helps someone in the future who needs to port 32-bit to 64-bit OLE RCP application.
I hope that all my efforts will help someone else.
Upvotes: 1
Reputation: 29139
You cannot mix 32-bit and 64-bit components in the same process. To load a 64-bit OLE control in an RCP app you need 64-bit JDK and 64-bit Eclipse runtime.
Upvotes: 3