Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 10:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Drawing Problems
PostPosted: March 22nd, 2011, 2:38 pm 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
Hi

I've come across a strange issue with drawn shapes and reloading pages. The shape is set to draw automatically, which happens the first time. If you reload the page, it doesn't draw.

I've recreated the problem in the attached. It works in editor mode but the not in a published version. The original issue I was fighting with was actually only showing up on an older, slower PC, which made me think it was a memory or speed issue.

I just need a workaround for this. I've tried adding delays, switching between two drawing backgrounds, moving to another page then back, but it seems to remember not to show the drawing.

Any suggestions for solutions would be much appreciated.
Cheers
Dan


You do not have the required permissions to view the files attached to this post.

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


For this message dan1 has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Drawing Problems
PostPosted: March 22nd, 2011, 6:23 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Dan,

The easiest way to achieve this is to use a clone and destroy it each time.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Drawing Problems
PostPosted: March 22nd, 2011, 10:12 pm 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
Thanks Mack. I just slept on this after working far too late and also thought of clones. Glad there is an easy solution.

BTW, I know clones don't appear on a page if you reload it, but do they continue to use up memory if you don't destroy them before leaving the page?

Cheers
Dan

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


For this message dan1 has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Drawing Problems
PostPosted: March 23rd, 2011, 4:46 am 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
I tried to answer my own question and have ended up more confused. Reloading the page was increasing the RAM used by about 3-5MB each time. I set it up to destroy all the clones on leaving the page, but the memory used still increases by about the same amount each reload. This is also the case if you move away from the page and return. All the other variables and arrays remain unchanged, so I'm not sure why the RAM used is constantly increasing.

Another thing I am wondering about is how I store images. Each clone contains a number of images which can be cycled through by the user. I have the images in different placeholders, hiding one and showing another in order to change the image. If you clone one of these objects, does Opus copy all the images to the clone or refer to a common resource? Just wondering if there is a better method.

Finally, if you put code into an 'On Hide' trigger on a page, it doesn't execute. I've used 'Pre'Hide' instead to destroy clones, but wonder why the 'On Hide' is possible on a page if it doesn't in fact work.

Too many questions. Not enough answers.
Thanks
Dan

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


For this message dan1 has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Drawing Problems
PostPosted: March 23rd, 2011, 11:02 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Ram / Memory is rather a generic term. You'd need to be more specific about what is increasing or do some reading if your not sure:

http://stackoverflow.com/questions/1984 ... orking-set

From my understanding of it, creating a clone will increase the WS private bytes (the important ones) that the publication is using. Creating a clone with child frames containing images will further increase the WSPB. If you reload the page, the WSPB should be reset, but virtual private bytes will not. I'm led to believe that the latter does not impact on the disk or physical memory BUT...

Taking out the trash, by destroying redundant clones and or before changing pages will keep both WSPB and Virtual PB down.

As for hiding, I always thought it was meant for objects on the page rather than the page.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Drawing Problems
PostPosted: March 23rd, 2011, 12:01 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
Finally, if you put code into an 'On Hide' trigger on a page, it doesn't execute. I've used 'Pre'Hide' instead to destroy clones, but wonder why the 'On Hide' is possible on a page if it doesn't in fact work.
My belief is that you cannot use a Hide action for a Page object the same way you would hide/show a graphical object.

But I wonder...
If you had a Pub that used Chapter properties to 'open in separate window', and subsequently used some of the opusscript commands to 'Close a View' (ie, close the original Page) -- that may represent an effective "hide" of the page (and so the 'on hide' trigger)???

Have you tried Multiframes at all? I would expect however the same 'no redraw' issue.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Drawing Problems
PostPosted: March 23rd, 2011, 1:39 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
just need a workaround for this. I've tried adding delays, switching between two drawing backgrounds, moving to another page then back, but it seems to remember not to show the drawing.
"moving to another page then back" works for me (incl. quick published FULL Type)

I put a Transition effect on the Page also -- to better observe the change.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Drawing Problems
PostPosted: April 13th, 2011, 2:47 am 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
Thanks for the feedback Lar. I got the clones working on this so moved on, but it is strange that the problem didn't show for you. There must be something odd going on here. I think I'll leave it for now.

Regarding the 'onhide'... it wasn't difficult to find a workaround; I just found it odd that this was allowed when it would be ignored. Perhaps not :)

Cheers
Dan

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


For this message dan1 has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 27 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group