Click here to Skip to main content
16,004,828 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 0:11
mvePete O'Hanlon5-Jul-12 0:11 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 0:30
professionalglennPattonWork35-Jul-12 0:30 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 0:32
mvePete O'Hanlon5-Jul-12 0:32 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 0:45
professionalglennPattonWork35-Jul-12 0:45 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 0:54
mvePete O'Hanlon5-Jul-12 0:54 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 1:35
professionalglennPattonWork35-Jul-12 1:35 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 1:53
mvePete O'Hanlon5-Jul-12 1:53 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 2:24
professionalglennPattonWork35-Jul-12 2:24 
right tried that same issue, I did check with the debugger and I can't "see" anything wrong what was old say cure one bug, cause another? I thought maybe some thing was wrong with the way I positioned the code
C#
foreach (SignedDriver driver in drivers)
  {
   Console.WriteLine("Driver name: {0} - Version : [1} - Date {2}",driver.DeviceName, driver.DriverVersion ?? "No version", driver.DriverDate ?? "No date");
   }

I think its trying display the driver.DriverVersion before(?) "No Version" can be copied into it.
if I put
C#
if (driver.DriverVersion == null)
    driver.DriverVersion = "No version";
if (driver.DriverDate == null)
    driver.DriverDate = "No Date";

I'm starting to wonder if selling the Big Issue is an option!
[EDIT]
By commenting out the Console.WriteLine() (& removing the use of the program!)
and adding the following
C#
a++;
Console.ReadKey();
Console.WriteLine(a.ToString());

It seems to loop up to 85 produces and then shows the message for correctly finished
Console.WriteLine("Finished processing");

from creeping around the debug screen I can tell its the 85 (85th entry that causes the problem, 0 to 84) could it be due to end of the table not being done properly?
But from creeping around the debug screen I can see the driver I want at location 20 called something different in the
System.Management.ManagementObject manageObject
gives the
KernelDriver,FTDIBUS,USB Serial Converter Driver

Which I thought was the driver the name it gives is:
C#
" USB Serial Converter"
the DriverVersion gives 2.8.24.0

I'm now fully confused!

modified 5-Jul-12 10:11am.

GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 4:46
professionalglennPattonWork35-Jul-12 4:46 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 5:33
mvePete O'Hanlon5-Jul-12 5:33 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 5:41
professionalglennPattonWork35-Jul-12 5:41 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 5:49
mvePete O'Hanlon5-Jul-12 5:49 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork35-Jul-12 5:56
professionalglennPattonWork35-Jul-12 5:56 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon5-Jul-12 6:46
mvePete O'Hanlon5-Jul-12 6:46 
Questionhow to bind datasource to treeview control Pin
mahendraprabu.m4-Jul-12 4:48
mahendraprabu.m4-Jul-12 4:48 
QuestionRe: how to bind datasource to treeview control Pin
Richard MacCutchan4-Jul-12 4:58
mveRichard MacCutchan4-Jul-12 4:58 
QuestionRe: how to bind datasource to treeview control Pin
Pete O'Hanlon4-Jul-12 6:45
mvePete O'Hanlon4-Jul-12 6:45 
Generali m getting an error while using array, please help me Pin
somasekhara7774-Jul-12 1:56
somasekhara7774-Jul-12 1:56 
SuggestionRe: i m getting an error while using array, please help me Pin
Eddy Vluggen4-Jul-12 2:05
professionalEddy Vluggen4-Jul-12 2:05 
AnswerRe: i m getting an error while using array, please help me Pin
markovl4-Jul-12 2:16
markovl4-Jul-12 2:16 
AnswerRe: i m getting an error while using array, please help me Pin
Pete O'Hanlon4-Jul-12 2:16
mvePete O'Hanlon4-Jul-12 2:16 
GeneralRe: i m getting an error while using array, please help me Pin
markovl4-Jul-12 2:21
markovl4-Jul-12 2:21 
GeneralRe: i m getting an error while using array, please help me Pin
Pete O'Hanlon4-Jul-12 2:32
mvePete O'Hanlon4-Jul-12 2:32 
AnswerRe: i m getting an error while using array, please help me Pin
Luc Pattyn4-Jul-12 11:36
sitebuilderLuc Pattyn4-Jul-12 11:36 
GeneralProblem with Writing FileStream Pin
Software20074-Jul-12 0:01
Software20074-Jul-12 0:01 

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.