Date: 21/05/2015 22:57:40
From: Fee
ID: 726820
Subject: Haaalp? (C++)

Anyone out there know anything about C++ and Visual Studio 2012?

I am being asked to create an array of some 5400kb worth of words and definitions (approx 106814 words). The stack overflows when I get to 12111 words and according to my googling I am supposed to add /F to the command line properties to increase the stack size. Nada… still crashes.

Anyone have any sage wisdom for me?

Reply Quote

Date: 21/05/2015 23:03:41
From: wookiemeister
ID: 726821
Subject: re: Haaalp? (C++)

Fee said:


Anyone out there know anything about C++ and Visual Studio 2012?

I am being asked to create an array of some 5400kb worth of words and definitions (approx 106814 words). The stack overflows when I get to 12111 words and according to my googling I am supposed to add /F to the command line properties to increase the stack size. Nada… still crashes.

Anyone have any sage wisdom for me?


don’t you just quote the number of characters/ numbers when you state the string/array?

Reply Quote

Date: 21/05/2015 23:04:32
From: wookiemeister
ID: 726822
Subject: re: Haaalp? (C++)

wookiemeister said:


Fee said:

Anyone out there know anything about C++ and Visual Studio 2012?

I am being asked to create an array of some 5400kb worth of words and definitions (approx 106814 words). The stack overflows when I get to 12111 words and according to my googling I am supposed to add /F to the command line properties to increase the stack size. Nada… still crashes.

Anyone have any sage wisdom for me?


don’t you just quote the number of characters/ numbers when you state the string/array?


you’d use strings for letters wouldn’t you?

Reply Quote

Date: 21/05/2015 23:09:34
From: Fee
ID: 726823
Subject: re: Haaalp? (C++)

wookiemeister said:


wookiemeister said:

Fee said:

Anyone out there know anything about C++ and Visual Studio 2012?

I am being asked to create an array of some 5400kb worth of words and definitions (approx 106814 words). The stack overflows when I get to 12111 words and according to my googling I am supposed to add /F to the command line properties to increase the stack size. Nada… still crashes.

Anyone have any sage wisdom for me?


don’t you just quote the number of characters/ numbers when you state the string/array?


you’d use strings for letters wouldn’t you?

Yes. The array is of a user created object (containing 3 strings) with 106814 members so it is a lot of characters. :)

Reply Quote

Date: 21/05/2015 23:16:09
From: wookiemeister
ID: 726824
Subject: re: Haaalp? (C++)

not being an expert

assuming you have the commands

int

long

for numbers

I wonder if there might be another command for a long string

Reply Quote

Date: 21/05/2015 23:32:39
From: mollwollfumble
ID: 726829
Subject: re: Haaalp? (C++)

Fee said:


Anyone out there know anything about C++ and Visual Studio 2012?

I am being asked to create an array of some 5400kb worth of words and definitions (approx 106814 words). The stack overflows when I get to 12111 words and according to my googling I am supposed to add /F to the command line properties to increase the stack size. Nada… still crashes.

Anyone have any sage wisdom for me?

I have used C++ with Visual Studio, but know practically nothing about command line options and how to increase the stack size. I deliberately use an antique version of Visual Studio (2008) with C++ because the more recent the version the less user-friendly it becomes.

I occasionally get stack overflow messages but, after swearing a bit, I limit the size of my program to be no bigger than the allowable stack size.

Any chance of you switching to C++ on Cygwin? I tend to use that more often.

Reply Quote

Date: 21/05/2015 23:53:22
From: mollwollfumble
ID: 726831
Subject: re: Haaalp? (C++)

mollwollfumble said:


Fee said:

Anyone out there know anything about C++ and Visual Studio 2012?

I am being asked to create an array of some 5400kb worth of words and definitions (approx 106814 words). The stack overflows when I get to 12111 words and according to my googling I am supposed to add /F to the command line properties to increase the stack size. Nada… still crashes.

Anyone have any sage wisdom for me?

I have used C++ with Visual Studio, but know practically nothing about command line options and how to increase the stack size. I deliberately use an antique version of Visual Studio (2008) with C++ because the more recent the version the less user-friendly it becomes.

I occasionally get stack overflow messages but, after swearing a bit, I limit the size of my program to be no bigger than the allowable stack size.

Any chance of you switching to C++ on Cygwin? I tend to use that more often.

According to https://msdn.microsoft.com/en-us/library/tdkhxaks(v=vs.120).aspx you need to increase the stack size in the compiler with command line “/F number” as well as in the linker with command line “/STACK:reserve”. Are you doing both?

Reply Quote

Date: 21/05/2015 23:56:57
From: Fee
ID: 726832
Subject: re: Haaalp? (C++)

mollwollfumble said:


mollwollfumble said:

Fee said:

Anyone out there know anything about C++ and Visual Studio 2012?

I am being asked to create an array of some 5400kb worth of words and definitions (approx 106814 words). The stack overflows when I get to 12111 words and according to my googling I am supposed to add /F to the command line properties to increase the stack size. Nada… still crashes.

Anyone have any sage wisdom for me?

I have used C++ with Visual Studio, but know practically nothing about command line options and how to increase the stack size. I deliberately use an antique version of Visual Studio (2008) with C++ because the more recent the version the less user-friendly it becomes.

I occasionally get stack overflow messages but, after swearing a bit, I limit the size of my program to be no bigger than the allowable stack size.

Any chance of you switching to C++ on Cygwin? I tend to use that more often.

According to https://msdn.microsoft.com/en-us/library/tdkhxaks(v=vs.120).aspx you need to increase the stack size in the compiler with command line “/F number” as well as in the linker with command line “/STACK:reserve”. Are you doing both?

I only did the /F bit, I must have misread, I thought it was either/or. Will give that a bash…. that is if I can find the linker properties window, took me all afternoon to find the compiler properties window. You are right about being user unfriendly. I, unfortunately have to stick with Visual Studio, requirement of the course and all that :/

Reply Quote

Date: 22/05/2015 00:35:08
From: Fee
ID: 726833
Subject: re: Haaalp? (C++)

Thank you Mollwollfumble – that worked – much appreciated :)

Reply Quote

Date: 22/05/2015 03:36:09
From: mollwollfumble
ID: 726837
Subject: re: Haaalp? (C++)

Fee said:


Thank you Mollwollfumble – that worked – much appreciated :)

:-)

Reply Quote