Click here to Skip to main content
15,905,612 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get all environment variable of a process Pin
Luc Pattyn19-Jul-07 8:42
sitebuilderLuc Pattyn19-Jul-07 8:42 
AnswerRe: How to get all environment variable of a process Pin
Luc Pattyn19-Jul-07 8:36
sitebuilderLuc Pattyn19-Jul-07 8:36 
GeneralRe: How to get all environment variable of a process Pin
SteveA6920-Jul-07 1:58
SteveA6920-Jul-07 1:58 
GeneralRe: How to get all environment variable of a process Pin
Luc Pattyn20-Jul-07 3:47
sitebuilderLuc Pattyn20-Jul-07 3:47 
GeneralRe: How to get all environment variable of a process Pin
SteveA6920-Jul-07 11:42
SteveA6920-Jul-07 11:42 
GeneralRe: How to get all environment variable of a process Pin
Luc Pattyn20-Jul-07 16:01
sitebuilderLuc Pattyn20-Jul-07 16:01 
GeneralRe: How to get all environment variable of a process Pin
SteveA6920-Jul-07 23:47
SteveA6920-Jul-07 23:47 
GeneralRe: How to get all environment variable of a process Pin
Luc Pattyn21-Jul-07 0:55
sitebuilderLuc Pattyn21-Jul-07 0:55 
GeneralRe: How to get all environment variable of a process Pin
SteveA6923-Jul-07 2:06
SteveA6923-Jul-07 2:06 
GeneralRe: How to get all environment variable of a process Pin
Luc Pattyn23-Jul-07 3:00
sitebuilderLuc Pattyn23-Jul-07 3:00 
GeneralRe: How to get all environment variable of a process Pin
SteveA6923-Jul-07 22:57
SteveA6923-Jul-07 22:57 
QuestionIs there a way to sort Listview columns numericly? Pin
Minosknight19-Jul-07 7:55
Minosknight19-Jul-07 7:55 
AnswerRe: Is there a way to sort Listview columns numericly? Pin
BoneSoft19-Jul-07 8:08
BoneSoft19-Jul-07 8:08 
GeneralRe: Is there a way to sort Listview columns numericly? Pin
Minosknight19-Jul-07 8:11
Minosknight19-Jul-07 8:11 
QuestionHow to use Backgroundworker for data transer? Pin
Khoramdin19-Jul-07 6:40
Khoramdin19-Jul-07 6:40 
AnswerRe: How to use Backgroundworker for data transer? Pin
Manas Bhardwaj19-Jul-07 7:05
professionalManas Bhardwaj19-Jul-07 7:05 
Questionproblems with incoming messages Pin
donjubs19-Jul-07 6:34
donjubs19-Jul-07 6:34 
AnswerRe: problems with incoming messages Pin
Judah Gabriel Himango19-Jul-07 7:41
sponsorJudah Gabriel Himango19-Jul-07 7:41 
donjubs wrote:
) the byte array i fill, is sooner or later filled completely. but i don't know how to clear the array and when i have to clear it, or do i even have to clear it? as soon as the array is full, the program throws - of course - an exception ("ArgumentOutOfRangeException").


If you're re-using the array, you'll need to clear it or just re-create it. (To "clear" it, just set all its elements to 0, that's like resetting it, putting it back into it's created state). But the exception you're getting indicates you're trying to write more than 4096 bytes (e.g. data.Length) to the array. From the code you posted, I don't see that happening anywhere, which means there is probably some other code that tries to write beyond the end of the data array. On what piece of code is the exception occurring?

donjubs wrote:
2) sometimes i get the same input more than one time. for example: when i join a channel and save the nicknames to the nicklist, some nicknames appear twice or even more often. what do i have to do that this doesnt happen?


If you want only distinct names in your list, just do a check on the list for the name before adding it:
List<string> nicknames = new List<string>();
...
string newNick = "Johnny Sasaki";
if(!nicknames.Contains(newNick))
{
    nicknames.Add(newNick);
}


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: How could God prove Himself to humanity?
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: problems with incoming messages Pin
donjubs19-Jul-07 7:51
donjubs19-Jul-07 7:51 
GeneralRe: problems with incoming messages Pin
Judah Gabriel Himango19-Jul-07 8:05
sponsorJudah Gabriel Himango19-Jul-07 8:05 
GeneralRe: problems with incoming messages Pin
donjubs19-Jul-07 9:13
donjubs19-Jul-07 9:13 
GeneralRe: problems with incoming messages Pin
Judah Gabriel Himango19-Jul-07 9:46
sponsorJudah Gabriel Himango19-Jul-07 9:46 
GeneralRe: problems with incoming messages Pin
donjubs19-Jul-07 9:51
donjubs19-Jul-07 9:51 
GeneralRe: problems with incoming messages Pin
Judah Gabriel Himango20-Jul-07 7:25
sponsorJudah Gabriel Himango20-Jul-07 7:25 
GeneralRe: problems with incoming messages Pin
donjubs20-Jul-07 12:35
donjubs20-Jul-07 12:35 

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.