Rupreet's Weblog

Looking deep inside under the hood

  Home  |   Contact  |   Syndication    |   Login
  11 Posts | 0 Stories | 27 Comments | 59 Trackbacks

News

Archives

Post Categories

Last evening, I was trying to write an application which could detect IR Devices from my machine and give its details. I was using VS2005 Beta 2 Winforms. I added System.Net.IrDA.dll from “C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\WindowsCE\System.Net.IrDA.dll” path. The program is simple, just create an instance of IrDAClient and look for devices using IrDA.DiscoverDevices(int max) which gives an array of IrDADeviceInfo. But to my surprise, when I launch the application, it was throwing exception "IrdaClient.DiscoverDevices throws InvalidProgramException".

Reading more about InvalidProgramException exception online, MSDN says "The exception that is thrown when a program contains invalid Microsoft intermediate language (MSIL) or metadata. Generally this indicates a bug in the compiler that generated the program". I was still doubtful if it was really a bug or am I doing something wrong. After working on the code and looking over internet, nothing resolved this issue. Then I thought will log this issue to MSDN Product Feedback Center. While logging the issue, I found it’s already logged and Microsoft Product Team has already confirmed that this is a reproducible at there end and validated it as a bug. Here are the bug details.

posted on Wednesday, June 22, 2005 2:23 PM

Feedback

# re: IrdaClient.DiscoverDevices throws InvalidProgramException - Bug in Compact Framework 11/14/2007 1:28 AM LaBUBU
I am doing exactly the same thing of you what did.
And I got exactly the same result with VS2005 SP1.
Do you have anu idea that we can create a Desktop application to receive IRDA ? (eg. IRDA on a notebook)

32feet framework ?

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: