bug... in InvalidPathChars

  • Thread starter Thread starter David Krmpotic
  • Start date Start date
D

David Krmpotic

string s = "";

for(int i = 0; i< Path.InvalidPathChars.Length; i++)

{

s += Path.InvalidPathChars + " ";

}

MessageBox.Show(s);





shows only " | < >



but there should be at least two more: ? and *



Can you confirm the bug or is that normal behaviour (how could it possibly
be?)



david
 
These chars are not meant to be displayed in windows using MessageBox.Show.
One of the chars is a null (0x0000) character (and Show drops all chars
behind the null) while others cannot be displayed or displayed correctly.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top