-
as seen on Server Fault
- Search for 'Server Fault'
I am having an issue with a program where after 6 mins +- 5 secs we get the above exception. Some more info about the exception stacktrace is below. This all happens pretty religiously, 6 mins goes by and bam the following 3 exeptions. We have the application installed in 2 other environments and…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I am having an issue with a program where after 6 mins +- 5 secs we get the above exception. Some more info about the exception stacktrace is below. This all happens pretty religiously, 6 mins goes by and bam the following 3 exeptions. We have the application installed in 2 other environments and…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need something similar to List<String, Int32, Int32>. List only supports one type at a time, and Dictionary only two at a time. Is there a clean way to do something like the above (a multidimensional generic list/collection)?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
OK, I know, Int32.MaxValue * Int32.MaxValue will yield a number larger than Int32 BUT, shouldn't this statement raise some kind of an exception?
I ran across this when doing something like IF (X * Y Z) where all are Int32. in X and Y are sufficiently large enough, you get a bogus value from X*Y
Why…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm re-writing alibrary with a mandate to make it totally allocation free. The goal is to have 0 collections after the app's startup phase is done.
Previously, there were a lot of calls like this:
Int32 foo = Int32.Parse(ASCIIEncoding.ASCII.GetString(bytes, start, length));
Which I believe is…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to have the solution to the following integral:
dx/((x^2+a)^0.5+b)
If anyone has Mathematica 7 or so, would they try it for me?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm interested in calculation of Improper Integral for a function.
Particularly it's a Gauss Integral. Using a numerical integration does make sense for a definite integrals but how should I deal with improper integrals ?
Is there any was to extrapolate the function "around" negative infinity or…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hello
I would like to know if there is a difference in speed between computing hash value (for example std::map key) of primitive integral type, such as int64_t and pod type, for example struct { int16_t v[4]; };.
I know this is going to implementation specific, so my question ultimately pertains…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
is there a 24Bit primitive integral datatype in C++?
If there is none, would it be possible to create a class int24 (, uint24 ) ?
it's purpose could be:
* manipulating soundfiles in 24 bit format
* manipulating bitmapdata without alphachannel
many thanks in advance
Oops
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
int main()
{
int *d=0;
printf("%d\n",*d);
return 0;
}
this works fine.
>cc legal.c
> ./a.out
0
if i change the statement int *d=0; to int *d=1;
i see the error.
cc: "legal.c", line 6: error 1522: Cannot initialize a pointer with an integer constant other than zero.
so its obvious that…
>>> More