16,004,452 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by creizlein (Top 32 by date)
creizlein
24-May-18 0:02am
View
thanks for the tip! i will check it out
I do still to find a place to store the objects anyways, so the approach of using an arraylist to store the objects and cross-reference them with the x/y cell is about the same as databinding
creizlein
7-May-18 18:43pm
View
I have updated the question with a lit bit more of context, hoping it makes more sense now.
creizlein
7-May-18 18:43pm
View
I have updated the question with a lit bit more of context, hoping it makes more sense now.
creizlein
7-May-18 18:43pm
View
I have updated the question with a lit bit more of context, hoping it makes more sense now.
creizlein
7-May-18 18:42pm
View
Thanks everyone for their inputs. I have been reading about statistics but I am still not certain of what is the Math approach i should use.
To give this a little bit more sense and context, I am trying to summarize a datalog from a car, each "frame" or "entry" comes with a RPM value , which of course varies from 0 to 8000, i get thousands of those records and I need to represent them in a rpm table and the amount of hits each "fixed" index has received.
In a practical example, lets assume we got the following values to process
{10,50,90,50,10,400,450,300,550,900,950,1100,1200,1000,900}
rpm | hits
-----|---------
100 | 5 hits
500 | 4 hits
1000 | 6 hits
In this example I have kind of grouped similar numbers for the sake of simplicity, I do know how to calculate the hits, and to find out to which "index" each value should go, but what i need to find out first is what are the best indexes for the table.
I have created those 3 indexes (100,500,1000) fixed, but I don't know if those are the best indexes to split my numbers, it might be 500 or 400 or 474, who knows.
That is the situation i am debating on how to be done, how do you find the best indexes, which can even vary, they could be just 3 or could be 10 or N , the user will have the input to "subdivide" the indexes in the amount they wish.
Hope it is making a little bit more of sense now.
creizlein
4-May-18 20:39pm
View
Thanks, that seems to be good information !
creizlein
24-Apr-14 17:42pm
View
nope, clearly it wasnt me, i was not able to vote till now i confirmed my addy and gave it 5... odd, maybe someone else not giving much credit :/
creizlein
24-Apr-14 17:02pm
View
there we go, that's more like what i was looking for, that is a good starting point Sergey, thanks once again, i guess i was a bit lazy and didn't googled properly.
I still think that there has to be some other functions that return more global data, total bytes written/read per partition or per volume or whatsoever instead of having to subscribe to the whole volume files and monitor each change individually, but well.
Regards
creizlein
24-Apr-14 16:23pm
View
you are right, i know that its a dirty road that is not supposed to be taken, using the managed libraries is much better, but i need to avoid them for some other specific reasons, that's the reason i asked for the api functions, and yes, those will be invoked from VB.net, that's why i added the tag, but maybe i should remove it. i apologize if inappropriate.
creizlein
24-Apr-14 16:10pm
View
That is using dotNet code, that is pretty much the same as using the performance counters i mentioned before, the idea is to get that information using native API calls not a managed class.
creizlein
24-Apr-14 15:59pm
View
Hello Sergey,
First off, thank you very much for your reply, it did give me some good information, but maybe i expressed bad myself, I am not looking into ways of writing and reading files to the disks but instead to get the amounts of bytes that are being read/written to them, pretty much like a disk monitor usage.
creizlein
9-Feb-12 17:54pm
View
I'm reading events in realtime mode, from the Kernel Logger
So far i was able to figure out the problem, for some reason the problem does not belongs to the structures itself, but on the Event/Buffer Callbacks.
According to my tests, in Vista x86 and Win7 x86 the callbacks need to be declared with a parameter by reference lets say void EventProcess(ref event_record e);
But in Win7 x64 which is my development machine the code will fail and it expect the parameter to be just a input value, and not by reference, which makes more sense to me, and i have though of changing it.
But it still making random crash when more memory from the program is in use, looks like the GC is causing some troubles as well, but everything runs fine on x64 so its really driving me crazy ;(
creizlein
9-Feb-12 8:47am
View
Sure, the structures in question are EVENT_TRACE, EVENT_TRACE_HEADER, ETW_BUFFER_CONTEXT, TRACE_LOGFILE_HEADER and EVENT_TRACE_LOGFILE. its all regarding native ETW.
creizlein
8-Feb-12 22:05pm
View
Yeah, im pretty much aware of that, thanks for the reminder anyway, but the strctures im handling do declare like 50 (counting nested structures) integers/longs and its turning complicate to understand which should be 4bytes and which should be 8, thats is why im looking into a way to read the memory...
creizlein
26-Jan-12 0:11am
View
Thank you very much for your reply, i do need to perform arithmetic operations on the read values for sure, as i need to evaluate them before actually use/display those.
To make an example, the values I'm reading come from an call to psapi.dll:GetPerformanceInfo(), and it returns a structure, i use this to get some system counters, but I'm not 100% what you mean by "list all places...".
I read those values and print them on WinForm App, i need those to be integers values as i have to apply some math to them before actually get displayed.
Please let me know if that is the kind of information you need.
As i understand, using ToInt64 would imply a conversion, and that may be the overhead for sure, but then what i would need to use to avoid such conversion if Long datatypes always use 8-byte?
Regards,
creizlein
15-Jan-12 5:42am
View
I apologize for that mistake, i was talking about WinForms, but i will improve the question, thanks for the tip..
creizlein
5-Dec-11 6:25am
View
You are correct, i had tested with that code as well, and still the same issue, that results in 6, and i had tested it without success, all trough with 8 i can at least set the needbytes as i have explained. (i believe this has to deal with the 64/32bits difference)
creizlein
23-Jun-11 2:48am
View
You are right, its not that the router cant handle the connections, is just that i feel its not right to implement it that way, the monitor is going to run 24/7 and creating 3 connections every second to a host which is always the same seems bad, i assume that somehow it add some overheat, so i cant to do it with a persistent one.
Thanks for your link do, i will give it a try and convert it to VB.net
creizlein
22-Jun-11 19:27pm
View
Thank you very, very much for your response, it really helped to figure out a lot of issues, i was expecting that implementing interfaces was the key of this, unfortunately, I have never used them before so I'm not 100% how they work (specially, where they are stored)... how do i send the interfaces to the developers and how does i make sure that the assemly I'm loading does implement the interface, but that would be a matter of some research, don't worry.
I guess i have enough to start playing around for now, thanks for your time once again.
creizlein
10-May-11 19:09pm
View
Thanks, that sounds like a fair explanation, i just want to make sure that there is nothing from on the code or some other kinda of disposing tip that i wasn't implementing correctly.
creizlein
28-Mar-11 21:04pm
View
Thanks for your reply, but i already did that, if you check the last comment i added to OriginalGriff response, i created a single globally declared pen and used it, but the same problem still throws.
creizlein
28-Mar-11 17:31pm
View
I updated the code and did what you suggested, i basically created global declared pens that never get disposed and i did the same for the bitmap, but the problem still persist, after a while of running the code the same error throws up
creizlein
28-Mar-11 15:59pm
View
i don't know... hehe, good question, but it made no difference so far..
creizlein
28-Mar-11 15:26pm
View
I didn't tried, but just thinking it does not make sense, since the code does work perfect for a few minutes, regardless, i will try it out right away.
creizlein
26-Feb-11 6:29am
View
Guess you made too many assumptions too fast, but its up to you, they are all wrong, except for 2.2
There is no original code, just the struct definition documented in msdn.
Questioning why or what for i need a piece of code is not part of the help process.
creizlein
10-Feb-11 0:45am
View
Private LVManualGen As Gizmox.WebGUI.Forms.ListView
I guess we are talking about custom ListView control in that context :(
creizlein
10-Feb-11 0:43am
View
I guess that the ASP Listview Control behaves totally different, i didn't test your code but i assume it works, but it does not in WinForms... i was asking my question to WinForm ListView
creizlein
28-Jan-11 14:50pm
View
Thats correct, there is no doubt about that, but as i mentioned, that means you are just "ignoring" the performance issue, but its still there...
Your car can run without problems as prolly as fast as usual with the truck loaded of bricks, if it has a good engine, but that doesn't mean you are doing it right ;)
creizlein
28-Jan-11 14:07pm
View
Sorry to say this way, but how does the computer slowness apply into this? performance and memory allocation exist no matter you have a 50 cores CPU with 50gb ram or just a pentium with 2gb...
if you don't notice the performance or you don't care if a program uses more or less memory because you have "good enough" then thats another story
creizlein
24-Jan-11 3:01am
View
i saw that article, but does not explain how to do it, and it uses a totally different aproach, plus a lot of not needed features, i want to keep listview as lightweight as possible, i just need tooltips on the headers.
creizlein
18-Jan-11 11:35am
View
By Service Property dialog i mean the default dialog you get when you double click a service from the services.msc console, where you can view/change the properties of the service.
creizlein
31-Dec-10 9:07am
View
John, thanks for your reply, i wasn't actually looking for a program to change the icons since the idea is do it "by hand", but besides, i will give that program a try and see if i can monitor the registry with regmon and find out what it does modify and where store the info.
Good thing that it was wrote on .NET and is GPL.
i will share the results as soon as i got then, and this is a good point for start, Regards! ;)
Show More