|
Hello Robert,
You are 100% write!
Changed it!
I think its only the "SharedSection" which is a system limit.
Thank you for the correction!
All the best,
Martin
|
|
|
|
|
|
Hello Dave,
Dave Kreskowiak wrote: You reall have to ask yourself, Why is the limit of window handles per process 10,000?[^]
The Short answere is:
Because the project needs it!
I know that it's "a bad designed GUI" which commes to everybodys mind by reading my post.
But I think the application I'm working on is a little bit special.
It's is a GUI which does mainly control Process Variables (PV's) of an industrial machine.
It's about 20000 PV's (Input and Output) which have to be arranged.
Apart from that it has to do some graphical output, charts, ...
And the bad thing is, that the pages (UserControl with TabPages) allways have to stay in memory, because of fast reaction time at page change.
Good thing is, that the application runs nearly alon on an Industrial PC (XP embedded).
So I don't need to share the 32700 maximum of window manager objects.
Thanks for the link!
It provided some more information about that topic.
I'm allways open for suggestions regarding speeding up my application.
A big problem is also the time the system needs for the first painting of a Page.
Maybe you have some information about that.
Thanks again!
All the best,
Martin
|
|
|
|
|
Martin# wrote: Because the project needs it!
No, it doesn't.
Martin# wrote: I know that it's "a bad designed GUI"
Yeah, it is. And this doesn't excuse it.
Martin# wrote: It's is a GUI which does mainly control Process Variables (PV's) of an industrial machine.
It's about 20000 PV's (Input and Output) which have to be arranged.
There are other ways of doing it beside trying to render 20,000 seperate windows. You can't come up with 20 applications that, COMBINED, use 20,000 handles.
Martin# wrote: Apart from that it has to do some graphical output, charts, ...
So what?? A single cached bitmap that you do your drawing on, then that gets repainted to the screen.
Martin# wrote: And the bad thing is, that the pages (UserControl with TabPages) allways have to stay in memory, because of fast reaction time at page change.
So you're telling me that you're storing your apps data in all the controls?? That's a REALLY bad idea and will do nothing other than cause you performance problems. The GUI (and all the controls that make it up) are there to show a visual representation of your apps internal data model. They do a terrible job of actually BEING the data model.
|
|
|
|
|
Dave Kreskowiak wrote: Martin# wrote:
Because the project needs it!
No, it doesn't.
Yes, it does
Dave Kreskowiak wrote: Martin# wrote:
I know that it's "a bad designed GUI"
Yeah, it is. And this doesn't excuse it.
Dave Kreskowiak wrote: Martin# wrote:
Apart from that it has to do some graphical output, charts, ...
So what?? A single cached bitmap that you do your drawing on, then that gets repainted to the screen.
So nothing! Just wanted to say that apart from >6000 output and input boxes and labels, there are other controls handling some tasks. In fact we are using ZedGraph Control (about 20-30).
Dave Kreskowiak wrote: Martin# wrote:
And the bad thing is, that the pages (UserControl with TabPages) allways have to stay in memory, because of fast reaction time at page change.
So you're telling me that you're storing your apps data in all the controls??
No, not even when I reread my sentence I would come to that idea!
I have the feeling you have are lacking of sleep!
We just hold the pages in memory, couse the instanciating of the page during runtime (page change) would take too much time.
All the best,
Martin
|
|
|
|
|
Martin# wrote: I have the feeling you have are lacking of sleep!
Guy, you have no idea how true this is.
I used to work for a major automaker, and I've seen and supported some huge plant floor control systems that blew my mind in their complexity. But in no case, have I ever seen anything approaching a couple thousand handles, let alone 10's of thousands.
There is no reason to have a page full of label controls to show data when your code can be rewritten to paint all the data itself on a single page.
|
|
|
|
|
Hello Dave,
Dave Kreskowiak wrote: Guy, you have no idea how true this is.
I'm happy, that you keeped your humor.
Dave Kreskowiak wrote: I used to work for a major automaker, and I've seen and supported some huge plant floor control systems that blew my mind in their complexity.
And thats the point:
You are talking of an application for one task (also if it's a very hughe task).
My project needs to fit with all machines our company produces (about 500 per year).
They are not all different of course but they differe in some points, sometimes more sometimes less.
That means we need a high dynamic GUI, which has to be handled from about 15 people from all over the world.
Dave Kreskowiak wrote: There is no reason to have a page full of label controls to show data when your code can be rewritten to paint all the data itself on a single page.
This is simply not possible for our project!
As the controls provide some userdefined Binding mechanism (sometimes a control is binded to 5 - 10) different PV's, which tells the control for example if an option is set or not.
An other reason is that there is a feature where a user of the GUI is able to build his own page by "grapping" controls (plus all bindings) from existing pages, and insert it in his own page.
All the best,
Martin
|
|
|
|
|
All I can do is smile. Have fun with it!
|
|
|
|
|
Hi Martin!
Great, fine you got it to work.
You could make an article out of this, so that the information can be found more easily. I guess it could be useful for many developers...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hello mav,
Thanks for youre nice words!
mav.northwind wrote: You could make an article out of this, so that the information can be found more easily. I guess it could be useful for many developers...
Good idea!
Hmm, maybe when I do some more research.
All the best,
Martin
|
|
|
|
|
Hi,
I have 5 rows in my datagridview1. but how to remove any particular row?
when I use => "dataGridview1.Rows.RemoveAt(4)" then error comes "Uncommited new row cannot be deleted".
Thank you in advance
-- modified at 3:22 Wednesday 19th September, 2007
|
|
|
|
|
hello dear,
try it
string dgvstr="";
SqlDataAdapter da = new SqlDataAdapter("select (enter all columan_name in table) from table_name", con);
dgvstr = da.SelectCommand.CommandText.Replace(",enter remove columan_name", "");
DataSet ds = new DataSet();
da.Fill(ds, "table_name");
datagridview.DataSource = ds.Tables[0];
datagridview.Columns[enter remove column_index(ex-0)].Visible = false;
datagridview.Rows[0].Selected = true;
|
|
|
|
|
datagridview1.currentrow.cell(0).value
this will work and give the connection
|
|
|
|
|
Hi
I've to transmit live video 4m Server to multiClients and I m working in C# and using UDP. Now plz tell me what steps I should follow 4 transmission of live video?
How would I stream the video.I m not getting help in this matter from net so plz help me out.
Shanzay
|
|
|
|
|
How we will create usercontrol for tablelayoutpanel in c#windows application?
for other controls like button,label i creatd but i am not able to create for container controls like tabcontrol,tablelayoutpanel.i want usercontrol not customcontrol
|
|
|
|
|
Hey
I am not sure I fully understand you question here but I will answer what I think you mean.
All you do is drag the control (eg tab contronl) onto a windows form then place you components onto with the relevant tab selected.
Hope this helps
Dan
|
|
|
|
|
Thanks for ur Reply
can u make usercontrol using tablelayoytpanel?
and how do we make row,columns in table lay out
|
|
|
|
|
Hey
It sounds like a typical grid control might offer what you are looking for?
If not explain exactly what it is you need and I will have a look around for you. Remember Google is your friend.
Dan
|
|
|
|
|
hi friend
user control shall be use by single appllication and custom control is used by multiplication application
|
|
|
|
|
Uh, that's nowhere near correct.
|
|
|
|
|
Inheriting from UserControl is normally used to build "compsite controls" where you use a few controls, like you would use on a form, to build a custom control that encompasses those controls with a related purpose. For instance, creating a custom IPv4 Address Entry control using 4 seperate TextBox controls.
Inheriting from Control allows you to build a completely custom control from the ground up. You supply everything from properties, to data management, to all the rendering code.
There's a thrid option. Inheriting from an existing control, like a Button or TableLayoutPanel. This gives you the ability to create your own customized version of that control where you add to, hide, or replace some the functionality of that existing control.
|
|
|
|
|
When i started using the crystal reprot i had a all time problem of having a dynamic dataconnection to the crystal reprot.
i was facing problem with crystal reprot when i run that report on to the other machine and the database source is not the same as the machine where the reprots where created.
i Am using Vs 2005 and Crystall Report 9 And SQL Server.Please Give Sample Code in C#
|
|
|
|
|
How to get the details from the app.config file.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
What details... There are several methods for separate parts of the app.config...
Create a reference to System.Configuration and see the System.ConfigurationManager
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
I am going to hold the port number in a tag which i am going to create.
I can have my own tag in it know.
Best Regards,
M. J. Jaya Chitra
|
|
|
|