Click here to Skip to main content
15,904,155 members
Home / Discussions / C#
   

C#

 
QuestionHelp find whats wrong with my insert procedure Pin
arn_nold10-Aug-06 16:31
arn_nold10-Aug-06 16:31 
AnswerRe: Help find whats wrong with my insert procedure Pin
Dave Kreskowiak10-Aug-06 16:40
mveDave Kreskowiak10-Aug-06 16:40 
QuestionHTML formatted label in winforms? [modified] Pin
TheCardinal10-Aug-06 15:38
TheCardinal10-Aug-06 15:38 
AnswerRe: formatted label in winforms? [modified] Pin
Andy Moore10-Aug-06 16:47
Andy Moore10-Aug-06 16:47 
GeneralRe: formatted label in winforms? Pin
TheCardinal10-Aug-06 23:41
TheCardinal10-Aug-06 23:41 
GeneralRe: formatted label in winforms? Pin
Andy Moore11-Aug-06 7:00
Andy Moore11-Aug-06 7:00 
AnswerRe: HTML formatted label in winforms? Pin
Suelinda_W17-Aug-06 4:08
Suelinda_W17-Aug-06 4:08 
Questioncode performance. Pin
uglyeyes10-Aug-06 15:32
uglyeyes10-Aug-06 15:32 
Hi I have a few questions to ask,

1. whats the difference between finalize() and dispose() method
2. why below code performs poorly and if i have to write a good code how the below code should be

static string Space (string s)
{
string s2 = "";
foreach (char c in s)
{
s2 += c;
s2 += " ";
}
return s2;
}


3. why following code fails,

int a = 5;
int b = 5;

object oa = a;
object ob = b;

Debug.Assert(oa == ob, "oa is not equal ob");


ans. is that because we cant assign == for an object.

4. The following code is being executed in a highly threaded environment.

1. Why does the Debug.Assert statement sometimes fail?
2. What can be done to stop this from occurring?

public class Warehouse
{
private int stockCount = 0;

public void DecrementStock ()
{
if ( stockCount > 0 )
stockCount--;

Debug.Assert ( stockCount >= 0 )
}

public void IncrementStock()
{
stockCount ++;
}
}


thanks in advance.

AnswerRe: code performance. Pin
Ennis Ray Lynch, Jr.10-Aug-06 15:45
Ennis Ray Lynch, Jr.10-Aug-06 15:45 
GeneralRe: code performance. Pin
uglyeyes10-Aug-06 16:19
uglyeyes10-Aug-06 16:19 
GeneralRe: code performance. Pin
Dave Kreskowiak10-Aug-06 16:43
mveDave Kreskowiak10-Aug-06 16:43 
GeneralRe: code performance. Pin
Paul Conrad10-Aug-06 19:34
professionalPaul Conrad10-Aug-06 19:34 
GeneralOften Pin
Ennis Ray Lynch, Jr.10-Aug-06 17:14
Ennis Ray Lynch, Jr.10-Aug-06 17:14 
QuestionTransparent TabControl Help! Pin
Limey42010-Aug-06 15:17
Limey42010-Aug-06 15:17 
QuestionHow to detect File Transfer End on File Watcher Pin
Bharat Gadhia10-Aug-06 14:03
Bharat Gadhia10-Aug-06 14:03 
AnswerRe: How to detect File Transfer End on File Watcher Pin
Dave Kreskowiak10-Aug-06 16:46
mveDave Kreskowiak10-Aug-06 16:46 
QuestionPrint the dataGrid Pin
kalyanPaladugu10-Aug-06 12:03
kalyanPaladugu10-Aug-06 12:03 
QuestionProject settings Pin
allenmpcx10-Aug-06 12:03
allenmpcx10-Aug-06 12:03 
AnswerRe: Project settings Pin
Christian Graus10-Aug-06 12:18
protectorChristian Graus10-Aug-06 12:18 
GeneralRe: Project settings Pin
allenmpcx10-Aug-06 12:48
allenmpcx10-Aug-06 12:48 
GeneralRe: Project settings Pin
Christian Graus10-Aug-06 12:58
protectorChristian Graus10-Aug-06 12:58 
GeneralRe: Project settings Pin
allenmpcx10-Aug-06 14:39
allenmpcx10-Aug-06 14:39 
Questioncreating DSN for mySQL Pin
pnpfriend10-Aug-06 10:18
pnpfriend10-Aug-06 10:18 
AnswerRe: creating DSN for mySQL Pin
led mike10-Aug-06 10:40
led mike10-Aug-06 10:40 
QuestionDebugging c# in VS2005 - Break When Value Changes Pin
bearfx10-Aug-06 10:07
bearfx10-Aug-06 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.