FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CPU usage 100% (flowerd 0.7)

 
Post new topic   Reply to topic     Forum Index -> flowerd
View previous topic :: View next topic  
Author Message
yidabu



Joined: 21 Apr 2007
Posts: 87

PostPosted: Sun Apr 20, 2008 6:50 pm    Post subject: CPU usage 100% (flowerd 0.7) Reply with quote

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
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Mon Apr 21, 2008 4:18 am    Post subject: Reply with quote

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
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Mon Apr 21, 2008 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
yidabu



Joined: 21 Apr 2007
Posts: 87

PostPosted: Mon Apr 21, 2008 5:30 am    Post subject: Reply with quote

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
View user's profile Send private message
yidabu



Joined: 21 Apr 2007
Posts: 87

PostPosted: Thu Apr 24, 2008 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> flowerd All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group