[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: [Error] org.eclipse.swt.SWTError: No more handles

Shawn,

Comments below.

Shawn Spiars wrote:
Ed,

Yes, I think it may have been a human error, rather than a machine generated error. It was a couple of years ago so I don't remember
the details.


Sometime I would be happy to talk to you about why I dislike Model Driven Architecture
I can imagine the reasons (I've heard so many over the years) but I'm highly unlikely to agree. :-P
and why I believe that models and machine generated code (EMF) cannot create user-friendly, intuitive, or easy to maintain user interfaces.
I totally disagree. If you can write it by hand, you can machine generate it. It's all about automating patterns and best practices. I think many developers just have a pathological need to do menial work in order to keep their sense of control intact. Those were the people who figured assembler was the only way that give them the control they needed. Let's see how you would write code that notifies as things are changed, including changes being made to a list. I'll bet your intuition will change once you've figured out how to do it...
User interface development is an art, not a science.
But writing getters and setters that match, implementing interfaces and implementations that correspond, supporting a factory pattern for creating them, and so on, is all menial work. While some may be satisfied doing that over and over, others will rise above it in more ahead more quickly.
It's so much more than just a bunch of model objects stuffed in a tree
or table with actions attached.
Indeed, but far too much time is spent on menial things rather than the higher level tasks. If you can draw a box X with nested box y of type String and this implies an interface X with a getY/setY as well as an implementation class for it, with a y field to store the value, and a factory method to create an X, all that crap is not art, it's menial. I used to be on your side of the fence. Drawing boxes with labels used to seem incredibly stupid to me, but I realize now that the only thing stupider is to do ten times as much work to arrive at the same implied design as was expressed by the stupid picture.

I'll be at EclipseCon, you're welcome to try to argue your point. Probably the Modeling BoF won't be the most receptive audience though. Given that you can model any Java interface with Ecore, including generics, it will be hard to make the case that there is something you can't do. But it will be interesting to see if you have a new argument I haven't heard before. I'm always excited to hear a new reason with actual substance. :-P

Shawn


Ed Merks wrote:
Shawn,

EMF uses registries for the image management. Was it a programming error on your part or is there something being overlooked in EMF?


Shawn Spiars wrote:
Michael,

You can use sleak to track the creation and disposing of SWT resources.
It helped me find an image that was being created over and over in some
EMF factory or adapter whatchamacallit.

http://www.eclipse.org/swt/tools.php

Shawn

Ed Merks wrote:
Michael,

Gosh, I'm not sure how best to track these things. There is indeed a system wide limit as well as a per process limit, if I remember previous postings correctly. Hopefully someone will have details, or googling will turn them up


Michael Heiß wrote:
Hi,

For images i use the ImageRegistry so i think this cant be the source.
How can i detect widgets that i do not dispose properly?


When i look in the task manager i see the following result:
memory: 46.200 K Handles 869
UserObjects: 1150
GDI-Objects: 1120

What is the limit on a computer running windows xp?

Best Regards
Michael