|
-
Apr 14th, 2004, 03:16 PM
#1
about to get crazy, help
I have this:
PHP Code:
// Make sure the value is at least 0
if (intensityCount[curIntensity]<0) intensityCount[curIntensity]=0;
// Add one
intensityCount[curIntensity]++;
// Sometimes the debugger stops here!!!!
if(intensityCount[curIntensity]==0) System.Diagnostics.Debugger.Break();
and here's how the array is declared:
byte[] intensityCount= new byte[255];
I don't understand what MIGHT be possibly wrong. I'm assuring the element of the array has a value of at least zero. Then adding 1 to it, and it's still ZERO?!!!! what the heck?? any ideas?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Apr 15th, 2004, 02:58 AM
#2
Not sure if its just a problem with 'byte's, but have you tried:
PHP Code:
// Add one
intensityCount[curIntensity]+=1;
?
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Apr 15th, 2004, 09:17 PM
#3
Originally posted by «°°phReAk°°»
Not sure if its just a problem with 'byte's, but have you tried:
PHP Code:
// Add one
intensityCount[curIntensity]+=1;
?
Phreak
yeah , even tried adding a really big number besides 1... still happened....I wasn't making an obvious mistake or anything. I looked at the code for 1 hour and couldnt figure it out... so I just deleted the whole thing  problem resolved
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Apr 16th, 2004, 06:49 AM
#4
You softy 
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|