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

C#

 
GeneralRe: Adding new items to TreeView Pin
Mark F.25-Nov-06 11:22
Mark F.25-Nov-06 11:22 
GeneralRe: Adding new items to TreeView Pin
Not Active25-Nov-06 14:11
mentorNot Active25-Nov-06 14:11 
QuestioncrystalReport Pin
aPerfectCircle25-Nov-06 8:18
aPerfectCircle25-Nov-06 8:18 
Questionbubble and quick method Pin
sapnju_fejinja25-Nov-06 7:33
sapnju_fejinja25-Nov-06 7:33 
QuestionRe: bubble and quick method Pin
CPallini25-Nov-06 8:50
mveCPallini25-Nov-06 8:50 
AnswerRe: bubble and quick method Pin
sapnju_fejinja25-Nov-06 9:47
sapnju_fejinja25-Nov-06 9:47 
GeneralRe: bubble and quick method Pin
Rob Graham25-Nov-06 10:38
Rob Graham25-Nov-06 10:38 
GeneralRe: bubble and quick method Pin
Paul Conrad25-Nov-06 11:28
professionalPaul Conrad25-Nov-06 11:28 
GeneralRe: bubble and quick method Pin
CPallini25-Nov-06 10:41
mveCPallini25-Nov-06 10:41 
QuestionPoint Of Sale Project Pin
Waskira25-Nov-06 7:06
Waskira25-Nov-06 7:06 
QuestionOut-of-memory Exception Pin
yonidebest25-Nov-06 5:57
yonidebest25-Nov-06 5:57 
AnswerRe: Out-of-memory Exception Pin
S. Senthil Kumar25-Nov-06 6:32
S. Senthil Kumar25-Nov-06 6:32 
QuestionRe: Out-of-memory Exception Pin
yonidebest25-Nov-06 9:07
yonidebest25-Nov-06 9:07 
AnswerRe: Out-of-memory Exception Pin
Argus225-Nov-06 12:52
Argus225-Nov-06 12:52 
GeneralRe: Out-of-memory Exception Pin
yonidebest26-Nov-06 10:43
yonidebest26-Nov-06 10:43 
AnswerRe: Out-of-memory Exception Pin
S. Senthil Kumar25-Nov-06 18:10
S. Senthil Kumar25-Nov-06 18:10 
GeneralRe: Out-of-memory Exception Pin
yonidebest26-Nov-06 10:43
yonidebest26-Nov-06 10:43 
QuestionRe: Out-of-memory Exception Pin
CPallini25-Nov-06 8:37
mveCPallini25-Nov-06 8:37 
AnswerRe: Out-of-memory Exception Pin
yonidebest25-Nov-06 9:11
yonidebest25-Nov-06 9:11 
AnswerRe: Out-of-memory Exception Pin
Luc Pattyn25-Nov-06 10:08
sitebuilderLuc Pattyn25-Nov-06 10:08 
QuestionRe: Out-of-memory Exception Pin
yonidebest25-Nov-06 12:47
yonidebest25-Nov-06 12:47 
AnswerRe: Out-of-memory Exception Pin
Luc Pattyn25-Nov-06 15:09
sitebuilderLuc Pattyn25-Nov-06 15:09 
Hi Yoni,

1)
to see what goes wrong, look at the intermediate results, so print at least p.text.Lenght,
and if necessary (but this may get very large) p.text itself, or part of it, e.g.
p.text.Substring(0,80)
You may want to create a function that does this in an intelligent way, i.e.
printing length, and full or partial contentdepending on size.

2)
regular expressions use special characters such as \ and | and some more.
to get them literally, you should escape them so to get a | you need a \|
But then the C/C++/C# languages will try to interpret the backslash, so you must
either escape it again (hence \\|) or prefix the entire constant string by a @ sign
(@"...\|...")

3)
I dont think there is a need to use 0x7C when what you want is a vertical bar;
just type | and you will get more readable code.

4)
general advice: if something goes wrong, break it down into smaller pieces, until]
you can easily see where it starts to go wrong. In this particular case:
print intermediate values, reduce the size of the problem (fewer than 20 strings!);
if this does not help, perform some experiments (e.g. on the behaviour of Regex).

Greetings,

:cool:




Luc Pattyn

GeneralRe: Out-of-memory Exception Pin
yonidebest26-Nov-06 10:39
yonidebest26-Nov-06 10:39 
QuestionProtecting "A Assembly"? Pin
Ariston Darmayuda25-Nov-06 5:19
Ariston Darmayuda25-Nov-06 5:19 
AnswerRe: Protecting "A Assembly"? Pin
Paul Conrad25-Nov-06 6:20
professionalPaul Conrad25-Nov-06 6:20 

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.