close

Does anyone experiencing freezing during iPhone app launching or closing?

App freezes, and the device freezes sometime during launching or closing. This happens especially to the app developed and installed using Xcode. Can anyone explain what's going on, if it's iOS 4 Gold Beta specific issue, or a generic task must be handled by a developer? ...

Fancybox Auto Close, but remain user control

Hi, i've searched through the forum yet i can't find the solution. i'm refering to this thread to do the auto close function: http://groups.google.com/group/fancybox/browse_thread/thread/d09438b7... I did follow JFK's solution which works just right: 'onComplete': function() { $("#fancybox-wrap, #fancybox-overlay").delay(3000).f...

Why does handling cancel closing make my .NET application crash?

I used the answer from this thread: http://stackoverflow.com/questions/474679/capture-console-exit-c Whenever I close the console, I get a "--- has stopped working." from Windows 7. Any idea? ...

NSWindow display alert when attempt to close

How can I display an NSAlert when an NSWindow attempts to close. This will also have to be turned on and off. ...

java swing program not closing after dispose is called on last window

Preface: This is the first real swing program I have done. I have a swing program, where one JButton is supposed to exit the program. That button triggers this.dispose();. When i click this JButton, it does make the window completely go away, but looking at the debugger, the program itself is still running. My main method only consists...

How to distinguish Unload Event triggered by Refresh or Window Close?

Unload Event can be triggered both by Refresh action and Window Close action. is there a way to distinguish which action that actually trigger it? In my situation, i want to ignore the Refresh action. Could you please give me some insight what the work around is? I noticed that there is already this sort of question asked, but it seems ...

sqlite3 with iPhone multitasking - Do I need to properly close database?

I keep my database open for the life of the app and close it on termination. Now with iOS 4.0 multitasking, when going to the background, my app saves data but doesn't close the database. I believe this means that my app will always eventually get purged from memory without ever properly closing the database (or finalizing statements)....

Jquery Close Dialog Box

I am wanting to add a close button to this dialog box. Can anyone tell me how to add this into my script? var IE = (navigator.userAgent.indexOf("MSIE")>=0) ? true : false; if(IE){ $(function(){ $("<div>") .css({ 'position': 'absolute', 'top': '0px', 'left': '0px', backgroun...

how to disable gps lookup in android again

How am i able to Stop GPS from receiving new signals? was searching for it, just use: if u initialize a LocationsManager Object mLocationManager_ = (LocationManager) mContext_.getSystemService(Context.LOCATION_SERVICE); add an location listener, GPS is starting to a GPS-Lock, mLocationListener_ = new MyLocationListener(mContext_); ...

jetpack/xpcom async input stream: detect close

I write a small Jetpack extension that starts a server using Cc["@mozilla.org/network/server-socket;1"]. I read from a connected client asynchronously using: conn.istream.asyncWait(conn, 0, 0, null); The documentation says that the callback is invoked when data arrives AND when the stream is closed: https://developer.mozilla.org/en/XPCO...

how to count opened newwindows?

Hi everyone, I want to count the number of opened new windows. But, when i close the opened newWindow ,then reduce the window count. My new window have closelink also. May be i choose either closelink or browser close window. Update If i have open 2 new window, then i calculate currently opened window. But, if any window i close...

Java Swing: Process won't close after adding mouse listener

I want to know what the issue is when I try to close my Java Swing application when I add a listener to the form frameview. Here's how to produce my problem: In Netbeans, create a new Swing application project, then in the main class, create a local method that adds an empty mouse listener to the main window via this.getMainFrame().addMo...

How to detect the window(new tab) close event?

Hi, I have one parent page and child page. the child page opened in new tab I want to show one alert message (The child page is closing), when i close the child tab. How to show the closing messgae, when close the tab? (Not refreshing time) I used onunload, and onbeforeunload. Two methods are also called, when the page refresh an...

How to disconnect a bluetooth connection (HTC Desire)

Hello everyone, I need to connect my android to a bluetooth device. I use the BluetoothChat sample from Google. I had some trouble to do this with a Google Nexus one, because the Nexus was making the connection but disconnects right after. I need to initiate twice time the connection as workaround (see connectionLost()). Now, it works...

Show message when close program in Qt/C++

Qt - c++ Show message when user close program Thanks ...

Qt hide minimize, maximize and close buttons

Do you know how to hide minimize, maximize and close buttons of title bar in Qt. i did it before in some other project but i could not find it now. could u help me? especially i need to hide it on QMainWindow ...

Process closing

Hello, can I use Popen from python subprocess to close started process? For example, from popen I run some application. In some part of my code I have to close that ran app. For example, from console in Linux I do: ./some_bin ... It works and logs stdout here ... Ctrl + C and it breaks I need something like Ctrl + C but in my program ...

Is it possible to close prettyphoto modal inside iframe?

I'm using prettyphoto jquery plugin for lightbox. When somebody clicks on a link it opens a lightbox iframe. Inside the iframe there is button that should close the lightbox. in documentation there is a code: $.prettyPhoto.close(); But don't how to use it properly. So I ask how to close a lightbox inside iframe. ...

C++ header file variable scope issue

Hi, I've got 3 files that relate to this problem. file.h, file.C and user.C. file.h has a private member, fstream logs. In file.C's constructor it opens logs. It doesn't do this in the constructor, but the constructor calls a function OpenLog(). file.h also has an inline close function: CloseLog() {if (logs) logs.close();} The f...

Closing a java.util.Iterator

Hi all, I've implemented a custom java.util.Iterator using a resource that sould be released at the end using a close() method. That resource could be a java.sql.ResultSet, a java.io.InputStream etc... public interface CloseableIterator<T> extends Iterator<T> { public void close(); } Some external libraries using this iterator...