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 9248439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:56:43+00:00 2026-06-18T09:56:43+00:00

Am developing app for receiving the Data from Serial Port and handling it Microsoft

  • 0

Am developing app for receiving the Data from Serial Port and handling it Microsoft Visual C++ 2010 Win Forms Application!!!

To Receive the data i am using Read method by giving input buffer. But while reading the data, getting System.ArgumentNullException (Buffer cannot be null) exception. the part of the code is below. can any one help why am getting this exception n handling it.

this->sp1->Open();

array<wchar_t>^ buf2;

this->sp1->Read(buf2,1,1024);

this->sp1->Close();
  • 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-18T09:56:44+00:00Added an answer on June 18, 2026 at 9:56 am

    Your buffer doesn’t have an initial size. Try:

    array<wchar_t>^ buffer = gcnew array<wchar_t>(1024);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am developing app that would receive data from server any time. i have
I am developing app in Visual studio 2010, my app is constantly connected to
I am developing j2me app. I need to receive sms on specific port. Which
I developing an app that is read-only. The data has relationships, so I cannot
I'm developing app with Yii framework. I need from dropdown list with checkboxes as
I am developing an android app where I am dealing with sending and receiving
I'm currently developing app that requires storage of lots of information from different controls.
I've been developing app, that makes asynchronous requests for JSON type of data. Lately,
I'm developing a Java app, that calls a PHP from internet that it's giving
Welcome all I'm developing a Java app, that calls a PHP from internet that

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.