ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 19th, 2008, 04:16 AM
gayanb gayanb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 2 gayanb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 56 m 42 sec
Reputation Power: 0
Virtual memory used by IE is increasing when creating and hiding

Hi,

I have used cfwindows on my web page and I wanted to load the URL dynamically for that. But I was unable to do so.
Then I made to create cfwindows when I need a new one. The problem here is when I am creating new windows the virtual memory gets filled up when I was created about 200 cfwindows.
I was tried with refreshing the page when the cfwindow is closed but the virtual memory is still there intil I close the main window ...
My primary question is "Is there a way to create cfwindows on IE without increasing the virtual memory ??"


I have two requests here. If one of those is possible to do then I can come up with an solution.

1. Is there a way to change the URL of cfwindows onshow ?
2. Is there a way to delete the cfwindow objects instead of hide ?? (I have tried getWindowObject and to dispose it. It seems working but the virtual memory issue is still there)

Thank you.

Reply With Quote
  #2  
Old February 19th, 2008, 09:13 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
You can destroy a window by simply calling close() on it. You can try just calling close() on the window that CF creates, based on the ID you specify, or you can use ColdFusion.Window.getWindowObject(name) to get a reference to the actual EXT window object and then do anything you want with it that the EXT API supports. Hopefully that helps. (The CF docs have some more detailed info on the window and the other JS functions that CF exposes for working with EXT).
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Last edited by kiteless : February 19th, 2008 at 09:16 AM.

Reply With Quote
  #3  
Old February 20th, 2008, 11:20 PM
gayanb gayanb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 2 gayanb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 56 m 42 sec
Reputation Power: 0
Thank you very much kiteless.

There is not a method as close() on cfwindow only hide() is there. I have get the windowObject and destroyed it but it seems not working.
Still the vitual memory usage is getting higher.

Reply With Quote
  #4  
Old February 26th, 2008, 11:00 AM
peterswan peterswan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Los Angeles, CA
Posts: 32 peterswan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 24 m 57 sec
Reputation Power: 5
I don't think Firefox has the same virtual memory problem as in IE. This won't help you for IE users, just something to keep in mind. For IE, try:

ColdFusion.Window.getWindowObject(winName).destroy();

Peter

Reply With Quote
  #5  
Old February 26th, 2008, 11:14 AM
peterswan peterswan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Los Angeles, CA
Posts: 32 peterswan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 24 m 57 sec
Reputation Power: 5
Another thing to keep in mind is refreshOnShow=true. I'm not sure if you can do this in the the JavaScript command: ColdFusion.Window.create, but you can use this with <cfwindow>. With this in mind, you might not need to create dynamically named windows. Also, check out this link:

http://blog.dkferguson.com/index.cfm/2008/2/6/alter-window-close-function

Peter

Reply With Quote
  #6  
Old February 26th, 2008, 11:17 AM
peterswan peterswan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Los Angeles, CA
Posts: 32 peterswan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 24 m 57 sec
Reputation Power: 5
or this link:

http://www.thinkinglemur.com/index.cfm/2007/11/25/ColdFusion-8-CFWindow-caching-problem

Reply With Quote
  #7  
Old February 26th, 2008, 05:33 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
I would expect that this bug (the inability to destroy the windows) should be fixed in the next updater.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Virtual memory used by IE is increasing when creating and hiding


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway