What's wrong with my code? why ins the end x is not 0 and y is not 400000 ?
public class ThreadTest extends Thread {
static int x = 0;
static long y = 0;
@Override
public void run() {
changeValues();
private void changeValues() {
for(int i=0; i<100000; i++) {
increaseX();
increaseY();
decreaseX();
private synchronized void increaseX() {
x += 1;
private synchronized void increaseY() {
y += 2;
private synchronized void decreaseX() {
x -= 1;
public synchronized int getX() {
return x;
public synchronized long getY() {
return y;
* @param args
public static void main(String[] args) {
ThreadTest t1 = new ThreadTest();
ThreadTest t2 = new ThreadTest();
t1.start();
t2.start();
try {
t1.join();
t2.join();
catch (Exception e) {
System.out.println("Error occured");
System.out.println("x="+t1.getX()+", y="+t1.getY());
System.out.println("x="+t2.getX()+", y="+t2.getY());
}
...forgot about I was actually trying to synchronize different objects ....
Concurrency makes you feel confused and rookie :(:) {noformat}"...no one can write correct programs in a language where 'a=a+1' is not deterministic."{noformat} +// [The Evolution of Lua (Section 5.4)|http://www.tecgraf.puc-rio.br/~lhf/ftp/doc/hopl.pdf|source]+
class Unbelievable implements Runnable {
private volatile int data;
public void increase() {
synchronized (new Object()) {
int tmp = ++data;
if(tmp != data) {System.out.println("unbelievable! " + tmp);}
public void run() { while (true) { increase(); } }
public static void main(String[] args) {
final Unbelievable unbelievable = new Unbelievable();
new Thread(unbelievable).start();
new Thread(unbelievable).start();
}Edited by: gnat on Jan 15, 2010 1:00 PM
Similar Messages
-
I can't figure out what's wrong with this code
First i want this program to allow me to enter a number with the EasyReader class and depending on the number entered it will show that specific line of this peom:
One two buckle your shoe
Three four shut the door
Five six pick up sticks
Seven eight lay them straight
Nine ten this is the end.
The error message i got was an illegal start of expression. I can't figure out why it is giving me this error because i have if (n = 1) || (n = 2) statements. My code is:
public class PoemSeventeen
public static void main(String[] args)
EasyReader console = new EasyReader();
System.out.println("Enter a number for the poem (0 to quit): ");
int n = console.readInt();
if (n = 1) || (n = 2)
System.out.println("One, two, buckle your shoe");
else if (n = 3) || (n = 4)
System.out.println("Three, four, shut the door");
else if (n = 5) || (n = 6)
System.out.println("Five, six, pick up sticks");
else if (n = 7) || (n = 8)
System.out.println("Seven, eight, lay them straight");
else if (n = 9) || (n = 10)
System.out.println("Nine, ten, this is the end");
else if (n = 0)
System.out.println("You may exit now");
else
System.out.println("Put in a number between 0 and 10");
I messed around with a few other thing because i had some weird errors before but now i have narrowed it down to just this 1 error.
The EasyReader class code:
// package com.skylit.io;
import java.io.*;
* @author Gary Litvin
* @version 1.2, 5/30/02
* Written as part of
* <i>Java Methods: An Introduction to Object-Oriented Programming</i>
* (Skylight Publishing 2001, ISBN 0-9654853-7-4)
* and
* <i>Java Methods AB: Data Structures</i>
* (Skylight Publishing 2003, ISBN 0-9654853-1-5)
* EasyReader provides simple methods for reading the console and
* for opening and reading text files. All exceptions are handled
* inside the class and are hidden from the user.
* <xmp>
* Example:
* =======
* EasyReader console = new EasyReader();
* System.out.print("Enter input file name: ");
* String fileName = console.readLine();
* EasyReader inFile = new EasyReader(fileName);
* if (inFile.bad())
* System.err.println("Can't open " + fileName);
* System.exit(1);
* String firstLine = inFile.readLine();
* if (!inFile.eof()) // or: if (firstLine != null)
* System.out.println("The first line is : " + firstLine);
* System.out.print("Enter the maximum number of integers to read: ");
* int maxCount = console.readInt();
* int k, count = 0;
* while (count < maxCount && !inFile.eof())
* k = inFile.readInt();
* if (!inFile.eof())
* // process or store this number
* count++;
* inFile.close(); // optional
* System.out.println(count + " numbers read");
* </xmp>
public class EasyReader
protected String myFileName;
protected BufferedReader myInFile;
protected int myErrorFlags = 0;
protected static final int OPENERROR = 0x0001;
protected static final int CLOSEERROR = 0x0002;
protected static final int READERROR = 0x0004;
protected static final int EOF = 0x0100;
* Constructor. Prepares console (System.in) for reading
public EasyReader()
myFileName = null;
myErrorFlags = 0;
myInFile = new BufferedReader(
new InputStreamReader(System.in), 128);
* Constructor. opens a file for reading
* @param fileName the name or pathname of the file
public EasyReader(String fileName)
myFileName = fileName;
myErrorFlags = 0;
try
myInFile = new BufferedReader(new FileReader(fileName), 1024);
catch (FileNotFoundException e)
myErrorFlags |= OPENERROR;
myFileName = null;
* Closes the file
public void close()
if (myFileName == null)
return;
try
myInFile.close();
catch (IOException e)
System.err.println("Error closing " + myFileName + "\n");
myErrorFlags |= CLOSEERROR;
* Checks the status of the file
* @return true if en error occurred opening or reading the file,
* false otherwise
public boolean bad()
return myErrorFlags != 0;
* Checks the EOF status of the file
* @return true if EOF was encountered in the previous read
* operation, false otherwise
public boolean eof()
return (myErrorFlags & EOF) != 0;
private boolean ready() throws IOException
return myFileName == null || myInFile.ready();
* Reads the next character from a file (any character including
* a space or a newline character).
* @return character read or <code>null</code> character
* (Unicode 0) if trying to read beyond the EOF
public char readChar()
char ch = '\u0000';
try
if (ready())
ch = (char)myInFile.read();
catch (IOException e)
if (myFileName != null)
System.err.println("Error reading " + myFileName + "\n");
myErrorFlags |= READERROR;
if (ch == '\u0000')
myErrorFlags |= EOF;
return ch;
* Reads from the current position in the file up to and including
* the next newline character. The newline character is thrown away
* @return the read string (excluding the newline character) or
* null if trying to read beyond the EOF
public String readLine()
String s = null;
try
s = myInFile.readLine();
catch (IOException e)
if (myFileName != null)
System.err.println("Error reading " + myFileName + "\n");
myErrorFlags |= READERROR;
if (s == null)
myErrorFlags |= EOF;
return s;
* Skips whitespace and reads the next word (a string of consecutive
* non-whitespace characters (up to but excluding the next space,
* newline, etc.)
* @return the read string or null if trying to read beyond the EOF
public String readWord()
StringBuffer buffer = new StringBuffer(128);
char ch = ' ';
int count = 0;
String s = null;
try
while (ready() && Character.isWhitespace(ch))
ch = (char)myInFile.read();
while (ready() && !Character.isWhitespace(ch))
count++;
buffer.append(ch);
myInFile.mark(1);
ch = (char)myInFile.read();
if (count > 0)
myInFile.reset();
s = buffer.toString();
else
myErrorFlags |= EOF;
catch (IOException e)
if (myFileName != null)
System.err.println("Error reading " + myFileName + "\n");
myErrorFlags |= READERROR;
return s;
* Reads the next integer (without validating its format)
* @return the integer read or 0 if trying to read beyond the EOF
public int readInt()
String s = readWord();
if (s != null)
return Integer.parseInt(s);
else
return 0;
* Reads the next double (without validating its format)
* @return the number read or 0 if trying to read beyond the EOF
public double readDouble()
String s = readWord();
if (s != null)
return Double.parseDouble(s);
// in Java 1, use: return Double.valueOf(s).doubleValue();
else
return 0.0;
Can anybody please tell me what's wrong with this code? ThanksString[] message = {
"One, two, buckle your shoe",
"One, two, buckle your shoe",
"Three, four, shut the door",
"Three, four, shut the door",
"Five, six, pick up sticks",
"Five, six, pick up sticks",
"Seven, eight, lay them straight",
"Seven, eight, lay them straight",
"Nine, ten, this is the end",
"Nine, ten, this is the end"
if(n>0)
System.out.println(message[n]);
else
System.exit(0); -
What is wrong with this code? on(release) gotoAndPlay("2")'{'
Please could someone tell me what is wrong with this code - on(release)
gotoAndPlay("2")'{'
this is the error that comes up and i have tried changing it but it is not working
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 2: '{' expected
gotoAndPlay("2")'{'
Total ActionScript Errors: 1 Reported Errors: 1
ThanksIf you have a frame labelled "2" then it should be:
on (release) {
this._parent.gotoAndPlay("2");
or other wise just the following to go to frame 2:
on (release) {
this._parent.gotoAndPlay(2);
You just had a missing curly bracket... -
[b]Does anybody know what is wrong with my code[/b]
I cannot see what is wrong with this code but i can't get it to compile. when i try to compile it i get the
"Exception in thread "main" java.lang.NoClassDefFoundError:
Is this a problem with compiling or is it a code error?
Here is my code
public class IntCalc{
int value;
public IntCalc(){
value = 0;
public void add(int number) {
value = value + number;
public void subtract(int number){
value = value - number;
public int getValue() {
return value;
Message was edited by:
SHIFTERYoud don't have a class file. Compile it first then run it. If your compiler isnt making the .class file tell me and ill give you a link to a realy good java compiler.
-
JScrollPane, what is wrong with my code?
Hi, I appreciated if you helped me(perhaps by trying it out yourself?)
I wanted my JScrollPane to display what is drawn on my canvas (which may be large)by scrolling, but it says it doesn't need any vertical and horizontal scroll bars. Here is the code that has this effect
import javax.swing.*;
import java.awt.*;
public class WhatsWrong extends JApplet{
public void init(){
Container appletCont = getContentPane();
appletCont.setLayout(new BorderLayout());
JPanel p = new JPanel();
p.setLayout(new BorderLayout());
p.add(new LargeCanvas(),BorderLayout.CENTER);
int ver = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
int hor = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
JScrollPane jsp = new JScrollPane(p,ver,hor);
appletCont.add(jsp,BorderLayout.CENTER);
class LargeCanvas extends Canvas{
public LargeCanvas(){
super();
setBackground(Color.white);
public void paint(Graphics g){
g.drawRect(50,50,700,700);
and the html code:
<html>
<body>
<applet code="WhatsWrong" width = 300 height = 250>
</applet>
</body>
</html>
What shall I do?
Thanks in advance.What is wrong with your code is that your class, LargeCanvas must implement the Scrollable interface in order to be scrolled by a JScrollPane.
A comment regarding your use of Canvas and Swing components: The Java Tutorial recommends that you extend JPanel to do custom painting. Canvas is what they call a "heavyweight" component and they recommend not to mix lightweight (Swing) components and heavyweight components.
There is a lot more information on custom painting on the Java Tutorial in the Lesson "Creating a GUI with Swing. -
What's wrong with my code? compliation error
There is a compilation error in my program
but i follow others sample prog. to do, but i can't do it
Please help me, thanks!!!
private int selectedRow, selectedCol;
final JTable table = new JTable(new MyTableModel());
public temp() {
super(new GridLayout(1, 0));
table.setPreferredScrollableViewportSize(new Dimension(600, 200));
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
ListSelectionModel rowSM = table.getSelectionModel();
rowSM.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
//Ignore extra messages.
if (e.getValueIsAdjusting()) return;
ListSelectionModel lsm = (ListSelectionModel)e.getSource();
if (lsm.isSelectionEmpty()) {
System.out.println("No rows are selected.");
else {
selectedRow = lsm.getMinSelectionIndex();
System.out.println("Row " + selectedRow+ " is now selected.");
JScrollPane scrollPane = new JScrollPane(table);
add(scrollPane);
createPopupMenu();
public void createPopupMenu() {
//Create the popup menu.
JPopupMenu popup = new JPopupMenu();
// display item
JMenuItem menuItem = new JMenuItem("Delete selected");
popup.add(menuItem);
menuItem.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
System.out.println("Display selected.");
System.out.println("ClientID: "+table.getValueAt(selectedRow,0));
int index = table.getSelectedColumn();
table.removeRow(index); <-------------------------------compliation error
}}); //what's wrong with my code? can anyone tell
//me what careless mistake i made?
MouseListener popupListener = new PopupListener(popup);
table.addMouseListener(popupListener);
public class MyTableModel extends AbstractTableModel {
private String[] columnNames = { "ClientID", "Name", "Administrator" };
private Vector data = new Vector();
class Row{
public Row(String c, String n, String a){
clientid = c;
name = n;
admin = a;
private String clientid;
private String name;
private String admin;
public MyTableModel(){}
public void removeRow(int r) {
data.removeElementAt(r);
fireTableChanged(null);
public int getColumnCount() {
return columnNames.length;
public int getRowCount() {
return data.size();
public String getColumnName(int col) {
return columnNames[col];
public Object getValueAt(int row, int col) {
return "";
public boolean isCellEditable(int row, int col) {
return false;
public void setValueAt(Object value, int row, int col) {}
}Inside your table model you use a Vector to hold your data. Create a method on your table model
public void removeRow(int rowIndex)
data.remove(rowIndex); // Remove the row from the vector
fireTableRowDeleted(rowIndex, rowIndex); // Inform the table that the rwo has gone
[/data]
In the class that from which you wish to call the above you will need to add a reference to your table model. -
What's wrong with my code? please help....
when display button is clicked it must diplay the remarks but it didn't happen...
what's wrong with my code? please help
here is my code.....
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class Area extends Applet implements ItemListener,ActionListener
{Label arlbl = new Label("AREA");
Choice archc = new Choice();
Label extlbl = new Label("EXPENDITURE TYPE");
CheckboxGroup extchk = new CheckboxGroup();
Checkbox fchk = new Checkbox("FOOD",extchk,true);
Checkbox schk = new Checkbox("SHELTER",extchk,false);
Checkbox echk = new Checkbox("EDUCATION",extchk,false);
Checkbox uchk = new Checkbox("UTILITIES",extchk,false);
Label exalbl = new Label("EXPENDITURE AMOUNT");
TextField exatf = new TextField("",20);
Label remlbl = new Label("REMARKS");
TextField remtf = new TextField("",30);
Button disbtn = new Button("DISPLAY");
Button resbtn = new Button("RESET");
String display;
public void init()
{add(arlbl);
archc.add("MANILA");
archc.add("MAKATI");
archc.add("QUEZON");
archc.add("PASAY");
add(archc);
archc.addItemListener(this);
add(extlbl);
add(fchk);
fchk.addItemListener(this);
add(schk);
schk.addItemListener(this);
add(echk);
echk.addItemListener(this);
add(uchk);
uchk.addItemListener(this);
add(exalbl);
add(exatf);
add(remlbl);
add(remtf);
add(disbtn);
disbtn.addActionListener(this);
add(resbtn);
resbtn.addActionListener(this);
public void itemStateChanged(ItemEvent ex)
{int n = archc.getSelectedIndex();
if(n==0)
{if(fchk.getState())
{exatf.setText("10000.00");
display = archc.getSelectedItem();
if(schk.getState())
{exatf.setText("15000.00");
display = archc.getSelectedItem();
if(echk.getState())
{exatf.setText("24000.00");
display = archc.getSelectedItem();
if(uchk.getState())
{exatf.setText("8500.00");
display = archc.getSelectedItem();
if(n==1)
{if(fchk.getState())
{exatf.setText("5000.00");
display = archc.getSelectedItem();
if(schk.getState())
{exatf.setText("11000.00");
display = archc.getSelectedItem();
if(echk.getState())
{exatf.setText("7500.00");
display = archc.getSelectedItem();
if(uchk.getState())
{exatf.setText("24000.00");
display = archc.getSelectedItem();
if(n==2)
{if(fchk.getState())
{exatf.setText("13000.00");
display = archc.getSelectedItem();
if(schk.getState())
{exatf.setText("7000.00");
display = archc.getSelectedItem();
if(echk.getState())
{exatf.setText("27000.00");
display = archc.getSelectedItem();
if(uchk.getState())
{exatf.setText("6000.00");
display = archc.getSelectedItem();
if(n==3)
{if(fchk.getState())
{exatf.setText("6000.00");
display = archc.getSelectedItem();
if(schk.getState())
{exatf.setText("9000.00");
display = archc.getSelectedItem();
if(echk.getState())
{exatf.setText("15000.00");
display = archc.getSelectedItem();
if(uchk.getState())
{exatf.setText("19000.00");
display = archc.getSelectedItem();
public void actionPerformed(ActionEvent e)
{if(e.getSource() == disbtn)
{String amtstr = exatf.getText();
int amt = Integer.parseInt(amtstr);
{if(amt > 8000)
{remtf.setText(display + " IS ABOVE BUDGET");
else
{remtf.setText(display + " IS BELOW BUDGET");
if(e.getSource() == resbtn)
{archc.select(0);
fchk.setState(true);
schk.setState(false);
echk.setState(false);
uchk.setState(false);
exatf.setText("");
remtf.setText("");
Edited by: lovely23 on Feb 28, 2009 11:24 PMEdit: thanks for cross-posting this question on another forum. I now see that I wasted my time trying to study your code in the java-forums to help you with an answer that had already been answered elsewhere (here). Do you realize that we are volunteers, that our time is as valuable as yours? Apparently not. Cross-post again and many here will not help you again. I know that I won't.
-
What is wrong with Safari quits unexpectedly takes forever to load pinwheel spins and spins and spins going on for months
Process: Safari [191]
Path: /Applications/Safari.app/Contents/MacOS/Safari
Identifier: com.apple.Safari
Version: 5.1.7 (6534.57.2)
Build Info: WebBrowser-75345702~2
Code Type: X86-64 (Native)
Parent Process: launchd [147]
Date/Time: 2012-07-23 14:19:38.786 -0400
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 ??? 000000000000000000 0 + 0
1 ??? 0x0000000100661f90 0 + 4301660048
2 com.apple.WebKit2 0x00007fff8748b488 void CoreIPC::handleMessageVariadic<Messages::WebPageProxy::DidFinishDocumentLoadFor Frame, WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(unsigned long long, CoreIPC::ArgumentDecoder*)>(CoreIPC::ArgumentDecoder*, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned long long, CoreIPC::ArgumentDecoder*)) + 87
3 com.apple.WebKit2 0x00007fff8748044c WebKit::WebProcessProxy::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 162
4 com.apple.WebKit2 0x00007fff87480338 CoreIPC::Connection::dispatchMessage(CoreIPC::Connection::Message<CoreIPC::Argu mentDecoder>&) + 138
5 com.apple.WebKit2 0x00007fff87480297 CoreIPC::Connection::dispatchMessages() + 121
6 com.apple.WebKit2 0x00007fff8747d5e1 RunLoop::performWork() + 135
7 com.apple.WebKit2 0x00007fff8747d52f RunLoop::performWork(void*) + 83
8 com.apple.CoreFoundation 0x00007fff88a763d1 __CFRunLoopDoSources0 + 1361
9 com.apple.CoreFoundation 0x00007fff88a745c9 __CFRunLoopRun + 873
10 com.apple.CoreFoundation 0x00007fff88a73d8f CFRunLoopRunSpecific + 575
11 com.apple.HIToolbox 0x00007fff885f57ee RunCurrentEventLoopInMode + 333
12 com.apple.HIToolbox 0x00007fff885f5551 ReceiveNextEventCommon + 148
13 com.apple.HIToolbox 0x00007fff885f54ac BlockUntilNextEventMatchingListInMode + 59
14 com.apple.AppKit 0x00007fff87b48eb2 _DPSNextEvent + 708
15 com.apple.AppKit 0x00007fff87b48801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
16 com.apple.Safari.framework 0x00007fff814ee3a8 -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 177
17 com.apple.AppKit 0x00007fff87d83dc3 -[NSApplication _realDoModalLoop:peek:] + 442
18 com.apple.AppKit 0x00007fff87d81951 -[NSApplication runModalForWindow:] + 129
19 com.apple.AppKit 0x00007fff87d7ee07 -[NSAlert runModal] + 96
20 com.apple.Safari.framework 0x00007fff814a88d3 -[AppController(FileInternal) _confirmStealthMode] + 287
21 com.apple.Safari.framework 0x00007fff814a8e65 -[AppController(FileInternal) _togglePrivateBrowsingSuppressingConfirmation:] + 144
22 com.apple.AppKit 0x00007fff87c9deda -[NSApplication sendAction:to:from:] + 95
23 com.apple.Safari.framework 0x00007fff814ee410 -[BrowserApplication sendAction:to:from:] + 82
24 com.apple.AppKit 0x00007fff87cc246a -[NSMenuItem _corePerformAction] + 365
25 com.apple.AppKit 0x00007fff87cc21d4 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 121
26 com.apple.AppKit 0x00007fff87f47cf4 -[NSMenu _internalPerformActionForItemAtIndex:] + 35
27 com.apple.AppKit 0x00007fff87df99e9 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 136
28 com.apple.AppKit 0x00007fff87ca499c NSSLMMenuEventHandler + 321
29 com.apple.HIToolbox 0x00007fff885ce7f7 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1002
30 com.apple.HIToolbox 0x00007fff885cdd46 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 395
31 com.apple.HIToolbox 0x00007fff885eba81 SendEventToEventTarget + 45
32 com.apple.HIToolbox 0x00007fff8861ac35 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 387
33 com.apple.HIToolbox 0x00007fff88647a0a SendMenuCommandWithContextAndModifiers + 56
34 com.apple.HIToolbox 0x00007fff886479c2 SendMenuItemSelectedEvent + 101
35 com.apple.HIToolbox 0x00007fff886478d2 FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 150
36 com.apple.HIToolbox 0x00007fff88628c27 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 467
37 com.apple.HIToolbox 0x00007fff8862837c _HandleMenuSelection2 + 453
38 com.apple.AppKit 0x00007fff87b75851 _NSHandleCarbonMenuEvent + 236
39 com.apple.AppKit 0x00007fff87b49362 _DPSNextEvent + 1908
40 com.apple.AppKit 0x00007fff87b48801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
41 com.apple.Safari.framework 0x00007fff814ee3a8 -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 177
42 com.apple.AppKit 0x00007fff87b0e68f -[NSApplication run] + 395
43 com.apple.AppKit 0x00007fff87b073b0 NSApplicationMain + 364
44 com.apple.Safari.framework 0x00007fff816abba0 SafariMain + 200
45 com.apple.Safari 0x0000000100000f1c 0x100000000 + 3868
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff83b02c0a kevent + 10
1 libSystem.B.dylib 0x00007fff83b04add _dispatch_mgr_invoke + 154
2 libSystem.B.dylib 0x00007fff83b047b4 _dispatch_queue_invoke + 185
3 libSystem.B.dylib 0x00007fff83b042de _dispatch_worker_thread2 + 252
4 libSystem.B.dylib 0x00007fff83b03c08 _pthread_wqthread + 353
5 libSystem.B.dylib 0x00007fff83b03aa5 start_wqthread + 13
Thread 2:
0 libSystem.B.dylib 0x00007fff83b03a2a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff83b03e3c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff83b03aa5 start_wqthread + 13
Thread 3: WebCore: IconDatabase
0 libSystem.B.dylib 0x00007fff83b24a6a __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff83b28881 _pthread_cond_wait + 1286
2 com.apple.WebCore 0x00007fff88e8fca9 WebCore::IconDatabase::syncThreadMainLoop() + 265
3 com.apple.WebCore 0x00007fff88e8d0a8 WebCore::IconDatabase::iconDatabaseSyncThread() + 296
4 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
5 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 4:
0 libSystem.B.dylib 0x00007fff83ae9d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff83aea3ed mach_msg + 59
2 com.apple.QuartzCore 0x00007fff8711e396 CA::Render::Server::server_thread(void*) + 177
3 com.apple.QuartzCore 0x00007fff8711e2d6 thread_fun + 34
4 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
5 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 5:
0 libSystem.B.dylib 0x00007fff83ae9d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff83aea3ed mach_msg + 59
2 libSystem.B.dylib 0x00007fff83b66a17 mach_msg_server + 468
3 RapportDaishi.dylib 0x00000001127cb7b0 mig_rpc_server::server_working_thread(void*) + 58
4 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
5 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 6:
0 libSystem.B.dylib 0x00007fff83b2d932 select$DARWIN_EXTSN + 10
1 RapportUtil1.dylib 0x0000000114287368 resolver_heartbeat + 230
2 RapportUtil1.dylib 0x0000000114266a82 bp_heartbeat_thread + 209
3 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
4 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 7:
0 libSystem.B.dylib 0x00007fff83b24a6a __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff83b248f9 nanosleep + 148
2 libSystem.B.dylib 0x00007fff83b24863 usleep + 57
3 RapportDaishi.dylib 0x00000001127b770f active_monitor_finish_thread(void*) + 61
4 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
5 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 8:
0 libSystem.B.dylib 0x00007fff83ae9d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff83aea3ed mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff88a74902 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff88a73d8f CFRunLoopRunSpecific + 575
4 com.apple.Foundation 0x00007fff85cce14f +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 297
5 com.apple.Foundation 0x00007fff85c4f114 __NSThread__main__ + 1429
6 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
7 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 9:
0 libSystem.B.dylib 0x00007fff83b24a6a __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff83b248f9 nanosleep + 148
2 libSystem.B.dylib 0x00007fff83b24863 usleep + 57
3 RapportDaishi.dylib 0x00000001127bb923 web_page_monitor::async_finish_document_load() + 37
4 RapportUtil1.dylib 0x00000001142bfca1 osx_async_tasks_scheduler::execute_task(tasks_scheduler::task*) + 67
5 RapportUtil1.dylib 0x000000011429b3a9 async_tasks_scheduler::work() + 437
6 RapportUtil1.dylib 0x00000001142bfd34 async_task_thread_wrapper(void*) + 10
7 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
8 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 10: Safari: SpinningProgressIndicator
0 libSystem.B.dylib 0x00007fff83ae9d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff83aea3ed mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff88a74902 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff88a73d8f CFRunLoopRunSpecific + 575
4 com.apple.Foundation 0x00007fff85c89b74 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
5 com.apple.Foundation 0x00007fff85c89a53 -[NSRunLoop(NSRunLoop) run] + 77
6 com.apple.Safari.framework 0x00007fff816e4a21 -[Heartbeat _startHeartbeatRunLoop] + 244
7 com.apple.Foundation 0x00007fff85c4f114 __NSThread__main__ + 1429
8 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
9 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 11: Safari: SafeBrowsingManager
0 libSystem.B.dylib 0x00007fff83ae9d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff83aea3ed mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff88a74902 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff88a73d8f CFRunLoopRunSpecific + 575
4 com.apple.Safari.framework 0x00007fff8166407d Safari::MessageRunLoop::threadBody() + 107
5 com.apple.Safari.framework 0x00007fff816640b7 Safari::MessageRunLoop::threadCallback(void*) + 9
6 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
7 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 12:
0 libSystem.B.dylib 0x00007fff83b03a2a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff83b03e3c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff83b03aa5 start_wqthread + 13
Thread 13:
0 libSystem.B.dylib 0x00007fff83b03a2a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff83b03e3c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff83b03aa5 start_wqthread + 13
Thread 14:
0 libSystem.B.dylib 0x00007fff83b24a6a __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff83b248f9 nanosleep + 148
2 libSystem.B.dylib 0x00007fff83b24863 usleep + 57
3 com.apple.AppKit 0x00007fff87c943a1 -[NSUIHeartBeat _heartBeatThread:] + 1540
4 com.apple.Foundation 0x00007fff85c4f114 __NSThread__main__ + 1429
5 libSystem.B.dylib 0x00007fff83b22fd6 _pthread_start + 331
6 libSystem.B.dylib 0x00007fff83b22e89 thread_start + 13
Thread 15:
0 libSystem.B.dylib 0x00007fff83b03a2a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff83b03e3c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff83b03aa5 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00000001001d2980 rbx: 0x0000000100657650 rcx: 0x0000000100498c00 rdx: 0x0000000000000000
rdi: 0x000000010049e000 rsi: 0x00000001004f8d20 rbp: 0x00007fff5fbfd350 rsp: 0x00007fff5fbfd318
r8: 0x00000001127eda48 r9: 0x00000000ffd8bc56 r10: 0x00000000742ddc96 r11: 0x0000000000000003
r12: 0x0000000100498c00 r13: 0x0000000000000000 r14: 0x00000001004f8d20 r15: 0x000000010049e000
rip: 0x0000000000000000 rfl: 0x0000000000010202 cr2: 0x0000000000000000
Binary Images:
0x100000000 - 0x100000fff com.apple.Safari 5.1.7 (6534.57.2) <2208AB17-7F39-5DC1-AE9F-7946DEE3CA0B> /Applications/Safari.app/Contents/MacOS/Safari
0x100783000 - 0x1007b8fe7 +librooksbas.dylib ??? (???) <EEF7BAA0-C433-17AF-E049-C7B2C22BF139> /Library/Rapport/bin/librooksbas.dylib
0x102761000 - 0x102782fff +librooksmce.dylib ??? (???) <AFB00909-A5BE-9547-98A8-B85E32F942BF> /Library/Rapport/bin/librooksmce.dylib
0x1127b3000 - 0x1127e6fff +RapportDaishi.dylib ??? (???) <3569E41D-25A7-FF22-084E-4A4D5D16E8FA> /Library/Rapport/bin/RapportDaishi.dylib
0x114252000 - 0x11444cfff +RapportUtil1.dylib ??? (???) <3A5C82E9-2D75-04E0-6A6D-E2946F42EA17> /Library/Rapport/bin/RapportUtil1.dylib
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B536F2F1-9DF1-3B6C-1C2C-9075EA219A06> /usr/lib/dyld
0x7fff80003000 - 0x7fff800bcfff libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <2C5ED312-E646-9ADE-73A9-6199A2A43150> /usr/lib/libsqlite3.dylib
0x7fff800bd000 - 0x7fff800e5fff com.apple.DictionaryServices 1.1.2 (1.1.2) <E9269069-93FA-2B71-F9BA-FDDD23C4A65E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
0x7fff80126000 - 0x7fff80156fef com.apple.shortcut 1.1 (1.1) <A99C9D8E-290B-B1E4-FEA5-CC5F2FB9C18D> /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
0x7fff80157000 - 0x7fff8015efff com.apple.OpenDirectory 10.6 (10.6) <4200CFB0-DBA1-62B8-7C7C-91446D89551F> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff8015f000 - 0x7fff80162ff7 libCoreVMClient.dylib ??? (???) <75819794-3B7A-8944-D004-7EA6DD7CE836> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
0x7fff80163000 - 0x7fff801fdfff com.apple.ApplicationServices.ATS 275.19 (???) <2DE8987F-4563-4D8E-45C3-2F6F786E120D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
0x7fff802b6000 - 0x7fff80393fff com.apple.vImage 4.1 (4.1) <C3F44AA9-6F71-0684-2686-D3BBC903F020> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
0x7fff803cf000 - 0x7fff80402ff7 libTrueTypeScaler.dylib ??? (???) <B7BA8104-FA18-39A2-56E1-922EE7A660AC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
0x7fff80416000 - 0x7fff8041aff7 libCGXType.A.dylib 545.0.0 (compatibility 64.0.0) <DB710299-B4D9-3714-66F7-5D2964DE585B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x7fff806cb000 - 0x7fff806dafef com.apple.opengl 1.6.14 (1.6.14) <ECAE2D12-5BE3-46E7-6EE5-563B80B32A3E> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff8073c000 - 0x7fff80a5ffe7 com.apple.JavaScriptCore 6534.57 (6534.57.3) <99973578-D474-3664-1388-61CB47E9D6E9> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x7fff80ad2000 - 0x7fff80b1bff7 com.apple.securityinterface 4.0.1 (40418.0.1) <9AF33A9F-2D8C-2AE6-868C-EA836C861031> /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
0x7fff80b1c000 - 0x7fff81326fe7 libBLAS.dylib 219.0.0 (compatibility 1.0.0) <FC941ECB-71D0-FAE3-DCBF-C5A619E594B8> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
0x7fff81327000 - 0x7fff81441fff libGLProgrammability.dylib ??? (???) <D1650AED-02EF-EFB3-100E-064C7F018745> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
0x7fff81454000 - 0x7fff81485fff libGLImage.dylib ??? (???) <562565E1-AA65-FE96-13FF-437410C886D0> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
0x7fff81486000 - 0x7fff8148cfff libCGXCoreImage.A.dylib 545.0.0 (compatibility 64.0.0) <D2F8C7E3-CBA1-2E66-1376-04AA839DABBB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
0x7fff8148d000 - 0x7fff81cbffe7 com.apple.Safari.framework 6534 (6534.57.2) <596F6CCF-D815-1727-8E58-8B8EE0E44753> /System/Library/PrivateFrameworks/Safari.framework/Versions/A/Safari
0x7fff81d1b000 - 0x7fff8204ffef com.apple.CoreServices.CarbonCore 861.39 (861.39) <1386A24D-DD15-5903-057E-4A224FAF580B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
0x7fff82050000 - 0x7fff8205bfff com.apple.CrashReporterSupport 10.6.7 (258) <A2CBB18C-BD1C-8650-9091-7687E780E689> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/Cra shReporterSupport
0x7fff8217e000 - 0x7fff8231ffe7 com.apple.WebKit 6534.57 (6534.57.2) <B99EF91E-676F-79A0-FADC-A72C1E14536E> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
0x7fff82320000 - 0x7fff825a9ff7 com.apple.security 6.1.2 (55002) <0D80504C-9A6D-C865-AF37-7C231ACF97CB> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff825aa000 - 0x7fff825aaff7 com.apple.vecLib 3.6 (vecLib 3.6) <08D3D45D-908B-B86A-00BA-0F978D2702A7> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff825d0000 - 0x7fff82680fff edu.mit.Kerberos 6.5.11 (6.5.11) <085D80F5-C9DC-E252-C21B-03295E660C91> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff82681000 - 0x7fff826a8ff7 libJPEG.dylib ??? (???) <32EDAB18-08ED-B31A-D2BD-12EFFE60D83C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff826a9000 - 0x7fff82868fff com.apple.ImageIO.framework 3.0.5 (3.0.5) <175E97F1-B1A7-655A-F154-5B6ACC5F3985> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
0x7fff82bad000 - 0x7fff82d6bfff libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <4274FC73-A257-3A56-4293-5968F3428854> /usr/lib/libicucore.A.dylib
0x7fff82d6c000 - 0x7fff82df1ff7 com.apple.print.framework.PrintCore 6.3 (312.7) <CDFE82DD-D811-A091-179F-6E76069B432D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
0x7fff82df2000 - 0x7fff82df7fff libGIF.dylib ??? (???) <3FD1157B-C002-5268-DEF4-70DDC40E6EDE> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff82df8000 - 0x7fff82e03fff com.apple.corelocation 12.3 (12.3) <A6CFB410-2333-8BE3-658B-75A93C90A9CC> /System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation
0x7fff82e04000 - 0x7fff82e4dfef libGLU.dylib ??? (???) <B0F4CA55-445F-E901-0FCF-47B3B4BAE6E2> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff82e8f000 - 0x7fff82ecafff com.apple.AE 496.5 (496.5) <208DF391-4DE6-81ED-C697-14A2930D1BC6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
0x7fff82ecb000 - 0x7fff82ecefff com.apple.help 1.3.2 (41.1) <BD1B0A22-1CB8-263E-FF85-5BBFDE3660B9> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
0x7fff83920000 - 0x7fff83973ff7 com.apple.HIServices 1.8.3 (???) <F6E0C7A7-C11D-0096-4DDA-2C77793AA6CD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
0x7fff83982000 - 0x7fff83982ff7 com.apple.Accelerate 1.6 (Accelerate 1.6) <2BB7D669-4B40-6A52-ADBD-DA4DB3BC0B1B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff83983000 - 0x7fff83a0ffef SecurityFoundation ??? (???) <6860DE26-0D42-D1E8-CD7C-5B42D78C1E1D> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
0x7fff83a10000 - 0x7fff83a57ff7 com.apple.coreui 2 (114) <D7645B59-0431-6283-7322-957D944DAB21> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff83a58000 - 0x7fff83ae8fff com.apple.SearchKit 1.3.0 (1.3.0) <4175DC31-1506-228A-08FD-C704AC9DF642> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
0x7fff83ae9000 - 0x7fff83caafef libSystem.B.dylib 125.2.11 (compatibility 1.0.0) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
0x7fff83cab000 - 0x7fff83cbdfe7 libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <76B83C8D-8EFE-4467-0F75-275648AFED97> /usr/lib/libsasl2.2.dylib
0x7fff83cbe000 - 0x7fff83dddfe7 libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <14115D29-432B-CF02-6B24-A60CC533A09E> /usr/lib/libcrypto.0.9.8.dylib
0x7fff83dde000 - 0x7fff83e7efff com.apple.LaunchServices 362.3 (362.3) <B90B7C31-FEF8-3C26-BFB3-D8A48BD2C0DA> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
0x7fff83e7f000 - 0x7fff83f3cfff com.apple.CoreServices.OSServices 359.2 (359.2) <BBB8888E-18DE-5D09-3C3A-F4C029EC7886> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
0x7fff83f3d000 - 0x7fff83f43ff7 com.apple.DiskArbitration 2.3 (2.3) <857F6E43-1EF4-7D53-351B-10DE0A8F992A> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff83f44000 - 0x7fff83f65fe7 libPng.dylib ??? (???) <A6BF1360-1B23-78BD-12EF-E4A5753EEB76> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff83f66000 - 0x7fff83f9cff7 com.apple.framework.Apple80211 6.2.5 (625.6) <B67C7A65-E4FB-4419-3F31-4482E17EF203> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x7fff83f9d000 - 0x7fff84007fe7 libvMisc.dylib 268.0.1 (compatibility 1.0.0) <75A8D840-4ACE-6560-0889-2AFB6BE08E59> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
0x7fff84008000 - 0x7fff84087fe7 com.apple.audio.CoreAudio 3.2.6 (3.2.6) <79E256EB-43F1-C7AA-6436-124A4FFB02D0> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff840d3000 - 0x7fff840deff7 com.apple.HelpData 2.0.5 (34.1.1) <24DC6CD3-02B7-9332-FF6D-F0C545857B55> /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData
0x7fff840df000 - 0x7fff84104ff7 com.apple.CoreVideo 1.6.2 (45.6) <E138C8E7-3CB6-55A9-0A2C-B73FE63EA288> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff84105000 - 0x7fff84125ff7 com.apple.DirectoryService.Framework 3.6 (621.14) <15CF4C96-372D-C706-A237-47D20D2CAA6B> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
0x7fff84297000 - 0x7fff842dafef libtidy.A.dylib ??? (???) <2F4273D3-418B-668C-F488-7E659D3A8C23> /usr/lib/libtidy.A.dylib
0x7fff8457e000 - 0x7fff84589ff7 com.apple.speech.recognition.framework 3.11.1 (3.11.1) <F0DDF27E-DB55-07CE-E548-C62095BE8167> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
0x7fff8458a000 - 0x7fff8468eff7 com.apple.PubSub 1.0.5 (65.28) <11D77223-EAAE-0199-1F99-0D28680559CE> /System/Library/Frameworks/PubSub.framework/Versions/A/PubSub
0x7fff8468f000 - 0x7fff8470cfef libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
0x7fff84731000 - 0x7fff84786ff7 com.apple.framework.familycontrols 2.0.2 (2020) <F09541B6-5E28-1C01-C1AE-F6A2508670C7> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyCon trols
0x7fff84787000 - 0x7fff847cfff7 libvDSP.dylib 268.0.1 (compatibility 1.0.0) <170DE04F-89AB-E295-0880-D69CAFBD7979> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
0x7fff84ba6000 - 0x7fff84bf5ff7 com.apple.DirectoryService.PasswordServerFramework 6.1 (6.1) <01B370FB-D524-F660-3826-E85B7F0D85CD> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordS erver
0x7fff84bf6000 - 0x7fff84c19fff com.apple.opencl 12.3.6 (12.3.6) <42FA5783-EB80-1168-4015-B8C68F55842F> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7fff84c1a000 - 0x7fff84c1aff7 com.apple.ApplicationServices 38 (38) <10A0B9E9-4988-03D4-FC56-DDE231A02C63> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
0x7fff84c1b000 - 0x7fff84c3cfff libresolv.9.dylib 41.1.0 (compatibility 1.0.0) <9410EC7F-4D24-6740-AFEE-90405750FAD7> /usr/lib/libresolv.9.dylib
0x7fff84c3d000 - 0x7fff85339ff7 com.apple.CoreGraphics 1.545.0 (???) <58D597B1-EB3B-710E-0B8C-EC114D54E11B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff853ec000 - 0x7fff85407ff7 com.apple.openscripting 1.3.1 (???) <FD46A0FE-AC79-3EF7-AB4F-396D376DDE71> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
0x7fff85408000 - 0x7fff8541cff7 com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <621B7415-A0B9-07A7-F313-36BEEDD7B132> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff8541d000 - 0x7fff85552fff com.apple.audio.toolbox.AudioToolbox 1.6.7 (1.6.7) <F4814A13-E557-59AF-30FF-E62929367933> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff855ad000 - 0x7fff855aeff7 com.apple.audio.units.AudioUnit 1.6.7 (1.6.7) <49B723D1-85F8-F86C-2331-F586C56D68AF> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff85627000 - 0x7fff85636fff com.apple.NetFS 3.2.2 (3.2.2) <7CCBD70E-BF31-A7A7-DB98-230687773145> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff8571b000 - 0x7fff857d0fe7 com.apple.ink.framework 1.3.3 (107) <FFC46EE0-3544-A459-2AB9-94778A75E3D4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
0x7fff8587e000 - 0x7fff8588cff7 libkxld.dylib ??? (???) <8145A534-95CC-9F3C-B78B-AC9898F38C6F> /usr/lib/system/libkxld.dylib
0x7fff8588d000 - 0x7fff8589efff SyndicationUI ??? (???) <1DBD7D2A-56A1-BDFA-4742-04B2F42FDF2D> /System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/Syndicatio nUI
0x7fff85a6e000 - 0x7fff85a74ff7 IOSurface ??? (???) <04EDCEDE-E36F-15F8-DC67-E61E149D2C9A> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff85bdd000 - 0x7fff85c3dfe7 com.apple.framework.IOKit 2.0 (???) <4F071EF0-8260-01E9-C641-830E582FA416> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff85c3e000 - 0x7fff85ec0fff com.apple.Foundation 6.6.8 (751.63) <E10E4DB4-9D5E-54A8-3FB6-2A82426066E4> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff85ec1000 - 0x7fff85f17fff libTIFF.dylib ??? (???) <31FA0318-105B-9E11-B4D4-246BFD5B18E1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff85f8e000 - 0x7fff85fa4fef libbsm.0.dylib ??? (???) <42D3023A-A1F7-4121-6417-FCC6B51B3E90> /usr/lib/libbsm.0.dylib
0x7fff85fe7000 - 0x7fff86012ff7 libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <3630A97F-55C1-3F34-CA63-3847653C9645> /usr/lib/libxslt.1.dylib
0x7fff86013000 - 0x7fff86051fe7 libFontRegistry.dylib ??? (???) <395D7C0D-36B5-B353-0DC8-51ABC0B1C030> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff86095000 - 0x7fff860e1fff libauto.dylib ??? (???) <F7221B46-DC4F-3153-CE61-7F52C8C293CF> /usr/lib/libauto.dylib
0x7fff860e2000 - 0x7fff8612cff7 com.apple.Metadata 10.6.3 (507.15) <DE238BE4-5E22-C4D5-CF5C-3D50FDEE4701> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
0x7fff8612d000 - 0x7fff86141fff libGL.dylib ??? (???) <2ECE3B0F-39E1-3938-BF27-7205C6D0358B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff86142000 - 0x7fff86143fff liblangid.dylib ??? (???) <EA4D1607-2BD5-2EE2-2A3B-632EEE5A444D> /usr/lib/liblangid.dylib
0x7fff86190000 - 0x7fff86246ff7 libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <03140531-3B2D-1EBA-DA7F-E12CC8F63969> /usr/lib/libobjc.A.dylib
0x7fff86247000 - 0x7fff86247ff7 com.apple.Carbon 150 (152) <19B37B7B-1594-AD0A-7F14-FA2F85AD7241> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x7fff86321000 - 0x7fff863e3fe7 libFontParser.dylib ??? (???) <EF06F16C-0CC9-B4CA-7BD9-0A97FA967340> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff863e4000 - 0x7fff863f0fff libbz2.1.0.dylib 1.0.5 (compatibility 1.0.0) <6FB0A8F4-72A1-D28F-E801-DE2C7498AFB9> /usr/lib/libbz2.1.0.dylib
0x7fff863f1000 - 0x7fff8642eff7 libssl.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <F743389F-F25A-A77D-4FCA-D6B01AF2EE6D> /usr/lib/libssl.0.9.8.dylib
0x7fff8642f000 - 0x7fff86876fef com.apple.RawCamera.bundle 3.7.1 (570) <5AFA87CA-DC3D-F84E-7EA1-6EABA8807766> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x7fff86893000 - 0x7fff869a9ff7 libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <3814FCF9-92B9-A6AB-E76A-F7021894AA3F> /usr/lib/libxml2.2.dylib
0x7fff869aa000 - 0x7fff869aeff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fff869af000 - 0x7fff869f0fef com.apple.QD 3.36 (???) <5DC41E81-32C9-65B2-5528-B33E934D5BB4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
0x7fff86ae6000 - 0x7fff86c24fff com.apple.CoreData 102.1 (251) <32233D4D-00B7-CE14-C881-6BF19FD05A03> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff86d1e000 - 0x7fff86d2dfff libxar.1.dylib ??? (???) <CBAF862A-3C77-6446-56C2-9C4461631AAF> /usr/lib/libxar.1.dylib
0x7fff86d2e000 - 0x7fff86d31ff7 com.apple.securityhi 4.0 (36638) <38935851-09E4-DDAB-DB1D-30ADC39F7ED0> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
0x7fff86f15000 - 0x7fff86f17fff libRadiance.dylib ??? (???) <B422DA26-E0CF-F280-6EB4-3B8FEF59B665> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x7fff86f18000 - 0x7fff86f18ff7 com.apple.Cocoa 6.6 (???) <68B0BE46-6E24-C96F-B341-054CF9E8F3B6> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x7fff86fe5000 - 0x7fff870cafef com.apple.DesktopServices 1.5.11 (1.5.11) <39FAA3D2-6863-B5AB-AED9-92D878EA2438> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
0x7fff870cb000 - 0x7fff87468fe7 com.apple.QuartzCore 1.6.3 (227.37) <16DFF6CD-EA58-CE62-A1D7-5F6CE3D066DD> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff87469000 - 0x7fff87469ff7 com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <DA9BFF01-40DF-EBD5-ABB7-787DAF2D77CF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
0x7fff8746a000 - 0x7fff87624ff7 com.apple.WebKit2 6534.57 (6534.57.2) <0C4B9A17-F7DA-B2FD-961E-DA258D56CCDE> /System/Library/PrivateFrameworks/WebKit2.framework/Versions/A/WebKit2
0x7fff87625000 - 0x7fff87a68fef libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <0CC61C98-FF51-67B3-F3D8-C5E430C201A9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
0x7fff87a69000 - 0x7fff87a6fff7 com.apple.CommerceCore 1.0 (9.1) <3691E9BA-BCF4-98C7-EFEC-78DA6825004E> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/C ommerceCore.framework/Versions/A/CommerceCore
0x7fff87a70000 - 0x7fff87a81ff7 libz.1.dylib 1.2.3 (compatibility 1.0.0) <FB5EE53A-0534-0FFA-B2ED-486609433717> /usr/lib/libz.1.dylib
0x7fff87ab4000 - 0x7fff87ac9ff7 com.apple.LangAnalysis 1.6.6 (1.6.6) <DC999B32-BF41-94C8-0583-27D9AB463E8B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff87aca000 - 0x7fff87b04fff libcups.2.dylib 2.8.0 (compatibility 2.0.0) <7982734A-B66B-44AA-DEEC-364D2C10009B> /usr/lib/libcups.2.dylib
0x7fff87b05000 - 0x7fff884ffff7 com.apple.AppKit 6.6.8 (1038.36) <4CFBE04C-8FB3-B0EA-8DDB-7E7D10E9D251> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff88575000 - 0x7fff88582fe7 libCSync.A.dylib 545.0.0 (compatibility 64.0.0) <1C35FA50-9C70-48DC-9E8D-2054F7A266B1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x7fff885c7000 - 0x7fff888c5fff com.apple.HIToolbox 1.6.5 (???) <AD1C18F6-51CB-7E39-35DD-F16B1EB978A8> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
0x7fff888c6000 - 0x7fff888c6ff7 com.apple.CoreServices 44 (44) <DC7400FB-851E-7B8A-5BF6-6F50094302FB> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff88a28000 - 0x7fff88b9ffe7 com.apple.CoreFoundation 6.6.6 (550.44) <BB4E5158-E47A-39D3-2561-96CB49FA82D4> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff88c2e000 - 0x7fff88cacff7 com.apple.CoreText 151.12 (???) <5BE797B7-C903-B664-ADD9-7514B1A6EF9E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
0x7fff88cad000 - 0x7fff88d29ff7 com.apple.ISSupport 1.9.7 (55) <BAE839AB-9DBD-FB23-F1F1-39445F04D8DA> /System/Library/PrivateFrameworks/ISSupport.framework/Versions/A/ISSupport
0x7fff88d2a000 - 0x7fff88d2bff7 com.apple.TrustEvaluationAgent 1.1 (1) <74800EE8-C14C-18C9-C208-20BBDB982D40> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
0x7fff88d2c000 - 0x7fff88d42fe7 com.apple.MultitouchSupport.framework 207.11 (207.11) <8233CE71-6F8D-8B3C-A0E1-E123F6406163> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/Multit ouchSupport
0x7fff88d43000 - 0x7fff88d86ff7 libRIP.A.dylib 545.0.0 (compatibility 64.0.0) <5FF3D7FD-84D8-C5FA-D640-90BB82EC651D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x7fff88e88000 - 0x7fff89ef2fef com.apple.WebCore 6534.57 (6534.57.2) <9BE3BFB2-D520-CD10-E4A1-3C2AF322A097> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
0x7fff89fab000 - 0x7fff8a06cfef com.apple.ColorSync 4.6.8 (4.6.8) <7DF1D175-6451-51A2-DBBF-40FCA78C0D2C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
0x7fff8a06d000 - 0x7fff8a06ffff com.apple.print.framework.Print 6.1 (237.1) <CA8564FB-B366-7413-B12E-9892DA3C6157> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
0x7fff8a070000 - 0x7fff8a089fff com.apple.CFOpenDirectory 10.6 (10.6) <CCF79716-7CC6-2520-C6EB-A4F56AD0A207> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
0x7fff8a08a000 - 0x7fff8a0cbfff com.apple.SystemConfiguration 1.10.8 (1.10.2) <78D48D27-A9C4-62CA-2803-D0BBED82855A> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
0x7fff8a0cc000 - 0x7fff8a0d1fff libGFXShared.dylib ??? (???) <6BBC351E-40B3-F4EB-2F35-05BDE52AF87E> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.d ylib
0x7fff8a640000 - 0x7fff8a657fff com.apple.ImageCapture 6.1 (6.1) <79AB2131-2A6C-F351-38A9-ED58B25534FD> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
0x7fff8a6ca000 - 0x7fff8a79efe7 com.apple.CFNetwork 454.12.4 (454.12.4) <C83E2BA1-1818-B3E8-5334-860AD21D1C80> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
0x7fff8a7a7000 - 0x7fff8a7acff7 com.apple.CommonPanels 1.2.4 (91) <4D84803B-BD06-D80E-15AE-EFBE43F93605> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib -
Some of my songs in iPad Mini with RD disappeared all the sudden and I need to redownload it again. Same thing happen to my iPod touch 5 too. What's wrong with it? Is it the iOS problem?
Delete the music in your iTunes library, then go to iTunes store, Quick Link, 'Purchased' to redownload again.
-
Ever since I got the new update 5.1 my iPod's been dying faster, even after I charge it. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason (even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? It's lagging as well..
Some Users have Reported that a Restore as New has helped Resolve issues...
Backup and Set Up as New Device
http://support.apple.com/kb/HT4137 -
My iPhone 5s (16GB) is stuck with 3948 photos (shown on the iTunes storage bar) on and I can not find a way to delete them all! It's very annoying as it takes up 6.54 GB of space and leaves me no room to add films, music...etc on to it. Please help me!!! I have already tried the numerous articles Apple have sent my way and I am still having no luck.I'd be eternally grateful if anyone could find a solution for me as this has been a problem for almost a year. Thank you.
If they were put there via iTunes sync process, then simply untick the Music box before syncing again.
-
What's wrong with my code?
I don't have a lot of time for explanation. Somebody please tell me what's wrong with the following code.
import java.nio.*;
import java.io.*;
public class GettingAnInteger {
public static void main(String args[]) {
IntBuffer intBuf = new IntBuffer.allocate(10);
int x;
x = intBuf.get();
System.out.print(x);
}Thanks!!!Why wouldn't you include the keyword new?http://java.sun.com/docs/books/tutorial/
http://java.sun.com/learning/new2java/index.html
http://javaalmanac.com
http://www.jguru.com
http://www.javaranch.com
Bruce Eckel's Thinking in Java
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java -
What's wrong with my code for comparing date retreived from db and sysdate?
Hi all,
I need to retrive date from the DB and compare it to system date.i have posted the code below.i get java.sql.SQL Exception:Io exception:Socket closed.
What's wrong with the code?please help me.Thanks in advance.
public boolean date() throws IOException, SQLException {
Connection con1;
long millis = System.currentTimeMillis();
Timestamp timestamp = new java.sql.Timestamp(millis);
ResultSet rs4 = null;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection(
"jdbc:oracle:thin:@abc:1605:xyz",
"cdf", "cdf");
Statement stmt_exp = con.createStatement();
rs4 = stmt_exp.executeQuery("SELECT DATE FROM TABLE_NAME")
while (rs4.next()) {
Timestamp timestamp2 = rs4.getTimestamp("expire_date");
con1.close();
catch (Exception e)
e.printStackTrace();
finally
//ResultSet rs4 = null;
//Timestamp timestamp2;
Timestamp timestamp2 = rs4.getTimestamp("expire_date");
if (timestamp2.compareTo(timestamp) < 0) //sysdate < exp date
return true;
} else {
return false;
}Didn't you understand what BalusC said? You're closing the connection and then trying to use the ResultSet. The ResultSet will be closed when you close the connection so you can't use it anymore.
You should close the connection last thing in your code, probably in a finally. And after you close your ResultSet and Statement.
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
---------------------------------------------------------------- -
What's wrong with this code (in recursion there may be a problem )
// ELEMENTS OF TWO VECTORS ARE COMPARED HERE
// CHECK WHAT IS WRONG WITH THIS PGM
// there may be a problem in recursion
import java.util.*;
class Test
Vector phy,db;
public static void main(String adf[])
Vector pp1=new Vector();
Vector dp1=new Vector();
//adding elements to the vector
pp1.add("1");
pp1.add("a");
pp1.add("b");
pp1.add("h");
pp1.add("c");
dp1.add("q");
dp1.add("c");
dp1.add("h");
dp1.add("w");
dp1.add("t");
printVector(dp1);
printVector(pp1);
check2Vectors(pp1,dp1);
public static void printVector(Vector v1)
System.out.println("Vector size "+v1.size());
for(int i=0;i<v1.size();i++)
System.out.println(v1.get(i).toString());
public static void check2Vectors(Vector p,Vector d)
System.out.println("p.size() "+p.size()+" d.size() "+d.size());
printVector(p);
printVector(d);
for(int i=0;i<p.size();i++)
for(int j=0;j<d.size();j++)
System.out.println(" i= "+i+" j= "+j);
Object s1=p.elementAt(i);
Object s2=d.elementAt(j);
System.out.println("Checking "+s1+" and "+s2);
if(s1.equals(s2))
System.out.println("Equal and Removing "+s1+" and "+s2);
p.remove(i);
d.remove(j);
printVector(p);
printVector(d);
check2Vectors(p,d);
}//inner for
}//outer for
if(p.size()==0||d.size()==0)
System.out.println("Vector checking finished and both match");
else
System.out.println("Vector checking finished and both do not match");
}//method
}hi,
but the upper limit is changing everytime you call the function recursively
so there should not be any problem(i suppose)
my intension is to get the unmatched elements of the two vectors
suggest me changes and thanks in advancce
ashok
The problems comes from the fact that you remove
elements for a Vector while iterating in a loop where
the upper limit as been set to the initial size of the
Vector.
You should use so while loops with flexible stop
conditions that would work when the size of the Vector
changes.
Finally: why don't you use Vector.equals() ? -
What's wrong with this code (AS3)?
I want to publish a live stream and, when a button is pressed, publish the same stream for vod. I haven't been able to get an answer as to whether I can do this...my code is below. Can someone please tell me if I can do this, or what may be wrong with my code?
The live stream and playback works fine; but the recording doesn't start. Also, I want other objects on the client, such as the current camera and audio information, and the aspect ratio being used. I havent' been able to get these to show up (i.e., the incomingLbl and outgoingLbl do not show up).
Thank you,
Phillip A
My code:
package {
import flash.display.MovieClip;
import flash.net.NetConnection;
import flash.events.NetStatusEvent;
import flash.events.MouseEvent;
import flash.events.AsyncErrorEvent;
import flash.net.NetStream;
import flash.media.Video;
import flash.media.Camera;
import flash.media.Microphone;
import fl.controls.Button;
import fl.controls.Label;
import fl.controls.TextArea;
import fl.controls.CheckBox;
public class vodcast1 extends MovieClip {
private var nc:NetConnection;
private var nc2:NetConnection;
private var ns:NetStream;
private var ns2:NetStream;
private var nsPlayer:NetStream;
private var vid:Video;
private var vidPlayer:Video;
private var cam:Camera;
private var mic:Microphone;
private var camr:Camera;
private var micr:Microphone;
private var clearBtn:Button;
private var startRecordBtn:Button;
private var outgoingLbl:Label;
private var incomingLbl:Label;
private var myMetadata:Object;
private var outputWindow:TextArea;
private var cb1:CheckBox;
public function vodcast1(){
setupUI();
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.connect("rtmp://localhost/publishLive");
nc2 = new NetConnection();
nc2.connect("rtmp://localhost/vod/videos");
nc2.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus2);
private function startRecordHandler(event:MouseEvent):void {
publishRecordStream();
private function onNetStatus(event:NetStatusEvent):void {
trace(event.target + ": " + event.info.code);
switch (event.info.code)
case "NetConnection.Connect.Success":
trace("Congratulations! you're connected to live");
publishCamera();
displayPublishingVideo();
displayPlaybackVideo();
break;
case "NetStream.Publish.Start":
// NetStatus handler for Record stream
private function onNetStatus2(event:NetStatusEvent):void {
trace(event.target + ": " + event.info.code);
switch (event.info.code)
case "NetConnection.Connect.Success":
trace("Congratulations! you're connected to vod");
break;
case "NetConnection.Connect.Rejected":
case "NetConnection.Connect.Failed":
trace ("Oops! the connection was rejected");
break;
case "NetStream.Publish.Start":
sendMetadata();
break;
private function asyncErrorHandler(event:AsyncErrorEvent):void {
trace(event.text);
private function sendMetadata():void {
trace("sendMetaData() called")
myMetadata = new Object();
myMetadata.customProp = "Recording in progress";
ns.send("@setDataFrame", "onMetaData", myMetadata);
private function publishRecordStream():void {
camr = Camera.getCamera();
micr = Microphone.getMicrophone();
ns2 = new NetStream(nc2);
ns2.client = new Object();
ns2.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus2);
ns2.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns2.attachCamera(camr);
ns2.attachAudio(micr);
ns2.publish("vodstream", "record");
private function publishCamera():void {
cam = Camera.getCamera();
mic = Microphone.getMicrophone();
ns = new NetStream(nc);
ns.client = this;
ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns.attachCamera(cam);
ns.attachAudio(mic);
ns.publish("livestream", "live");
private function displayPublishingVideo():void {
vid = new Video(cam.width, cam.height);
vid.x = 10;
vid.y = 30;
vid.attachCamera(cam);
addChild(vid);
private function displayPlaybackVideo():void {
nsPlayer = new NetStream(nc);
nsPlayer.client = this;
nsPlayer.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nsPlayer.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
nsPlayer.play("livestream");
vidPlayer = new Video(cam.width, cam.height);
vidPlayer.x = cam.width + 100;
vidPlayer.y = 30;
vidPlayer.attachNetStream(nsPlayer);
addChild(vidPlayer);
private function setupUI():void {
outputWindow = new TextArea();
outputWindow.move(250, 175);
outputWindow.width = 200;
outputWindow.height = 50;
outgoingLbl = new Label();
incomingLbl = new Label();
outgoingLbl.width = 100;
incomingLbl.width = 100;
outgoingLbl.text = "Publishing Stream";
incomingLbl.text = "Playback Stream";
outgoingLbl.move(20, 200);
incomingLbl.move(300, 200);
outgoingLbl.condenseWhite = true;
incomingLbl.condenseWhite = true;
startRecordBtn = new Button();
startRecordBtn.width = 150;
startRecordBtn.move(250, 345);
startRecordBtn.label = "Start Recording";
startRecordBtn.addEventListener(MouseEvent.CLICK, startRecordHandler);
//cb1 = new CheckBox();
//cb1.label = "Record";
//cb1.move(135,300);
//cb1.addEventListener(MouseEvent.CLICK,publishRecordStream);
//clearBtn = new Button();
// clearBtn.width = 100;
// clearBtn.move(135,345);
// clearBtn.label = "Clear Metadata";
// clearBtn.addEventListener(MouseEvent.CLICK, clearHandler);
addChild(outgoingLbl);
addChild(incomingLbl);
// addChild(clearBtn);
addChild(startRecordBtn);
// addChild(cb1);
addChild(outputWindow);
public function onMetaData(info:Object):void {
outputWindow.appendText(info.customProp);use event.currentTarget (and you don't need to repeatedly define the same function):
var c:int;
var buttonName:String;
for (c = 1;c < 5;c++) {
buttonNum = "button"+c;
this[buttonNum].addEventListener(MouseEvent.MOUSE_DOWN, pressStepButton);
function pressStepButton(event:MouseEvent) { trace(event.currentTarget,event.currentTarget.name); } -
What's wrong with these code?
Hi, i made the below snippet of code for retriving data from a table in database. but it doesnt work property when i run the program. Could anyone tell me what's wrong with it? Thanx in advance.
//rs is object of type ResultSet
//url is one of the column names in a table
<% if(rs.getString("url")!= null){%>
<tr>
<td>URL </td>
<td>= { <%= rs.getString("url") %> },</td>
</tr>
<%}%>Without seeing the error message, one can only guess. Some JDBC drivers do not allow you to get a column more than once, so that may be your problem. Store the result of rs.getString("url") in a String variable in the first line, and use that variable in the table cell.
Maybe you are looking for
-
ITunes crashes after startup XP
What I'm seeing after a successful re-install and startup of iTunes 9.0.3 in the *Windows Event Viewer (Application)*. *Application Error –* Faulting application itunes.exe, version 9.0.3.15, faulting module quicktimeaudiosupport.qtx, version 7.9.0.0
-
Delete Button not appearing in cFolders
Hi All, The user is allowed to upload the document in the cFolders. In the screen where the list of files uploaded is displayed, there are buttons like 'Create', 'Copy' etc. But here there is no option to delete the uploaded file. Can any one suggest
-
Ciscoworks LMS 2.6 data collection has stopped
data collection stopped on the 13th of October after investigation the event logs are showing the following system errors
-
PLScript: Syntax Definition to Loop over a Table is missing
Hi, I miss the syntax definition in the SAP HANA Database - SQL Script Guide to loop sequentially over an table of CREATE TYPE <...> AS TABLE (...); For Ex: 1) Defineing a Table Type: CREATE TYPE SHPL.typ_sample13 AS TABLE ( CHANNEL_ID INTEGER , PROD
-
hi can anyone please tell me why some of my mp3 files will only part sync to my ipod. the songs play in full on itunes, but on both of my ipods they only sync part of the song. there is loads of room. ?????????