blah blah blah is here! blah blah » Close

1
votes
1 answers

Index was out of range. Must be non-negative

I'm trying to copy values from a cell in my datagrid to a new form when clicked, I have this working apart from this one line of code: [code]GridClick.Descrip.Text = row.Cells[8].Value.ToString();[/code] Throwing this error: " ...

0
votes
2 answers

Out of memory exception in C#

How can we avoid out of memory exception while doing Dataset.WriteXML(stringbuilder); Here the size of dataset data is 80 mb

0
votes
0 answers

Session time out

Hi all Gurus, I have an asp.net application. I need to code a session time out (say after 5 min of inactivity) to redirect any page the user is in to the login page. I like to know if there is a way so I can write a code at once place like ...

0
votes
0 answers

Getting a P/Invoke (COM) string

Dear Debuggers, I have the following code fragment (and variants on it) -- it uses a COM P/Invoke to retrieve an out string pVal of size out int pSize which is actually a reference to a block of memory (24bit Colo(u)r) which I am attempting ...

1
votes
1 answers

out and ref keywords example question

I have two brief programs written below: [code] static void Method(ref int i, ref string s1, ref string s2) { i = 44; s1 = "I've been returned"; s2 = null; } static voi ...

Feedback