Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6236755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:54:06+00:00 2026-05-24T10:54:06+00:00

This code should give me a collection of FilterInfo objects, representing the connected devices

  • 0

This code should give me a collection of FilterInfo objects, representing the connected devices in the chosen category, which in this case is webcams.

FilterInfoCollection collection = new FilterInfoCollection(FilterCategory.VideoInputDevice);

I tested this in a console application, and it worked great, but when i bring the code into WPF, it only returns one object.

I tried using it directly in xaml codebehind and in viewmodel bound to xaml controls, but same result.

This is so bloody frustrating
Thanks in advance =)

EDIT:

I found the cause, the WPF project “Platform Target” is set to “Any CPU”, and the console app is set to x86.
When i set the console app “Platform target” to “any cpu” it does exactly the same.

But unfortunately, the WPF project wont run when set to x86

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:54:07+00:00Added an answer on May 24, 2026 at 10:54 am

    I tried creating a new WPF project in the same solution, and now it works.
    Sometimes i hate code with a passion… =P

    Thanks for your help though!
    I will keep my eyes open if this thing happens again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently I've begun to code in Objective-C for iOS 5 devices. My brand new
I've seen this sort of code some places: public event SomeEventHandler SomeEvent = (s,
Can someone give me a sample code to confine the cursor on to a
For some reason the script below is not working. This is the code I
I am getting this error on the following code, and cant figure out why.
I don't care much about garbage collection, if present it should be optional. The
I'm doing a code review for Phone Book Mnemonics which Dr. Martin Odersky mentioned
echo $ul; // gives this code: <ul id=menu> <li id=some_id class=some_class>...</li> <li id=some_id class=some_class>...</li>
I have a Car class with various properties. I have a static Cars collection
I have a model and I'd like to restrict access to objects based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.