Click here to Skip to main content
16,006,749 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionBug in ListView.Items.Insert(int,ListViewItem)? Pin
AndrewVos16-Apr-08 2:08
AndrewVos16-Apr-08 2:08 
GeneralRe: Bug in ListView.Items.Insert(int,ListViewItem)? Pin
Rob Smiley18-Apr-08 10:57
Rob Smiley18-Apr-08 10:57 
GeneralRe: Bug in ListView.Items.Insert(int,ListViewItem)? Pin
AndrewVos18-Apr-08 12:00
AndrewVos18-Apr-08 12:00 
GeneralRe: Bug in ListView.Items.Insert(int,ListViewItem)? Pin
Rob Smiley18-Apr-08 12:44
Rob Smiley18-Apr-08 12:44 
AnswerRe: Bug in ListView.Items.Insert(int,ListViewItem)? Pin
Member 421315828-Oct-11 2:40
Member 421315828-Oct-11 2:40 
QuestionHow to draw miter joined lines? Pin
KeesVer16-Apr-08 1:01
KeesVer16-Apr-08 1:01 
GeneralCrystal Reports for Visual Studio 2005 Pin
Aleemulhaq16-Apr-08 0:20
Aleemulhaq16-Apr-08 0:20 
Question.NET variable tracking package Pin
K.L.K15-Apr-08 8:35
K.L.K15-Apr-08 8:35 
Hi,

I have a long-running application that that periodically outputs the values of many internal fields/variables to a log file.

These variables used to all live in one class, but as the application grew and functionality was added, they became spread out across classes.

The hack-ish solution is to have globally accessible references to the instances of the classes in question, with each class having public properties for the variables. I feel that this is ugly and breaks OO abstraction.

Furthermore, this setup doesn't fix the base problem of seeing when/where things go wrong. Once I see an exception I have to filter through lots of logs to find any evidence of inconsistent state.

What I really want is some kind of global statistics tracking package, where I could do something like the following:

Statistics.AddValue<float>("average.requests.time", 0.0);<br />
Statistics["requests.served"]+= 1.5;<br />
<br />
Predicate<float> p = delegate(float val) { return val > 1; };<br />
Statistics.AddConditionalListener<int>("requests.served", p, <br />
      delegate() { Console.WriteLine("why so slow?"); } );</int></float></float>


Basically, a class/package that would store have a name->value mapping, have nice update syntax with operator overloading, and allow you to add listeners for conditions you specify. Oh, and allow you to use a value of any base type, using generics =).

Is there something like this out there? Or, are there classes built into the .NET framework that would let me do this easily (e.g. however conditional breakpoints work?).
GeneralRe: .NET variable tracking package Pin
Ray Cassick15-Apr-08 11:29
Ray Cassick15-Apr-08 11:29 
GeneralRe: .NET variable tracking package Pin
K.L.K15-Apr-08 14:07
K.L.K15-Apr-08 14:07 
GeneralRe: .NET variable tracking package Pin
bwilhite18-Apr-08 2:25
bwilhite18-Apr-08 2:25 
Generalgetting error while creating windows service setup Pin
VenkataRamana.Gali15-Apr-08 2:37
VenkataRamana.Gali15-Apr-08 2:37 
GeneralAbout using DLL files in projects! Pin
maryam.saboor14-Apr-08 23:40
professionalmaryam.saboor14-Apr-08 23:40 
GeneralRe: About using DLL files in projects! Pin
AndrewVos14-Apr-08 23:57
AndrewVos14-Apr-08 23:57 
GeneralRe: About using DLL files in projects! Pin
Christian Graus15-Apr-08 0:06
protectorChristian Graus15-Apr-08 0:06 
GeneralRe: About using DLL files in projects! Pin
maryam.saboor15-Apr-08 0:26
professionalmaryam.saboor15-Apr-08 0:26 
GeneralRe: About using DLL files in projects! Pin
Christian Graus15-Apr-08 0:36
protectorChristian Graus15-Apr-08 0:36 
QuestionDrawing pie with parts excluded. Pin
AndrewVos14-Apr-08 19:56
AndrewVos14-Apr-08 19:56 
GeneralRe: Drawing pie with parts excluded. Pin
AndrewVos14-Apr-08 20:17
AndrewVos14-Apr-08 20:17 
GeneralRe: Drawing pie with parts excluded. Pin
AndrewVos14-Apr-08 23:44
AndrewVos14-Apr-08 23:44 
GeneralRe: Drawing pie with parts excluded. Pin
#realJSOP27-Apr-08 3:34
professional#realJSOP27-Apr-08 3:34 
QuestionGridView or DetailsView results e-mailed Pin
Learning14-Apr-08 14:05
Learning14-Apr-08 14:05 
GeneralRe: GridView or DetailsView results e-mailed Pin
Christian Graus14-Apr-08 19:59
protectorChristian Graus14-Apr-08 19:59 
GeneralRe: GridView or DetailsView results e-mailed Pin
N a v a n e e t h14-Apr-08 20:30
N a v a n e e t h14-Apr-08 20:30 
GeneralRe: GridView or DetailsView results e-mailed Pin
Learning15-Apr-08 4:29
Learning15-Apr-08 4:29 

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.