Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

COM Interop out-of process server NOT working in CE 5.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrea - 28 Mar 2007 02:59 GMT
Hi all,
  I am trying to use a simple smart device ATL COM server .EXE
(out-of-process server) w/ a CF 2.0 client. I succeed in creating the object
w/ new operator, but when I attempt to call any interface method or property
an exception is risen: no such interface. My image has DCOM enabled, and the
same COM server works greats with scripts (w/ cescripts) and any native
client (in C++ via smart pointers).
Any suggestions? I have no idea. Do you think this could be due to the lack
of marhalling in CF? If so, how to fix it?
Thank you for the help.
Kind regards,
   Andrea
Neil Cowburn - 30 Mar 2007 11:46 GMT
AFAIK, COM Interop under CF 2.0 only works with in-proc servers.

Signature

Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

Managed Code in the Embedded World

http://www.opennetcf.com/
http://www.smartdeviceframework.com/

> Hi all,
>   I am trying to use a simple smart device ATL COM server .EXE
[quoted text clipped - 12 lines]
> Kind regards,
>    Andrea
Andrea - 30 Mar 2007 14:18 GMT
Sorry,
  but I do not agree with you. WE SUCCEEDED in making CF2.0 work with
out-of-process COM server using a proxy/stub DLL that implements the CUSTOM
mashaling.
The only think we noticed is:
- foreach directive fails because IComEnumerator cannot be marshaled;
- for some reason, if I put a breakpoint in a event handler and this
breakpoit is hit, Visual Studio crashes. If I remove the breakpoit the
application works great. Inside the event handler we of course cannot reach
any graphical object but we can use Invoke.
Can you explain me these behavior?
Kind regards,
  Andrea

> AFAIK, COM Interop under CF 2.0 only works with in-proc servers.
>
[quoted text clipped - 14 lines]
> > Kind regards,
> >    Andrea
Neil Cowburn - 30 Mar 2007 16:37 GMT
I would class that as not working. If you need to implement a custom
marshaller in native code, then out-of-proc COM *clearly* isn't working
directly from CF 2.0.

Signature

Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

Managed Code in the Embedded World

http://www.opennetcf.com/
http://www.smartdeviceframework.com/

> Sorry,
>   but I do not agree with you. WE SUCCEEDED in making CF2.0 work with
[quoted text clipped - 31 lines]
>> > Kind regards,
>> >    Andrea
Andrea - 30 Mar 2007 18:00 GMT
Just in case we run into problem:
  - is it possible to make an in-proc COM server that exports the same
interface(even event, inbound interface) as the COM.EXE server and use it in
order to overcome the CF2.0 limitation?
  - are there any workarounds to do in order to make our out-of-process COM
server running?
Kind regards,
   Andrea

> I would class that as not working. If you need to implement a custom
> marshaller in native code, then out-of-proc COM *clearly* isn't working
[quoted text clipped - 35 lines]
> >> > Kind regards,
> >> >    Andrea

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.