View previous topic :: View next topic |
Author |
Message |
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Sun Apr 20, 2008 6:50 pm Post subject: CPU usage 100% (flowerd 0.7) |
|
|
press Ctrl + Alt + Delete to view the CPU usage, it's 100%, for example:
Code: |
import htmlayout.htmlayout;
import flowerd.dfl : HLayoutForm;
class MyForm : HLayoutForm
{
this()
{
super();
loadHTML(null, "<html><body><p>hello</p></body></html>");
}
}
void main()
{
htmlayout.capi.loadHTMLayout(); //load the dll
(new MyForm()).run;
}
|
_________________ D yuyan |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Mon Apr 21, 2008 4:18 am Post subject: |
|
|
Edit flowerd/dfl.d, find the run() function and change "Application.run(mForm,&execute);" to "Application.run(mForm);", or use Application.run(cast(Form)new MyForm) ... I will look into it.... |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Mon Apr 21, 2008 4:27 am Post subject: |
|
|
This is because of DFL. By the way, DFL/DWT will soon be deprecated. I will continue to develop only the "Skinned Layout", which will also support normal (i.e. non-skinned windows). I will provide the basic functions need to manage windows (no fancy stuff). This would make the executables much smaller and probably faster. |
|
Back to top |
|
|
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Mon Apr 21, 2008 5:30 am Post subject: |
|
|
bobef wrote: | This is because of DFL. By the way, DFL/DWT will soon be deprecated. I will continue to develop only the "Skinned Layout", which will also support normal (i.e. non-skinned windows). I will provide the basic functions need to manage windows (no fancy stuff). This would make the executables much smaller and probably faster. |
Thanks. sounds good! _________________ D yuyan |
|
Back to top |
|
|
yidabu
Joined: 21 Apr 2007 Posts: 87
|
Posted: Thu Apr 24, 2008 4:34 am Post subject: |
|
|
How about just Extensions to DFL, DFL based executable is smaller, and I like the features of DFL, i.e. tray, keyshort. _________________ D yuyan |
|
Back to top |
|
|
|