Click here to Skip to main content
15,884,176 members
Home / Discussions / C#
   

C#

 
GeneralRe: Acquiring a property value Pin
PIEBALDconsult26-Jul-13 7:55
mvePIEBALDconsult26-Jul-13 7:55 
GeneralRe: Acquiring a property value Pin
Richard MacCutchan26-Jul-13 22:26
mveRichard MacCutchan26-Jul-13 22:26 
AnswerRe: Acquiring a property value Pin
coolcat22731-Jul-13 11:29
coolcat22731-Jul-13 11:29 
QuestionPower management hybernation is causing my application to hang ... Pin
turbosupramk325-Jul-13 2:50
turbosupramk325-Jul-13 2:50 
AnswerRe: Power management hybernation is causing my application to hang ... Pin
turbosupramk326-Jul-13 3:47
turbosupramk326-Jul-13 3:47 
Questionusing System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case Pin
BillWoodruff25-Jul-13 0:55
professionalBillWoodruff25-Jul-13 0:55 
AnswerRe: using System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case Pin
Dave Kreskowiak25-Jul-13 1:15
mveDave Kreskowiak25-Jul-13 1:15 
GeneralRe: using System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case Pin
BillWoodruff25-Jul-13 21:48
professionalBillWoodruff25-Jul-13 21:48 
Dave,

I wonder what happened to you on this one: the general slowness of filling a standard WinForms TextBox control, or NotePad, with a large amount of Text is not relevant here at all.

How, I wonder, did such an inane response get three up-votes ?

The reason I am doing this stuff with showing a lot of text is related to software development; it has nothing to do with production mode, and some final software a user would interact with. I am examining the results of building a very large collection of a complex object, and that means I want to inspect the result in detail at run-time (much easier than setting a break-point in Visual Studio, and drilling down through little windows you have to scroll-in endlessly to reach item 899,233 out of 1 million).

The relevant issue is what I perceived as an inaccurate result using Stopwatch.

Alan's answer below points out the simple (and stupid) mistake I made in syntax.

Using Win 8/64, Visual Studio 2012 v.3, FrameWork 4.5, compiling to "AnyCPU," in Debug mode: using relatively old hardware (6420 CPU at 2.13mhz., 4gb. ram):

fyi: I can fill a TextBox with fifty-megabytes of text in around 33 seconds.

fyi: Using a RichTextBox I can fill it with fifty megabytes of text in under 3 seconds

fyi: converting a StringBuilder containing 50 mb. to a string: itself takes about 2 seconds.

fyi: NotePad ? I use UltraEdit, which can open a 50 mb. text file in under 3 seconds.

But, knowing someone with your skills can have an off-day, as I did; knowing you are imperfect, as I am: well, I feel less lonely Smile | :)

your friend, Bill

~
“This isn't right; this isn't even wrong." Wolfgang Pauli, commenting on a physics paper submitted for a journal

GeneralRe: using System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case Pin
Dave Kreskowiak26-Jul-13 7:00
mveDave Kreskowiak26-Jul-13 7:00 
GeneralRe: using System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case Pin
BillWoodruff30-Jul-13 4:57
professionalBillWoodruff30-Jul-13 4:57 
GeneralRe: using System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case Pin
Dave Kreskowiak30-Jul-13 5:46
mveDave Kreskowiak30-Jul-13 5:46 
AnswerRe: using System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case PinPopular
Alan N25-Jul-13 4:27
Alan N25-Jul-13 4:27 
GeneralRe: using System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case Pin
BillWoodruff25-Jul-13 21:13
professionalBillWoodruff25-Jul-13 21:13 
QuestionParamerterized OleDB Query Pin
gautamn199025-Jul-13 0:21
gautamn199025-Jul-13 0:21 
AnswerRe: Paramerterized OleDB Query Pin
Dave Kreskowiak25-Jul-13 1:17
mveDave Kreskowiak25-Jul-13 1:17 
GeneralRe: Paramerterized OleDB Query Pin
gautamn199025-Jul-13 19:28
gautamn199025-Jul-13 19:28 
GeneralRe: Paramerterized OleDB Query Pin
Dave Kreskowiak26-Jul-13 2:52
mveDave Kreskowiak26-Jul-13 2:52 
GeneralRe: Paramerterized OleDB Query Pin
gautamn199028-Jul-13 19:03
gautamn199028-Jul-13 19:03 
AnswerRe: Paramerterized OleDB Query Pin
PIEBALDconsult25-Jul-13 14:19
mvePIEBALDconsult25-Jul-13 14:19 
GeneralRe: Paramerterized OleDB Query Pin
gautamn199025-Jul-13 19:45
gautamn199025-Jul-13 19:45 
GeneralRe: Paramerterized OleDB Query Pin
PIEBALDconsult26-Jul-13 7:58
mvePIEBALDconsult26-Jul-13 7:58 
QuestionDataGridview ComboBox Filter Pin
Awais Jan24-Jul-13 23:44
Awais Jan24-Jul-13 23:44 
Questionproblem with datagridview in windows application Pin
Arun kumar Gautam24-Jul-13 20:59
Arun kumar Gautam24-Jul-13 20:59 
QuestionRe: problem with datagridview in windows application Pin
Eddy Vluggen25-Jul-13 7:12
professionalEddy Vluggen25-Jul-13 7:12 
AnswerRe: problem with datagridview in windows application Pin
Arun kumar Gautam25-Jul-13 19:32
Arun kumar Gautam25-Jul-13 19:32 

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.