correct use of the weak reference
If I understand correctly, if I put the weak reference param true in my event listeners I don't need to worry about removing the headphones. Is this true?
I'm not really clear which would cause the listener to be set for garbage collection. I would not have a situation where the listener has been deleted before as I wanted it.
I think that it is advisable to withdraw the headphones well, theoretically Yes - you do not have _have_ to remove them when you use weak references. The listener is never set for GC using strong ref - you make yourself in this case.
I got into the habit of always using weak reference and I have yet to run into a situation where a listener is deleted when I don't want it to be. It's something like - when only weak references to an object exist then this object can be that gc would be - otherwise, it will hang out and consume memory.
Grant Skinner has published a small article on this just now: http://gskinner.com/blog/archives/2006/07/as3_weakly_refe.html
Tags: Adobe Animate
Similar Questions
-
Correct use of the function in the pipeline?
Hello
I have a function in the pipeline, I am using 11 g. the idea is I can pass in the name of a table, and it returns a set of rowcounts for this table
I obviously have something wrong, but what?
-Package
create or replace PACKAGE IS GetMigSamples
-set types for a record and an array of records like this
TYPE sample_record IS RECORD)
PERSON_ID NUMBER,
CF_ID VARCHAR2 (10),
number_of_records NUMBER);
TYPE sample_table IS the TABLE OF THE sample_record;
FUNCTION SP_MIG_SAMPLES (P_TABLE IN VARCHAR)
RETURN sample_table
IN PIPELINE;
END;
-Package body
create or replace PACKAGE GetMigSamples BODY IS
FUNCTION SP_MIG_SAMPLES (P_TABLE IN VARCHAR) sample_table RETURN PIPELINED IS
v_cur sys_refcursor;
v_rec sample_record;
v_migtable VARCHAR (64);
v_stmt_str VARCHAR2 (400);
v_col VARCHAR (64);
BEGIN
v_migtable: = P_TABLE;
-some tables have a different name for the foreign key column
v_col: = box
When v_migtable = "MYTABLE" then "MAIN_ID".
another end 'PERSON_ID ';
-build a sql query for this table and the foreign key column
v_stmt_str: = ' SELECT
MX.' | v_col |' like PERSON_ID,.
COALESCE (MX. Reference, "?") as CF_ID,.
Count (*) as number_of_records
OF ' | P_TABLE |' mx
GROUP BY mx.' | v_col;
-Open the query and loop through it, each line of pipes
Open the v_cur for v_stmt_str;
LOOP
EXTRACTION v_cur
IN v_rec;
EXIT WHEN v_cur % NOTFOUND;
PIPE ROW (v_rec);
END LOOP;
CLOSE V_cur;
RETURN;
End;
END GetMigSamples;
When I use it
Select getmigsamples.sp_mig_samples ('M_MY_TABLE') of double
I get
FW. SYS_PLSQL_228255_29_1()
Which I guess means that I have a reference to an object, rather than the actual values in the lines. I tried to corrrect it for centuries and have now arrived at the point of the tear-my-hair-out. Can anyone help please?
Thank you
When I use it
Select getmigsamples.sp_mig_samples ('M_MY_TABLE') of double
I get
FW. SYS_PLSQL_228255_29_1()
Which I guess means that I have a reference to an object, rather than the actual values in the lines. I tried to corrrect it for centuries and have now arrived at the point of the tear-my-hair-out.
No - this 'thing' you got is a hidden type of SQL Oracle automatically created to match the type of PL/SQL, that you used. SQL can only work with the SQL types defined at the schema level. But for functions PIPELINED Oracle allows you to specify the types of PL/SQL and it will create SQL HIDDEN types to make it work.
A pipeline function should be treated as a table. You must use the SCOREBOARD operator
Select * from table (myFunction);
Try this simple example
-type to match record emp
create or replace type emp_scalar_type as an object
(EMPNO NUMBER 4,
ENAME VARCHAR2 (10),
USE VARCHAR2 (9).
MGR NUMBER 4,
HIREDATE DATE,
NUMBER OF SAL (7, 2)
NUMBER OF COMM (7, 2)
DEPTNO NUMBER (2)
)
/
-records of the emp table
create or replace type emp_table_type to table of emp_scalar_type
/
-function of pipelined
create or replace function get_emp (p_deptno number)
return emp_table_type
PIPELINED
as
TYPE EmpCurTyp IS REF CURSOR RETURN emp % ROWTYPE;
emp_cv EmpCurTyp;
l_rec emp % rowtype;
Start
Open emp_cv SELECT * from emp where deptno = p_deptno;
loop
extract the emp_cv in l_rec;
When the output (emp_cv % notfound);
line of conduct (emp_scalar_type (l_rec.empno, LOWER (l_rec.ename),
l_rec.job, l_rec.mgr, l_rec.hiredate, l_rec.sal, l_rec.comm, l_rec.deptno));
end loop;
return;
end;
/
Select * from table (get_emp (20))
See use of the SCOREBOARD operator?
-
Correct use of the page-break-after
Hello
I don't know that it is a simple question for you.
I have LONG pages of stuff on the web for people to print, and I wish they were able to print in a very specific way-
I want to decide when the page "breaks".
On the web, I saw simple HTML, but also JAVASCRIPT solutions - and I like to keep the solution as simple as possible.
On this forum, there are a few discussions of pagebreak, but no simple and final solution.
In your opinion, does the following work?
< html >
< head >
< style >
{.breakhere}
page-break-after: always ;}
< / style >
< body >
Page 1
Page 1
Page 1
Page 1
Page 1
Page 1
Page 1
Page 1
< div style = "breakhere" > < / div >
Page 2
Page 2
Page 2
Page 2
Page 2
Page 2
Page 2
Page 2
< div style = "breakhere" > < / div >
Page3
Page3
.
.
.
< / body >
< / html >
Have a look here http://css-discuss.incutio.com/wiki/Print_Stylesheets
However, the best solution for printing, is to use a PDF file, what they are for. Create a PDF file containing the same data. You have total control over the printing format in this case. Have a look here http://www.fpdf.org/
-
Correct use of the Type declaration?
Hello
I have a type declaration in a package as follows:
I referred to this guy in my statement of procedure as follows:type get_rec_type IS record ( upl_id table_name.id%TYPE , doc_id table_name.eff_from%TYPE ... );
Is this correct?PROCEDURE bulk_upload_prc ( p_rec OUT get_rec_type ... );
The reason I ask is because I get the following error.
Thank youERROR at line 1: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'BULK_UPLOAD_PRC' ORA-06550: line 1, column 7: PL/SQL: Statement ignored
Ben
Published by: Benton on November 3, 2010 12:01You call the procedure as follows:
EXEC schemName.new_bulk_upload_pkg.bulk_upload_prc;
Yet, it is defined as follows:
PROCEDURE bulk_upload_prc ( p_rec OUT get_fbt_bulk_upload_rec_type , p_blob OUT BLOB , p_srcfile OUT BFILE , p_max_rec OUT NUMBER );
Shouldn't you be calling him more in this sense then?
declare
begin schemName.new_bulk_upload_pkg.bulk_upload_prc(,,,); end; -
Question about the correct use of the WM_CONCAT
Hello
I am trying to accomplish the following:
from this
and ends on thisENAME ---------- ADAMS ALLEN BLAKE ...
Basically, alphabetically sort the characters within each name. I have an intermediate step that seems promisingOLD_NAME NEW_NAME ---------- -------- ADAMS AADMS ALLEN AELLN BLAKE ABEKL ...
Yields aboveselect e.ename oldname, substr(e.ename, iter.pos, 1) newcharpos from emp e, (select rownum pos from emp) iter where iter.pos <= length(e.ename) order by e.ename, substr(e.ename, iter.pos, 1);
the characters are in the right sequence, I thought that all I had to do was to use WM_CONCAT (and replace the comma it inserts with an empty string) and I would like to make. I thought it would do: (replacement of commas left out for clarity)OLDNAME NEWCHARPOS ---------- -------------------- ADAMS A ADAMS A ADAMS D ADAMS M ADAMS S ALLEN A ALLEN E ALLEN L ALLEN L ALLEN N BLAKE A BLAKE B BLAKE E BLAKE K BLAKE L ...
but the sequence of the newcharpos is messed up in the process and, rather than the expected result, I get this:select oldname, wm_concat(newcharpos) newname from ( select e.ename oldname, substr(e.ename, iter.pos, 1) newcharpos from emp e, (select rownum pos from emp) iter where iter.pos <= length(e.ename) order by e.ename, substr(e.ename, iter.pos, 1) ) group by oldname;
My question is, how to structure the last query so that the order of character as calculated in the inner query stays?OLDNAME NEWNAME ---------- -------------------- ADAMS A,S,M,D,A ALLEN A,N,L,L,E BLAKE A,L,K,E,B ...
Thank you for your help,
John.Or
SQL> select oldname, wm_concat(newcharpos) keep (dense_rank last order by null) newname from ( select e.ename oldname, substr(e.ename, iter.pos, 1) newcharpos from emp e, (select rownum pos from emp) iter where iter.pos <= length(e.ename) order by e.ename, substr(e.ename, iter.pos, 1) ) group by oldname / OLDNAME NEWNAME ---------- ------------------------------ ADAMS A,A,D,M,S ALLEN A,E,L,L,N BLAKE A,B,E,K,L CLARK A,C,K,L,R FORD D,F,O,R JAMES A,E,J,M,S JONES E,J,N,O,S KING G,I,K,N MARTIN A,I,M,N,R,T MILLER E,I,L,L,M,R SCOTT C,O,S,T,T SMITH H,I,M,S,T TURNER E,N,R,R,T,U WARD A,D,R,W 14 rows selected.
Or (11 GR 2)
SQL> select ename oldname, column_value newname from emp, xmltable(('string-join(for $i in (' || rtrim(regexp_replace(ename, '(.)', '"\1",'),',') || ') order by $i return $i, "")')) / OLDNAME NEWNAME ---------- ------------------------------ SMITH HIMST ALLEN AELLN WARD ADRW JONES EJNOS MARTIN AIMNRT BLAKE ABEKL CLARK ACKLR SCOTT COSTT KING GIKN TURNER ENRRTU ADAMS AADMS JAMES AEJMS FORD DFOR MILLER EILLMR 14 rows selected.
-
Please help with a correct use of the "snapshot" function
Hello
I have recently updated to Pro - 9 11-Pro.
With the 9-Pro version, I could take a snapshop of a portion of a page in a PDF doc and paste it elsewhere in the same doc (another page), or a different PDF doc.
I just don't seem to be able to do the same thing with 11-Pro. I don't know that there is a way.
All your comments/opinions will be appreciated.
Thank you
pflor
Hmm... I can take the snapshot with Acrobat 9, but stick that this does not work for me, as you describe. I can only paste like a stamp with the help of the: Tools > comment & markup > places the picture on the Clipboard as stamp tool
In Acrobat 11, this tool is available under: comment > Annotations > add stamp [tool] > Place the Image on the Clipboard as stamp tool
-
In general, I always use weak references when adding listeners. However this am I had tripped upward for some time, doing so and want to dig deeper and understand why the GC instantly removed the listener. So, here's the barebones of the class:
public class smoke
{
private var clip: MovieClip;
private var container: DisplayObjectContainer;
public void Smoke($clip:MovieClip,_$container:DisplayObjectContainer,_x:int,_y:int):void
{
Clip = $clip;
container = $container;
clip.x = x;
clip.y = y;
clip.addEventListener (Event.ENTER_FRAME, update, false, 0, true);
}
private void update(e:Event):void
{
clip.Alpha-=. 01;
If (clip.alpha < = 0) {}
container.removeChild (clip);
clip.removeEventListener (Event.ENTER_FRAME, update);
}
}
In the constructor, when I add the listener enter_frame, using a weak reference, as shown, update never gets called... with the help of a strong reference works fine however. So, why the GC instantly removes the listener in this case?
DOH! Nevermind, I thought about my own question as soon as I aksed it... is not always occur? Because the clip has not been added to the display list, the headset has been removed. The manufacturer just need: container.addChild (clip); and then the weak reference works as expected.
-
Use of the Task Manager physical memory is not not to use processes
I have seen this topic discussed it before, but I did not understand what is happening here.
-J' have one windows server 2008 with 8 GB or ram configured, with the limit set to unlimited and booking made 8 GB.
-When you look in the Task Manager, I see the physical memory to 88% and the bar bed to 7.10 GB.
-Adding all process memory usage, it is only about 2 GB.
-In another thread, that I read that it was because he had a deadline, and hot air balloon began.
-J' I monitor the server via SNMP and have alerted all the time that this server joined more than 90% ram usage.
-The Guest server is correct use of the physical memory Task Manager?
-If it is not, and is caused by the ESX host, how can I fix it to properly monitor the comment server.
The question here is how windows works,
You reserve memory and don't have no limits, so there is no balloon showing VMs to appear that they have high memory use when they are not actually in some cases.
Processes that Task Manager displays is not all that is running or being eaten, I know when working with SQL, you have FEAR that can use a ton on memory, but there is no process to show.
Best thing to do is to run RAMMAP a sys internals tool that will show you exactly what is using the memory in windows.
-
Hello
I would like to have comments about the correct way to use snapshots.
Currently, I have a server ESXi 3.5 with 4 virtual machines.
I use snapshots as follows:
-J' still have 1 snapshot taken for each virtual computer
-J' have regularly (before the size of the snapshot becomes too large) remove the snapshot and just after, take a new snapshot for each virtual machine
-I will soon be able to make a backup of my virtual machines, but I don't now
I recently started to monitor the size of my virtual machines, and they become several GB in just a few days.
I wonder if it is efficient to always have a snapshot on each virtual machine.
I'm starting to think maybe this snapshot should be taken just before to make a change on the server (installation of the software or other) to return to the State that we had before the operation, in the case where he's going poorly, then remove the snapshot after we have confirmed the operation went well, but should not exist at all times.
Your comments are welcome! Thank you!
Yann
The snapshots are NOT backup anyway. If you use instant as replacement of backup then
(1) you lose a costly storage space
(2) that you have less reliable
(3) you generate disk load high commit when snapshots
What is the correct use of the snasphots:
(1) you need to install a patch on your virtual machine
(2) take the snapshot
(3) install the patch
(4) monitor behaviour of the system in case of patch broke something for awhile
(5) commit instant if everything is ok, or go back to the snapshot if something bad happened.
---
MCSA, MCTS, VCP, VMware vExpert 2009
-
Question about the PDF reference
Hello
I don't know if this is the right place to discuss the PDF reference but I have not found another.
In fact, I wonder if the positioning of the operators (operators of p.406 5.3.1 text positioning) text is correctly described in the PDF reference. Indeed, for the tx ty TD operator it is described that it has the same effect as: ty-TL tx ty Td. But after a few tries, it seems that it has the same effect as: +ty TL tx ty Td.
Could someone agree with that?
Thanks in advance,
Joe
PS: If there is a forum dedicated to the PDF reference feel free to move this thread
There is a separate forum to discuss the language of PDF, which would include his documentation.
The PDF reference is the name of the documentation for the PDF language published by Adobe. It was published in version 1.0 to 1.7. It has been SUPERSEEDED by the ISO 32000-1, the ISO standard for PDF 1.7 standard. So you should consult this document for all future PDF language needs.
And Yes, the TD is + ty.
-
I searched some tutorials showing how to use SpeedGrade. I'm now comfortable with the UI enough to use after seeing these: http://www.youtube.com/user/AdobeTV/videos?query=speedgrade
I am looking for tutorials that explain how to do a couple of things, first of all, I want to be able to remove color casts. In photoshop to do this you can use a curves layer and the use of the whole white point color chart and click somplace that is supposed to be white. and to the Prime Minister, you could do something similar with the color correcting fast. So basically that I'm looking for a way to target an area within a framework that should generally be grays, in the Anime, the eyes always be shades of gray, is as well as what I would target usually when you work with anime in photoshop first. If anyone knows a tutorial that shows how to do this type of color cast removal color correction in SpeedGrade could you please share a link.
Some of anime the older 80 and 90 on the film, the film has aged and that's where the color cast came. There is also a loss of color information in all areas. For example in the image below. Heaven is supposed to be blue instead of green teal/sea.
Another thing is back in the 80s and 90s many anime worked limited color palletes; something like maybe 16 colors in total, so many colors are used repeatedly. Thus, even with only a limited amount of reference material, I'd be able to get the corrections close. (I have no clips of reference for every single episode, only a handful of scenes from a handful of episodes).
I have a few reference documents showing approximately what should be the color. So, my next question is if anyone knows of any tutorials/guides/videos showing how to use SpeedGrade to color correct a clip so that the colors match the colors used in a reference element
I was also wondering on automatic correction based on an element of reference, although I'm guessing that this isn't always possible.
When I looked at the websiminar: http://seminars.adobeconnect.com/_a227210/p738pxm9zs0/ about 43 minutes into it, a feature is shown that automatically adjust the color with a clip that contains a colorchart.
I was wondering if a tool like that could analyze a start to clip at the end, to create a palette of colors used, and then compare that to the colors used in another clip and correct them. (a feature like this would be probably more useful/precise in anime that it would be long, but who knows.)
Another question related to the user interface:
I had a question, the only place where I see to access the colorwheels is in appearance, my video tab, I'm trying, just manages to adapt to 100% in the monitor.
So I prefer to hide or reduce the different looks (maybe even with a keyboard shortcut) so that I can access the color tools it covers, I've attached a picture of what I'm talking about. I know pressing 'P' cache at the bottom and thought that maybe it already is a way to hide/minimize/reduce the aspect presets to access the tools behind them without narrowing down the size of the preview screen.
It's a hard thing to do. SpeedGrade has an estimator of the matrix which aims to draw a camera shot in reference, but it only works if there is a graph of Macbeth in the framework - and you of course that.
Short of writing a custom plugin, you will have to do it by hand - if there is a true 'gray' in the framework then the pickers for the 3WCC/FCC in first allows you to get the right temperature, and black/white levels can be removed to the limit with their pickers (assuming that something on one of the frames is supposed actually to be black or white). Fix nonlinear cast where the RGB layers are each affected by different curves is a much more complex process, and not automatable in everything I know. However, once the white point Beach and brightness are attached, you can still make some visual adjustments of the balance on a range of colors with secondary correction tools in the 3WCC.
If you use the first and you want more help with these tools, please ask in the Premiere Pro forum.
-
Signal low iPhone in the use of the battery (6 apps with weak signal)
Hello world
I bought a second hand Iphone, it works fine but the battery runs out quickly when I use it (especially on safari). In the use of the battery, I see always weak signal under the apps and always under phone, even though I have 4/5 bar. I have yet found a solution...
https://drive.Google.com/file/d/0B0aW-K-0VfulQW1LVVJCVHc0OW8/view?USP=sharing (here's a screenshot)
Thank you in advance, I hope that your answers will help me.
Hi luca9903,
I see you are a new user here in the Apple Support communities - welcome! I hope we find you often contributing in the future.
If you have short battery life when you are using your iPhone, you can use the information on this page to help extend - Batteries - maximize Performance - Apple
Thank you for using communities of Apple Support.
Sincerely.
-
Hello
I have a group of boxes and I want them to be exclusive one to change the objects visible to my vi when I change their State. So that my clear code, I decided to create a Subvi, which implements these features. My Subvi recives an array of references to objects that I want to change the visibility, an array of references to the boxes (to be change it's values to make them exclusive when one of the boxes change it is State) and an array of the values in the boxes in the last iteration (to be able to detect that we changed to true and false to others).
The problem I have is that when I use a node property to get the actual values in the boxes in the Subvi (to compare to their State previus and detect changes) I will get a type variant, and not a Boolean value. I tried to set the mechanical action of Boolean references used as input in the Subvi as switch, but it doesn't seem to work. I understand this is cause of the Sub - VI does not know the type of Boolean values that will receive and assume the worst case...
Is there a way to do what I want?
I hope I've explained myself... Thanks in advance!
There are several ways to deal with this, but it would be useful to see your code. Send the cluster in a VI, or those of the individual references boxes? It sounds like you are not using a strict reference. The workaround, since you know the type of data is to use the variant data and change the variant to a Boolean value, but this should not be necessary. Once again, some postal code so that we can be more help.
Edit: looks like you are trying to hard-code the Radio buttons. You know LabVIEW has Radio buttons now, no?
-
My PC Windows 7 has acted weird lately because whenever I login to Windows and try to access my NAS drive or laptop, he asks the user name and password, even though I chose to remember it.
The bit about the lie in question is on the NAS drive.
The NAS drive is an Apple TimeCapsule (shock, I know), but it still works as a NAS device perfect. When I try to open it, it asks username and password as usual, but when I type in it properly, it appears saying that it is incorrect.
The way I managed to get that player is now of type a random fake user and try to connect, for example comments. It says that I can not log in as a guest so I then type the correct user name and password after and it works...If for any reason any Windows is lying to me about the use of the wrong username and password. Also, I tried it on another PC and it works fine so it only affects this PC.
Someone at - it solutions?
Hi themichaelkc,
I suggest you open the credentials manager and see if your saved credentials are correct.
In addition, remove the passwords stored in the vault and re - enter the user name and password for automatic logon.
See the following article for more information on the storage of passwords, certificates, and other credentials for automatic logon:.See also:Gokul - Microsoft Support
[If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]
-
Can embed you fonts in a pdf file after that the pdf has been created? I received a PDF of an another designer, made a few minor corrections, and now the printer cannot be used because the original pdf didn't have all fonts embedded. Any ideas?
Use the Acrobat Pro preflight!
To incorporate the missing fonts in Acrobat Preflight profile will incorporate the missing fonts in your PDF file assuming that:
(1) the fonts in question are installed on your system and
(2) the police themselves is not protected against the incorporation (they can at least see and print incorporation.
-Dov
Maybe you are looking for
-
Satellite Pro 4320 - replacement of CDROM
Hello I'm new to the forum here so apologies for any bad "neticate". I recently acquired a Toshiba Satallite Pro 4320 and tries to replace the CDROM drive with a CD - RW DVD combi drive. I took every screw I can find out and he will always come out!
-
Hello I made my personal palette and it works well. Now, I want to export it to send to my friends. I would like to create an installer... How can I do? (I hope to be clear...) Best regards Fabio
-
OfficeJet Pro 8620 appearing does not in devices and printers
Short computer news: Computer 1 - ENVY HP dv7 running 64-bit Windows to 8.1 Computer 2 - Dell XPS 12 running 64-bit Windows 8 I recently bought a new 8620 Pro of Officejet and currently am having problems actually use it. I have already installed the
-
HOW CAN SOLVE PROBLEM OF PRINT QUEUE
SIR.,. I COULD NOT PRINT FROM THE FILMTHE REASON TO PRINT QUEUE... HOW CAN SOLVE THE PROBLEMS
-
WAP321 VLAN and SG300 routing problem
Hello I have a SG300 - 28 p as a main switch. Three WAP321 APs are connected with two SSID. A primary SSID is served on VLAN 1 and a guest THAT SSID is on VLAN 2. The SG300, I have three ports of junction for the WAP321s because they carry VLAN 1 and