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

  • SEARCH
  • Home
  • 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 7938369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:47:41+00:00 2026-06-03T22:47:41+00:00

I have a WPF C# application here, finally have solved errors. But after I

  • 0

I have a WPF C# application here, finally have solved errors. But after I run the program, it can work, just that there are 7 warnings that I have no idea what is it about. I need to know whether it will cause any problem to my project or not..

Warnings:

  1. CA2214:Microsoft.Usage: ‘PoseViewModel.PoseViewModel()’ contains a call chain that results in a call to a virtual method defined by the class. Review the following call stack for unintended consequences:

    PoseViewModel..ctor()
    ViewModelBase.get_IsInDesignMode():Boolean
    PoseViewModel.set_IsTracking(Boolean):Void
    ObservableObject.RaisePropertyChanged
    (Expression>):Void

  2. CA2000:Microsoft.Reliability:In method ‘SpeechController.InitSpeechRecognition()’, object ‘<>g_initLocal()’ is not disposed along all exception paths. Call System.IDisposable.Dispose on object ‘<>g_initLocal()’ before all references to it are out of scope.

  3. CA1901 : Microsoft.Portability : As it is declared in your code, parameter ‘dwExtraInfo’ of P/Invoke ‘NativeWrapper.mouse_event(uint, int, int, int, int)’ will be 4 bytes wide on 64-bit platforms. This is not correct, as the actual native declaration of this API indicates it should be 8 bytes wide on 64-bit platforms. Consult the MSDN Platform SDK documentation for help determining what data type should be used instead of ‘int’.

  4. CA1401 : Microsoft.Interoperability : Change the accessibility of P/Invoke ‘NativeWrapper.SetCursorPos(int, int)’ so that it is no longer visible from outside its assembly.

  5. CA1401 : Microsoft.Interoperability : Change the accessibility of P/Invoke ‘NativeWrapper.mouse_event(uint, int, int, int, int)’ so that it is no longer visible from outside its assembly.

  6. CA1060 : Microsoft.Design : Because it is a P/Invoke method, ‘NativeWrapper.SetCursorPos(int, int)’ should be defined in a class named NativeMethods, SafeNativeMethods, or UnsafeNativeMethods.

  7. CA1060 : Microsoft.Design : Because it is a P/Invoke method, ‘NativeWrapper.mouse_event(uint, int, int, int, int)’ should be defined in a class named NativeMethods, SafeNativeMethods, or UnsafeNativeMethods.

Help!

  • 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-06-03T22:47:43+00:00Added an answer on June 3, 2026 at 10:47 pm

    So… that’s what warnings are. They aren’t errors, just warnings. The application will work, but some parts of the code is suspicious for Visual Studio. Just try to fix them to ensure the quality of what you are producing.

    For instance, the second one seems pretty important.

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

Sidebar

Related Questions

I have a WPF application that has just one button. When the button is
This is odd. I have a WPF application that works just fine in XP
I have WPF C# application that communicate with a PLC (i.e. write/read Omron PLC's
I have a WPF application (.NET 3.0, VS2008) that displays data in a tab
I have a wpf application (C#) that needs to copy a file to a
We have a WPF Application that runs from both desktop and as a XBAP
I have a WPF application that is a fullscreen kiosk app. It's actually a
I have a WPF application that's crashing once I get it onto machines that
I have a WPF application that needs to extract the icon off of an
I have a ListView in my WPF application. my ListViewItem s are just Images.

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.