473,786 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Large string constant causes C# compiler crash

I created a C# application with some large string constants and whenever I
try to build the solution the compiler crashes with no error message. On
further analysis the problem seems to occur when the string constant has
around 2100 character. I tried changing the constant declaration to a string
variable declaration and it works fine.

Any ideas?

The following code can be used to reproduce the error:

const string TEST =
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890" +
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890";

Regards
Gnik
Nov 16 '05 #1
11 3096
As far as I am concerned, that shouldn't cause a crash -and indeed doesn't
on my machine. Maybe you should post the full code of your problem (perhaps
you have a physical memory problem on your machine?).
"Gnik" <Gn**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.com...
I created a C# application with some large string constants and whenever I
try to build the solution the compiler crashes with no error message. On
further analysis the problem seems to occur when the string constant has
around 2100 character. I tried changing the constant declaration to a
string
variable declaration and it works fine.

Any ideas?

The following code can be used to reproduce the error:

const string TEST =
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890";

Regards
Gnik

Nov 16 '05 #2
Gnik wrote:
I created a C# application with some large string constants and whenever I
try to build the solution the compiler crashes with no error message. On
further analysis the problem seems to occur when the string constant has
around 2100 character. I tried changing the constant declaration to a string
variable declaration and it works fine.

Any ideas?


Not able to reproduce here. Compiles and executes fine.
--
Tom Porterfield
Nov 16 '05 #3
The full code is simply that line of code pasted into the Main function of a
default console application. It was a simple test app to diagnose the issue.

I've tried the same thing on 2 different machines with the same results both
running Windows XP SP2, one with 256 Mb RAM and the other with 1 Gb RAM. I'm
on Visual Studio .NET 2003 (7.1.3088) and .NET Framework 1.1 SP1 (1.1.4322)

"Mark Broadbent" wrote:
As far as I am concerned, that shouldn't cause a crash -and indeed doesn't
on my machine. Maybe you should post the full code of your problem (perhaps
you have a physical memory problem on your machine?).
"Gnik" <Gn**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.com...
I created a C# application with some large string constants and whenever I
try to build the solution the compiler crashes with no error message. On
further analysis the problem seems to occur when the string constant has
around 2100 character. I tried changing the constant declaration to a
string
variable declaration and it works fine.

Any ideas?

The following code can be used to reproduce the error:

const string TEST =
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890";

Regards
Gnik


Nov 16 '05 #4
The full code is simply that line of code pasted into the Main function of a
default console application. It was a simple test app to diagnose the issue.

I've tried the same thing on 2 different machines with the same results both
running Windows XP SP2, one with 256 Mb RAM and the other with 1 Gb RAM. I'm
on Visual Studio .NET 2003 (7.1.3088) and .NET Framework 1.1 SP1 (1.1.4322)

"Mark Broadbent" wrote:
As far as I am concerned, that shouldn't cause a crash -and indeed doesn't
on my machine. Maybe you should post the full code of your problem (perhaps
you have a physical memory problem on your machine?).


Nov 16 '05 #5
Not reproducable so there must be a difference, any non visible characters
embedded perhaps? Use a binary view to see that.

"Gnik" <Gn**@discussio ns.microsoft.co m> wrote in message
news:87******** *************** ***********@mic rosoft.com...
The full code is simply that line of code pasted into the Main function of
a
default console application. It was a simple test app to diagnose the
issue.

I've tried the same thing on 2 different machines with the same results
both
running Windows XP SP2, one with 256 Mb RAM and the other with 1 Gb RAM.
I'm
on Visual Studio .NET 2003 (7.1.3088) and .NET Framework 1.1 SP1
(1.1.4322)

"Mark Broadbent" wrote:
As far as I am concerned, that shouldn't cause a crash -and indeed
doesn't
on my machine. Maybe you should post the full code of your problem
(perhaps
you have a physical memory problem on your machine?).
"Gnik" <Gn**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.com...
>I created a C# application with some large string constants and whenever
>I
> try to build the solution the compiler crashes with no error message.
> On
> further analysis the problem seems to occur when the string constant
> has
> around 2100 character. I tried changing the constant declaration to a
> string
> variable declaration and it works fine.
>
> Any ideas?
>
> The following code can be used to reproduce the error:
>
> const string TEST =
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
> +
> "12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890";
>
> Regards
> Gnik


Nov 16 '05 #6
"Tom Porterfield" <tp******@mvps. org> wrote in message
news:Ou******** ******@tk2msftn gp13.phx.gbl...
Not able to reproduce here. Compiles and executes fine.


Also, compiles & executes using Jeff Kay's "Snippet Compiler"

--
Truth,
James Curran
[erstwhile VC++ MVP]
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com

Nov 16 '05 #7
Gnik wrote:
The full code is simply that line of code pasted into the Main function of a
default console application. It was a simple test app to diagnose the issue.

I've tried the same thing on 2 different machines with the same results both
running Windows XP SP2, one with 256 Mb RAM and the other with 1 Gb RAM. I'm
on Visual Studio .NET 2003 (7.1.3088) and .NET Framework 1.1 SP1 (1.1.4322)


OK, I had pasted the code outside of main, at the class level. Putting
it inside main produces the same result as you are reporting.
--
Tom Porterfield
Nov 16 '05 #8
Having spent a bit of time with this there are several clear things.
1. Compiles ok when const is a class member.
2. Falls over when large string const is within Class member (have tried
methods and properties -static or not does not make a difference)
3. Length of const IS making a difference as to whether falls over or not.
4. Your statement IS VALID.

This seems to be a bug in visual studio since your project will compile with
the command line util csc.

Your solution is thus.. declare the constants as private class level members
rather than within the method calls. This is actually good practice too
since you would otherwise be re-initializing a brand new const upon every
method call wheras declaring them as class members they will be initialized
once only.

See end for code...

Br,

Mark.

P.S. Good problem find!
//CODE
using System;

namespace LargeStringCons tWorkaround
{
/// <summary>
/// Class demonstrates a VS problem with declaring of large string consts
within Class member methods and properties
/// </summary>
class MyClass
{
//This size constant here is OK
const string test =
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890";

[STAThread]
static void Main(string[] args)
{
/*This size constant here will cause VS to crash
const string test =
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890";
*/
Console.WriteLi ne(test);
}
}
}

"Gnik" <Gn**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.com...
I created a C# application with some large string constants and whenever I
try to build the solution the compiler crashes with no error message. On
further analysis the problem seems to occur when the string constant has
around 2100 character. I tried changing the constant declaration to a
string
variable declaration and it works fine.

Any ideas?

The following code can be used to reproduce the error:

const string TEST =
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890"
+
"12345678901234 567890123456789 012345678901234 567890123456789 012345678901234 567890123456789 01234567890";

Regards
Gnik

Nov 16 '05 #9

"Mark Broadbent" <no****@nospam. com> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Having spent a bit of time with this there are several clear things.
1. Compiles ok when const is a class member.
2. Falls over when large string const is within Class member (have tried
methods and properties -static or not does not make a difference)
3. Length of const IS making a difference as to whether falls over or not.
4. Your statement IS VALID.

This seems to be a bug in visual studio since your project will compile
with the command line util csc.


On the plus side, it appears that its fixed in whidbey, atleast for up to
three times the length of the repo case.
Nov 16 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
2107
by: CoolPint | last post by:
While I was reading about const_cast, I got curious and wanted to know if I could modify a constant variable through a pointer which has been "const_cast"ed. Since the pointer would be pointing to the constant variable and if I changed the value through the pointer, the constant variable should have been modified. Well, that's what I thought until I wrote the following and run it. #include <iostream> using std::cout; using std::endl;
18
2430
by: JKop | last post by:
Can some-one please point me to a nice site that gives an exhaustive list of all the memberfunctions, membervariables, operators, etc. of the std::string class, along with an informative description of how each works. I've been trying Google for the last 20 minutes but can't get anything decent. Thanks.
15
3338
by: Ramaraj M Bijur | last post by:
Hi All, Could anyone help me to resolve following problem in C the IDE used is Microsoft VC++, Please let me know the which option in VC++ will do the needful The problem statement: overwrite of charcter in constatnt string like char *str="Hi all"; str='A'; the result of this str points to the string "Hi All"
19
3471
by: Hal Styli | last post by:
Hello, Can someone please help. I need to use a large array and I'm not sure when one should use (A) and when one should use (B) below:- #define MAX 10000000 (A) int x;
3
5268
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 535F072A): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are...
10
11323
by: william | last post by:
#include <stdio.h> int main() { char *str=NULL; char x="today is good!"; printf("%s", str); str=strtok(x," "); if (str=="today") //<==here is line that confuses me printf("they equals!\n");
10
512
by: baje | last post by:
//new to c++ //have a pointer char *name; //want to enter a name *name = "dave"; //initialize cout<<"enter a name" cin>>name; cout<<" name entered is"<<name; //get a compiler error
21
55635
by: phpCodeHead | last post by:
Code which should allow my constructor to accept arguments: <?php class Person { function __construct($name) { $this->name = $name; } function getName()
17
9954
by: byte8bits | last post by:
How does C++ safely open and read very large files? For example, say I have 1GB of physical memory and I open a 4GB file and attempt to read it like so: #include <iostream> #include <fstream> #include <string> using namespace std; int main () {
0
9655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10169
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.