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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:52:41+00:00 2026-05-31T21:52:41+00:00

i am using visual studio 2010. i have a three dimensional structure array which,

  • 0

i am using visual studio 2010.

i have a three dimensional structure array which, i think, gives me the wrong error.
The array is defined from

#define BUCKETS 2048
#define B_ENTRIES 4096

typedef struct fpinfo
{
    unsigned long long offset;
    unsigned long length;
     char fing_print[33];
}fpinfo;

as

struct fpinfo search_buf[TNK_CACHE_SIZE][BUCKETS][B_ENTRIES];

The problem is,

when i define TNK_CACHE_SIZE to 6 it does not give me compile time error but have access violation error at run time when i try to write in to it.

on the other hand, if i define TNK_CACHE_SIZE to 3 it does give me the following compile time error.

1>LINK : fatal error LNK1248: image size (86CB7000) exceeds maximum
allowable size (80000000)

1) Why does it ignore the first declaration at compile time while it does not for the second one, when it was just half of the first one.

2) What is the maximum allowable size for a declaration on the stack?

3)Does this allowable size include all the other memory allocations in the project or is it one memory allocation after the other until there is no more allocable memory space and the last one not been able to be allocated flagged?

  • 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-31T21:52:43+00:00Added an answer on May 31, 2026 at 9:52 pm

    The compiler and linker’s check on the image size is probably imperfect. If you make it too big, probably some calculation has wrapped around resulting in an incorrect result which appears to be in the valid image size range. I.e. your toolchain will catch a small error in an image size going too big, but not a large error.

    Note that if you double the number 86CB,7000, you get one that requires more than 32 bits to represent, namely 1,0D96,E000. If the calculation is done in 32 bits, this might get chopped to D96,E000, making the image size look in range, though totally wrong.

    Try dynamically allocating the space with malloc.

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

Sidebar

Related Questions

I have compiled this using Visual Studio 2010 compiler and it has compiler error
For reference, I'm using Visual Studio 2010. I have a custom build step defined
I have a solution, which is built using Visual Studio 2010 from a command
I have a asp.net website with c# code behind and using visual studio 2010.
I am using DotNet.Highcharts in conjunction with Visual Studio 2010. I have created an
I have VS 2010 with extension VS2P4 for using Perforce commands within Visual Studio.
I am using Visual Studio 2010 in debug mode and I have "optimize code"
All: We are using Visual Studio 2010, and we have recently upgraded our workstations
I have made an addin for Microsoft Word 2010 Beta using Visual Studio 2010
I have a Microsoft Access 2010 database(*). Now, using Visual Studio 2010, I want

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.