• HTML vgui memory leak
    2 replies, posted
Every time a HTML vgui element is created, another awesomium_process.exe appears along with it, is there any way I can prevent this from happening?
Where are you creating this vgui in?
Inside a custom vgui element [lua]local PANEL = {}; function PANEL:Init() self.TabIcon = "icon16/world.png" self.TabTitle = "Browser" self.TabDesc = "blah blah blah" self.Panel = self local Parent = self:GetParent() self.Parent = Parent local ListBox = vgui.Create("DComboBox", self) self.ListBox = ListBox if (!self.Browser) then self.Browser = vgui.Create("HTML", self) end end function PANEL:Navigate(url) if (url) then self.Browser:OpenURL(url) end end function PANEL:SetPositioning() self.ListBox:SetWide(self:GetParent():GetWide() - 24) self.ListBox:SetTall(24) self.ListBox:CenterHorizontal() self.ListBox:CenterVertical() self.ListBox:AlignTop(0) self.ListBox:AlignLeft(0) self.Browser:SetWide(self:GetParent():GetWide() - 24) self.Browser:SetTall(self:GetParent():GetTall() - 128) self.Browser:CenterHorizontal() self.Browser:CenterVertical() self.Browser:AlignTop(24) self.Browser:AlignLeft(0) end vgui.Register("BrowserTab", PANEL, "DPanel") [/lua]
Sorry, you need to Log In to post a reply to this thread.