The cure for object loitering in this case is to null out the reference after popping it from the stack, as shown in the commented-out line of code in Listing 3.
修复这种情况下的对象游离的方法是,当对象从堆栈弹出之后,就消除它的引用,如清单3中注释掉的行所示。
We start out by creating a new ZIP archive object in line one.
首先在第一行中创建新的 ZIP 归档对象。
For each line of data returned by the data source, the while loop will take in the line as an object, and spit out a Zip tag with all the data in the database (see Listing 1).
对于由该数据源返回的每行数据,while循环将会在该行做为一个对象被调用,并且输出一个所有数据都在数据库中的Zip标记(请参阅清单1)。
应用推荐