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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:29:05+00:00 2026-06-10T03:29:05+00:00

I get this error whenever I enter whatever number bigger than the following, in

  • 0

I get this error

Error

whenever I enter whatever number bigger than the following, in a code compiled with Microsoft Visual C++ 2010 Express:

int size = 276447232;

Though, according to this conversation, this one or that one, I should be able to go up to 2147483646 before encountering any problem, no?

Sky

  • 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-10T03:29:07+00:00Added an answer on June 10, 2026 at 3:29 am

    The program is trying to allocate too much stack space:

    char *outputGwb = char[size]; // array is created "on the stack"
    

    Use malloc (or new in C++) to allocate memory from the heap. Make sure to free (or delete in C++) the memory later; just don’t mix the allocation/deallocation strategies.

    char* outputGwb = new char[size]; // C++: note use of the "new" keyword
    char* outputGwb = malloc(size);   // C:   note no cast needed in a C compiler
    

    This issue is thus about the maximum size of a particular resource and is not related to the maximum number an integer value can represent.

    See What and where are the stack and heap? for an explanation between the two memory allocation areas. In addition, while I wouldn’t necessarily recommend it, here is a thread that discusses how to change the stack size in Visual C++.

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

Sidebar

Related Questions

Whenever I try installing anything using gem, I get this error - murtaza@murtaza-dev:~$ sudo
whenever I try to call my ejb from a client, I get this error
I get this error when I run the code below. I have normally used
On a windows 2008 web server, I get the following error whenever posting a
I get this error whenever I run this: Warning: mysql_num_rows() expects parameter 1 to
Whenever I run a rake command (i.e. rake routes ) I get this error:
I get this error whenever i run the program Assignment makes pointer from Integer
I get this error whenever I submit the form also the action method is
I get this error whenever I have my main activity with a fragment loaded
Whenever I require a file in ruby or irb I get this error: LoadError:

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.