Applet leaves cmd prompt hanging afr exit under 1.3.1_02, ok under 1.2.2
Subject: Applet leaves cmd prompt hanging afr exit under 1.3.1_02, ok under 1.2.2
I am working with examples from a Java book. My applets leaving the command promt hanging after closing them by clicking the X in the upper left corner. I am running Windows NT 4.0, svc pack 6.
After the applet is ended the command window hangs and won't respond to ctrl-c. If I attempt to close the command window a message box appears saying the command window is unable to respond to the end request (busy or waiting) and gives me the option to wait / end / cancel.
This has happened with all the applet examples I have tried and some Sun JAI examples.
Here is an example from a Java primer:
import java.applet.Applet;
import java.awt.Graphics;
<applet code="AppletLifecycle" width=300 height=50>
</applet>
public class AppletLifecycle extends Applet {
String str = "";
public void init() {
str += "init; ";
public void start() {
str += "start; ";
public void stop() {
str += "stop; ";
public void destroy() {
System.out.println("destroy");
public void paint(Graphics g) {
g.drawString(str, 10, 25);
import java.applet.*;
import java.awt.*;
<applet code="FirstApplet" width=400 height=400>
</applet>
public class FirstApplet extends Applet {
public void paint(Graphics g) {
g.drawString("This is my first applet!", 20, 200);
After compling, from the command line I enter:
C:> appletviewer AppletLifecycle.java (or AppletLifecycle.htm)
The applet comes up correctly.
If I close the applet by clicking the X in the upper right corner
- the applet window goes blank
- "destroy" appears in the command window
- the command session is hung and will not respond to a ctrl-c to end the application
I either have to use task manager to kill the command session or click on the X in the upper right corner of the command window. Task manger says the command session is "not responding". Either way I get the message that the application cannot respond to the end task request (may be busy, waiting for a response, etc.) and the option to wait / end / cancel.
Under Java 1.2.2 after closing the applet the command session is "waiting" ("hung") until a ctrl-c is typed. Then the DOS promt returns and the command session is free.
This behavior is consistent with several of the applets in this text book.
I first encountered this problem when working with examples in the JAI (java advanced imaging) package from Sun. These samples run as applications and display an image. They work correctly but hang when I attempt to close them. I have tried the examples only under 1.3.1_02.
Can anyone help me figure this out?
Thanks
Bill
The book says that the destory method is is called when an applet is closed.
If the applet does not have a destroy method then the default destoy method
the the Applet class is called. Is that wrong or am I not understanding.The book and your understanding is correct. It's just that my experience has indicated that overriding the destroy method is not a good idea. The applet's stop method is called (by the appletviewer or a web browser) when it's ready to close or move onto another document, so any cleanup that you need to do should be done in the stop method. As far as browsers go, IE destroy the applet when you move to another document but Netscape 4+ only call the destroy method when the browser window is closed but there is no guarantee that NN4 will ever call the destroy method. That's the reason why I don't recommend overriding the destroy method -- but as long as you know what is in store for you, you can do anything you want.
BTW, I've compiled and tested the AppletLifecycle.java program on my JDK1.3.1 and it works with the appletviewer, IE5.5 and NN4.7. I have no trouble stoping the program from the MS-DOS window with a CTRL-C or click the little x on the upper right corner of the display. I do know that when I upgraded to 1.3.1_02, all my applets mysteriously stopped working so I went back to 1.3.1 -- maybe that's the reason why you're left hanging.
V.V.
Similar Messages
-
Idea Centre K410 boots to cmd prompt only
Hi, I'm trying to fix an IdeaCentre K410 with Windows 8 on it. The issue is when I power on the computer it does the following:
1. the "lenovo" logo comes up
2. the system beeps once as the logo disappears
3. the logo comes back after the beep
4. a circle of dots starts spinning under the logo
5. a blue (maybe bluish-green) box appears for a second or two (literally)
6. cmd.exe pops up
The command prompt starts out with X:\windows\system32>
The C: drive has been reformatted so windows is no longer installed on it. The X: drive (I'm guessing this is the recovery partition?) appears to be intact as the X: directory contains OneKey, Program Files, Program Files (x86), Users, Windows, and LRSBootTmp.log
I've moved into the OneKey\main directory and attempted to run LRSBoot.exe (assuming this is the Lenovo Recovery System) but it pops up an alert box with the title "Caution" and then says "First parameter format is not correct, as X:XX.vbs" I have absolutely no idea what that means. The only thing I can do at that point is click "OK" (the only option) or hit the red x; both of which take me back to command prompt.
I was also given the Lenovo Start Recovery Discs that came with the computer, but there is no option to boot from the cd/dvd drive. I've gone into the BIOS (the only other thing I can get into besides cmd prompt) and looked at the boot settings but the only options I get are Auto, UEFI Only, and Legacy Only. I've tried all three. I've also checked the "Secure Boot" status but it is disabled and I don't seem to even have the option to enable it (though everything I've read says to leave it disabled).
I've put the recovery disc and went through the various directories (in cmd prompt) trying several executables that looked like they might start the recovery program. I get told every time that, "The subsystem needed to support the image type is not present" or "This version of..." insert file/executable here "...is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher."
I'm at a loss what to do. I've never encountered a BIOS that didn't have a boot from cd/dvd option. Nor have I ever had a computer that only loads up exclusively in cmd prompt. Any help would be much appreciated. Thanks.
Solved!
Go to Solution.Ok so I solved it after several hours... Remind me never to buy a Lenovo computer or quite possibly Windows 8.
For anyone else experiencing the same type of issue here is what I ended up doing.
I pulled the hard drive from the Lenovo computer and hooked it up to my personal desktop. I then ran diskpart.exe in the Run window (Windows key + R, or should be at the bottom of the start bar). I used diskpart to delete every partition (including the "hidden" ones on the Lenovo hard drive; this included four partitions labeled "Recovery," one labeled "OEM," one labled "ETFS" (or something like that, I should have written it down), and the C: partition. Once I had a completely unpartitioned unformated drive I used diskmanagement to format the drive using NTFS. Disk management is found by right-clicking the My Computer or Computer icon and clicking on Manage: this pops up Computer Management and Disk Management should be one of the options in the left-hand pane.
Once this was done I shut down my computer, unplugged the power cable, disconnected the hard drive and then put it back into the Lenovo computer. At this point I went into the BIOS settings on the Lenovo computer and reset them to factory default, with a slight change to the boot priority (I made the DVD drive the top priority, not sure if this was necessary or not). I then inserted the Lenovo recovery disc 1, and allowed the computer to boot. Since it could no longer find any remnant of the previous Windows 8 installation it quit trying to boot from the hard drive, and instead booted from the CD.
Then I just had to wait (about 2 hours) for the whole recovery process to complete and pay attention to when it asked for the next recovery disc--which I don't think it actually used discs 4 or 5 but I put them in anyways just to have it immediately tell me to move on to the next disc. Disc 6 did finish the process however so no complaints. Once the discs were complete it started unloading files in several cmd prompt windows and seemed to be stuck for most of the 2 hours at this point. However, a few of the cmd prompt windows are minimized and if you maximize them you will see it is working you just need patience.
After it was all said and done I created the profile and checked for windows updates about 20 times (an exaggeration but not by much) and voila it now works. Windows 8 is back on the computer and everything is running fine. And to top it off I didn't have to call and deal with the Lenovo support.
That said I'm not sure this is the best approach and if I had realized how screwed up the computer was I probably wouldn't have offered to fix it. I don't recommend this approach unless you really feel comfortable in what you are doing or have nothing to lose. Anyways thought I would share as in most cases there are several other people with the same problem. -
Hi
Creating an application to analyze .dmp files - all working well except this odd issue
If I open command prompt and enter this command:-
kd -z C:\Windows\MiniDump\042414-24632-01.dmp -c "!analyze -v"
Then it works and shows me all the output I need (shown at bottom of post)
If I run same command in VB.net using following code - then it doesn't give the same output - the bits I need at the end created by the !analyze -v switch don't appear
Any ideas why it is not seeing the switch correctly - setting a breakpoint and checking contents of startinfo seems to be showing correct cmd line i.e. "kd -z C:\windows\minidump\042414-24632-01.dmp -c "!analyze –v;q""
Dim myprocess As New Process()
myprocess.StartInfo.FileName = "C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86\kd"
myprocess.StartInfo.Arguments = "-z C:\windows\minidump\042414-24632-01.dmp -c ""!analyze –v;q"""
myprocess.StartInfo.UseShellExecute = False
myprocess.StartInfo.RedirectStandardOutput = True
myprocess.StartInfo.CreateNoWindow = True
myprocess.Start()
TextBox1.AppendText(myprocess.StandardOutput.ReadToEnd())
Output when run from cmd prompt:-
C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86>kd -z C:\Windows\MiniDump\042414-24632-01.dmp -c "!analyze -v;q"
Microsoft (R) Windows Debugger Version 6.3.9600.17298 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Windows\MiniDump\042414-24632-01.dmp]
Mini Kernel Dump File: Only registers and stack trace are available
Symbol search path is: *** Invalid ***
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
Executable search path is:
* Symbols can not be loaded because symbol path is not initialized. *
* The Symbol Path can be set by: *
* using the _NT_SYMBOL_PATH environment variable. *
* using the -y <symbol_path> argument when starting the debugger. *
* using .sympath and .sympath+ *
Unable to load image \SystemRoot\system32\ntkrnlpa.exe, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ntkrnlpa.exe
*** ERROR: Module load completed but symbols could not be loaded for ntkrnlpa.exe
Windows 7 Kernel Version 7601 (Service Pack 1) MP (4 procs) Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 7601.18205.x86fre.win7sp1_gdr.130708-1532
Machine Name:
Kernel base = 0x82e3e000 PsLoadedModuleList = 0x82f874d0
Debug session time: Thu Apr 24 13:36:18.672 2014 (UTC + 1:00)
System Uptime: 0 days 0:00:38.703
* Symbols can not be loaded because symbol path is not initialized. *
* The Symbol Path can be set by: *
* using the _NT_SYMBOL_PATH environment variable. *
* using the -y <symbol_path> argument when starting the debugger. *
* using .sympath and .sympath+ *
Unable to load image \SystemRoot\system32\ntkrnlpa.exe, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ntkrnlpa.exe
*** ERROR: Module load completed but symbols could not be loaded for ntkrnlpa.exe
Loading Kernel Symbols
Loading User Symbols
Loading unloaded module list
************* Symbol Loading Error Summary **************
Module name Error
ntkrnlpa The system cannot find the file specified
You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the
command that caused symbols to be loaded.
You should also verify that your symbol search path (.sympath) is correct.
* Bugcheck Analysis *
Use !analyze -v to get detailed debugging information.
BugCheck 50, {afa99150, 0, 88c557d7, 0}
*** WARNING: Unable to verify timestamp for mssmbios.sys
*** ERROR: Module load completed but symbols could not be loaded for mssmbios.sys
*** WARNING: Unable to verify timestamp for mfehidk.sys
*** ERROR: Module load completed but symbols could not be loaded for mfehidk.sys
*** WARNING: Unable to verify timestamp for HipShieldK.sys
*** ERROR: Module load completed but symbols could not be loaded for HipShieldK.sys
***** Kernel symbols are WRONG. Please fix symbols to do analysis.
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
Probably caused by : mfehidk.sys ( mfehidk+377d7 )
Followup: MachineOwner
1: kd> kd: Reading initial command '!analyze -v;q'
* Bugcheck Analysis *
PAGE_FAULT_IN_NONPAGED_AREA (50)
Invalid system memory was referenced. This cannot be protected by try-except,
it must be protected by a Probe. Typically the address is just plain bad or it
is pointing at freed memory.
Arguments:
Arg1: afa99150, memory referenced.
Arg2: 00000000, value 0 = read operation, 1 = write operation.
Arg3: 88c557d7, If non-zero, the instruction address which referenced the bad memory
address.
Arg4: 00000000, (reserved)
Debugging Details:
***** Kernel symbols are WRONG. Please fix symbols to do analysis.
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
ADDITIONAL_DEBUG_TEXT:
You can run '.symfix; .reload' to try to fix the symbol path and load symbols.
MODULE_NAME: mfehidk
FAULTING_MODULE: 82e3e000 nt
DEBUG_FLR_IMAGE_TIMESTAMP: 4d2e1e3e
READ_ADDRESS: GetPointerFromAddress: unable to read from 00000000
GetPointerFromAddress: unable to read from 00000000
unable to get nt!MmSpecialPoolStart
unable to get nt!MmSpecialPoolEnd
unable to get nt!MmPagedPoolEnd
unable to get nt!MmNonPagedPoolStart
unable to get nt!MmSizeOfNonPagedPoolInBytes
afa99150
FAULTING_IP:
mfehidk+377d7
88c557d7 0fb70c06 movzx ecx,word ptr [esi+eax]
MM_INTERNAL_CODE: 0
CUSTOMER_CRASH_COUNT: 1
DEFAULT_BUCKET_ID: WIN7_DRIVER_FAULT
BUGCHECK_STR: 0x50
CURRENT_IRQL: 0
ANALYSIS_VERSION: 6.3.9600.17298 (debuggers(dbg).141024-1500) x86fre
LAST_CONTROL_TRANSFER: from 82e7eaa8 to 82ecb879
STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
ad0baf90 82e7eaa8 00000000 afa99150 00000000 nt+0x8d879
ad0bafa8 88c557d7 badb0d00 00000000 88c4ceb0 nt+0x40aa8
ad0bb040 88c4f97d 001a99b0 afa91000 00000000 mfehidk+0x377d7
ad0bb090 88c52b16 00770220 ad0bb0fc 00000010 mfehidk+0x3197d
ad0bb0bc 98d5fb73 ae770220 ad0bb0fc 00000010 mfehidk+0x34b16
ad0bb140 98d5fc43 ae738c30 98d6b62a aace7220 HipShieldK+0xb73
ad0bb168 98d6b882 ad0bb19c 00000000 98d77b44 HipShieldK+0xc43
ad0bb1b8 98d631a9 00000bd4 0000102c ad0bb208 HipShieldK+0xc882
ad0bb330 88c47795 00000bd4 0000102c ad0bb401 HipShieldK+0x41a9
ad0bb400 88c22b57 0000102c ad0bb460 85b3dee0 mfehidk+0x29795
ad0bb41c 88c232c6 ad0bb430 0000000c 8c4b6ce0 mfehidk+0x4b57
ad0bb43c 830a5acb adb6b9b8 0000102c ad0bb460 mfehidk+0x52c6
ad0bb4f4 830adaf8 adb16030 01b6b9b8 ad0bb550 nt+0x267acb
ad0bbc00 82e7b8c6 038ae710 038ae6ec 02000000 nt+0x26faf8
ad0bbc34 77a470f4 badb0d00 038ae3dc 00000000 nt+0x3d8c6
ad0bbc38 badb0d00 038ae3dc 00000000 00000000 0x77a470f4
ad0bbc3c 038ae3dc 00000000 00000000 00000000 0xbadb0d00
ad0bbc40 00000000 00000000 00000000 00000000 0x38ae3dc
STACK_COMMAND: kb
FOLLOWUP_IP:
mfehidk+377d7
88c557d7 0fb70c06 movzx ecx,word ptr [esi+eax]
SYMBOL_STACK_INDEX: 2
SYMBOL_NAME: mfehidk+377d7
FOLLOWUP_NAME: MachineOwner
IMAGE_NAME: mfehidk.sys
BUCKET_ID: WRONG_SYMBOLS
FAILURE_BUCKET_ID: WRONG_SYMBOLS
ANALYSIS_SOURCE: KM
FAILURE_ID_HASH_STRING: km:wrong_symbols
FAILURE_ID_HASH: {70b057e8-2462-896f-28e7-ac72d4d365f8}
Followup: MachineOwner
quit:
output when run in my app:-
Microsoft (R) Windows Debugger Version 6.3.9600.17298 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Windows\MiniDump\042414-24632-01.dmp]
Mini Kernel Dump File: Only registers and stack trace are available
Symbol search path is: *** Invalid ***
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
Executable search path is:
* Symbols can not be loaded because symbol path is not initialized. *
* The Symbol Path can be set by: *
* using the _NT_SYMBOL_PATH environment variable. *
* using the -y <symbol_path> argument when starting the debugger. *
* using .sympath and .sympath+ *
Unable to load image \SystemRoot\system32\ntkrnlpa.exe, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ntkrnlpa.exe
*** ERROR: Module load completed but symbols could not be loaded for ntkrnlpa.exe
Windows 7 Kernel Version 7601 (Service Pack 1) MP (4 procs) Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 7601.18205.x86fre.win7sp1_gdr.130708-1532
Machine Name:
Kernel base = 0x82e3e000 PsLoadedModuleList = 0x82f874d0
Debug session time: Thu Apr 24 13:36:18.672 2014 (UTC + 1:00)
System Uptime: 0 days 0:00:38.703
* Symbols can not be loaded because symbol path is not initialized. *
* The Symbol Path can be set by: *
* using the _NT_SYMBOL_PATH environment variable. *
* using the -y <symbol_path> argument when starting the debugger. *
* using .sympath and .sympath+ *
Unable to load image \SystemRoot\system32\ntkrnlpa.exe, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ntkrnlpa.exe
*** ERROR: Module load completed but symbols could not be loaded for ntkrnlpa.exe
Loading Kernel Symbols
Loading User Symbols
Loading unloaded module list
************* Symbol Loading Error Summary **************
Module name Error
ntkrnlpa The system cannot find the file specified
You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the
command that caused symbols to be loaded.
You should also verify that your symbol search path (.sympath) is correct.
* Bugcheck Analysis *
Use !analyze -v to get detailed debugging information.
BugCheck 50, {afa99150, 0, 88c557d7, 0}
*** WARNING: Unable to verify timestamp for mssmbios.sys
*** ERROR: Module load completed but symbols could not be loaded for mssmbios.sys
*** WARNING: Unable to verify timestamp for mfehidk.sys
*** ERROR: Module load completed but symbols could not be loaded for mfehidk.sys
*** WARNING: Unable to verify timestamp for HipShieldK.sys
*** ERROR: Module load completed but symbols could not be loaded for HipShieldK.sys
***** Kernel symbols are WRONG. Please fix symbols to do analysis.
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
*** Either you specified an unqualified symbol, or your debugger ***
*** doesn't have full symbol information. Unqualified symbol ***
*** resolution is turned off by default. Please either specify a ***
*** fully qualified symbol module!symbolname, or enable resolution ***
*** of unqualified symbols by typing ".symopt- 100". Note that ***
*** enabling unqualified symbol resolution with network symbol ***
*** server shares in the symbol path may cause the debugger to ***
*** appear to hang for long periods of time when an incorrect ***
*** symbol name is typed or the network symbol server is down. ***
*** For some commands to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** Type referenced: nt!_KPRCB ***
Probably caused by : mfehidk.sys ( mfehidk+377d7 )
Followup: MachineOwner
Darren RoseTry it by opening the Cmd prompt as the actual process and passing the Filename and its arguments as the arguments of the Cmd process. If you notice there is a "-C" before the Filename and Arguments in this example. The "-C"
tells the cmd to execute the commands and then close itself. You can also use a "-K" which tells the cmd to execute the commands and keep itself open. Being you are not showing the cmd window you don`t want to keep it opened because the
user can`t close it so, that is why i used "-C".
I don`t have the program so, you can just experiment to see what it does. Maybe you should try using "-K" and show the cmd window by commenting out the CreateNoWindow line so you can see what is in the cmd window while testing.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim filepath As String = """C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86\kd"""
Dim args As String = " -z C:\windows\minidump\042414-24632-01.dmp -c ""!analyze –v;q"""
Dim p As New Process
With p.StartInfo
.FileName = "cmd.exe"
.Arguments = "-c " & filepath & args
.UseShellExecute = False
.CreateNoWindow = True
.RedirectStandardOutput = True
End With
p.Start()
TextBox1.Text = p.StandardOutput.ReadToEnd
End Sub
If you say it can`t be done then i`ll try it -
Hi Everyone,
I'm having trouble with the java virtual machine or maybe some class may be causing this too. Windows and everything else completely hangs once I exit from my program.
This just happens with some programs. I have been working on a project for a couply of weeks now, and there was absolutely nothing wrong. Then today the program starts to hang on exit. I have seen this happen with other programs as well, even demos i have downloaded from java.sun.com
Like I said, the programs works fine, just when you exit your stuck.
I have tried both exit methods which have worked fine in the past:
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
as well as:
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
I believe I set up the exit properly, since it has been working for the last couple of weeks and in all my other projects.
I can't seem to isolate what change to the program caused this. I thought it might just be an increase in size of the program, but even small demos from java.sun.com crash on exit.
If anybody has any ideas why this is happening can you please help me, i would really appreciate it.
I should mention I run Windows XP, and I have j2dsk1.4.1
Thanks in advance for any reply's.
Arie TrouwI have also experienced this problem. The "easiest" way to reproduce it is to get JHotDraw 5.3 and just run up the sample app on Windows XP. Windows XP will hang when you attempt to exit the application(making it difficult to work out exactly what caused the hang). Running under a debugger (Eclipse) the hang is on System.exit, not the window.dispose or anything earlier. I can confirm that this is a problem with
1.4.1-b21 and with
1.4.1_01-b01 (the most recently available download).
I can also confirm that this is not a problem with the 1.3.1_04 or 07 releases.
Using the -Dsun.java2d.noddraw=true flag gets rid of the problem for me on 1.4.1_01-b01 (thank you jbisotti). -
Rman hangs at exit if locally connected
hiho,
i've a nasty problem. if i connect rman locally 'rman nocatalog target /' it will
hang at exit.
i tried to connect at rman-prompt with the same result.
im using 8.1.6.1.0 on linux.
# su - oracle
[oracle]$ rman nocatalog
Recovery Manager: Release 8.1.6.1.0 - Production
RMAN> connect target;
RMAN-06005: connected to target database: ACCSRV02 (DBID=1987850870)
RMAN-06009: using target database controlfile instead of recovery catalog
RMAN> exit
Recovery Manager complete.
rman hangs
can anyone confirm this? workaround? any
hints?
thanks for your time,
ciao -ap
nullHi!
I got same results on linux RH6.2 with 8.1.6.1.0, with 8.1.7 work fine ;)
You're right!
A10! -
I want to show console output in my cmd prompt in C# winform application
Hi,
I'm launching the some process in C# .net Winform appliaction. But i couldn't able to see console output on the screen. The process is getting launched but inside cmd prompt window, it is showing nothing. I would like to show something on cmd prompt. Please
help on this.
using (Process comxdcProcess = new System.Diagnostics.Process())
comxdcProcess.StartInfo.FileName = fileName;
comxdcProcess.StartInfo.Arguments = args;
comxdcProcess.StartInfo.RedirectStandardError = true;
comxdcProcess.StartInfo.RedirectStandardOutput = true;
comxdcProcess.StartInfo.UseShellExecute = false;
comxdcProcess.Start();
this.errorComment = comxdcProcess.StandardError.ReadToEnd();
StreamReader myStreamReader = comxdcProcess.StandardOutput;
//// Read the standard output of the spawned process.
this.errorComment = myStreamReader.ReadToEnd();
comxdcProcess.WaitForExit();
click "Proposed As Answer by" if this post solves your problem or "Vote As Helpful" if a post has been useful to you Happy Programming! Hari@Hariprasadbrk
Do you mean you have use process class to start "cmd prompt" And want to display some output in it?
If so, there is no need to use RedirectStandardOutput property. This property means the output of an application is written to the
Process.StandardOutput stream.
// Setup the process with the ProcessStartInfo class.
ProcessStartInfo start = new ProcessStartInfo();
start.FileName = @"C:\7za.exe"; // Specify exe name not cmd exe.
start.UseShellExecute = false;
start.RedirectStandardOutput = true;
// Start the process.
using (Process process = Process.Start(start))
// Read in all the text from the process with the StreamReader.
using (StreamReader reader = process.StandardOutput)
string result = reader.ReadToEnd();
Console.Write(result);
Output
This section shows the output of the process.
7-Zip (A) 4.60 beta Copyright (c) 1999-2008 Igor Pavlov 2008-08-19
Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
So you can start a cmd exe.
Please also take a look at the article from codeproject
How to redirect Standard Input/Output of an application
In summary, the shutdown proces is invoked from my application, and it displays the output from the process in RichTextBox control.
Have a nice day!
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Operating system corrupted, wont boot. Any way to get admin rights in cmd prompt?
My operating system has gotten totally corrupted and no longer boots. I get a recovery screen that tells me my registry is corrupted. File: \Windows\system32\config\system, Error code 0xc000014c. I have no recovery media (my computer, a refurb, did not com with any) I want to wipe the hard drive totally clean and do a fresh clean install. I can get to the command prompt through the system recovery by hitting esc at boot up but it wont allow me to reformat the hard drive because of write protections. I tried turning off the write protections at the cmd prompt level but it fails because I cant access it with admin rights. The only way I have found to turn on admin rights for the cmd prompt in online searches is to do it from inside the win8 operating system. Obviously I cannot do that as the OS is too corrupted to be run. Is there any command I can use at the dos prompt that will turn on admin rights? Or better yet just some way to force a total reformat?
Thanks!Are you following this? No need for command prompt. Just choose Recovery Manager.
Windows 8 Recovery:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03489643&tmp_task=solveCategory&cc=us&dlc=en&lc...
******Clicking the Thumbs-Up button is a way to say -Thanks!.******
**Click Accept as Solution on a Reply that solves your issue to help others** -
How to delete a whole line in cmd prompt in Linux
Hi all,
How to delete a whole line in cmd prompt in Linux using short key?
ex: [oracle@host1 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/
Thanksyes ctrl+ak or ctrl+eu both are better. if you look from that perspective, go end and delete will be the same job too. (ctrl+eu) (but for me in such a command line, for example cding in to the directories ,the cursor will be at the end of the line %99 of the time :) )
about ctrl-t,
Drag the character before the cursor forward over the character at the cursor, moving the cursor forward as well. If the insertion point is at the end of the line, then this transposes the last two characters of the line.
for ex:
misspelled command date -> daet -> ctrl+t -> date
or
misspelled command $APPPL_TO -> place the cursor on third P press ctrl+t repeateadly till the P will come to the end -> APPL_TOP -
Wlst.cmd file couldnt run from the cmd prompt
Hi friends,
when i tried to run the wlst.cmd file in a windows cmd prompt, it is not running as it is saying like
the system cannot find the path specified
I tried like the below
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\NEW8\instances\instance4\bifoundation\OracleBIApplication\coreapplication\set
up>CD \
C:\>SET MW_HOME=C:\NEW8
C:\>CD NEW8
C:\NEW8>CD oracle_common
C:\NEW8\oracle_common>CD common
C:\NEW8\oracle_common\common>CD bin
C:\NEW8\oracle_common\common\bin>wlst.cmd
The system cannot find the path specified.
C:\NEW8\oracle_common\common\bin>Eventhough, i tried to run it in the bi_init.cmd prompt, then too it is not running.
Can anyone tell me in which cmd prompt i need to run that wlst.cmd file for upgrading the fusion m/w shared components.
Brgds,
MiniHi Devarasu,
Thanks for your reply. But now also it doesnt seems to run. Since like you said, i set
ORACLE_HOME = C:\NEW8\Oracle_BI1And tried to run the wlst.cmd file in the cmd prompt like the below, but then too it is returning the same error like
D:\New8\oracle_common\common\bin\wlst.cmd
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>cd..
C:\Documents and Settings>cd..
C:\>\NEW8\oracle_common\common\bin\wlst.cmd
The system cannot find the path specified.
C:\>Also i tried to run the wlst.cmd file which is in the following location like
D:\New8\wlserver_10.3\common\bin\wlst.cmd
CLASSPATH=C:\NEW8\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic
_patch.jar;C:\NEW8\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic
_patch.jar;C:\NEW8\JROCKI~1.0-1\lib\tools.jar;C:\NEW8\WLSERV~1.3\server\lib\webl
ogic_sp.jar;C:\NEW8\WLSERV~1.3\server\lib\weblogic.jar;C:\NEW8\modules\features\
weblogic.server.modules_10.3.6.0.jar;C:\NEW8\WLSERV~1.3\server\lib\webservices.j
ar;C:\NEW8\modules\ORGAPA~1.1/lib/ant-all.jar;C:\NEW8\modules\NETSFA~1.0_1/lib/a
nt-contrib.jar;;C:\NEW8\utils\config\10.3\config-launch.jar;C:\NEW8\WLSERV~1.3\c
ommon\derby\lib\derbynet.jar;C:\NEW8\WLSERV~1.3\common\derby\lib\derbyclient.jar
;C:\NEW8\WLSERV~1.3\common\derby\lib\derbytools.jar;;
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> upgradeJRF('C:\NEW8\instances\instance4\bifoundation')
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: upgradeJRF
wls:/offline>But it is returning the error like Traceback (innermost last).
What might be the problem here, Deva. Can you help me to get rid of this issue.
Brgds,
Mini -
How to execute a Scenario from Windows CMD prompt
Please can you let me know how to execute the Scenario from a Windows CMD prompt? I am not sure if it is any different from "ODIStartScen" command that ODI uses to execute the scenario.
Appreciate your help.
Regards
BHi SH,
I tried running the scenario from the command line, but the process was not completed and it came back with the below message
Session : 131774001 finished with return code : 7000
Do I need to set up any environmental variables or any other setups before I can run the scenario from the command line?
Appreciate your help.
Regards
B -
Has anyone else experienced a recent phenomenon where DW CS3 Hangs on exiting with Vista. This is new and started without any new extensions, but possibly after some windows updates. I'm running Vista Home Premium x64 with UAC off, and the error is:
The program Dreamweaver.exe version 9.0.0.3481 stopped interacting with Windows and was closed.
The Event ID is 1002 with a Task Category of 101.
Everything works fine except when I am done working and try to close the program.Yes, it's starting happening for me 'recently'. It started happening on my laptop running Vista.
I've moved from XP to Windows 7 Ultimate on my desktop and it now happens there as well.
This week, I moved from Vista to Windows 7 Home Premium (fresh install) on my laptop and it is still happening.
I have found that if you open Dreamweaver and immediately close it without opening any files then it is ok, but if you open any file, close it, then close Dreamweaver then it just hangs. If you click the Windows close icon a few times then you get the 'look for solution', 'wait' or 'close immediately' options. If you view the crash details it says:
Description:
A problem caused this program to stop interacting with Windows.
Problem signature:
Problem Event Name: AppHangB1
Application Name: Dreamweaver.exe
Application Version: 9.0.0.3481
Application Timestamp: 4600622f
Hang Signature: 1e91
Hang Type: 0
OS Version: 6.1.7600.2.0.0.768.3
Locale ID: 2057 -
Premiere Elements 8 hang on exit - fixed
All,
As I posted earlier here: http://forums.adobe.com/message/2435573#2435573 The "hang-on-exit" bug is now fixed in our latest beta drivers version 195.81. You can find those drivers here:
http://www.nvidia.com/Download/Find.aspx?lang=en-us
As a bonus, these drivers also fix a few issues with GPU accelerated Flash rendering, and fully support the Flash 10.1 beta 2 release, in case you are interested.
Regards,
BartholdBarthold,
Thank you for posting and nVidia for the work on these issues.
Appreciated,
Hunt -
Unable to connect to sybase in Oracle Golden Gate using GGSCI cmd prompt
Hi All,
I am trying to connect to sybase using golden gate cmd prompt GGSCI, but i am getting below error
Command - dblogin sourcedb master userid sa
master is the dbname (Default available in sybase)
sa - user
ERROR: Cannot connect to database master at server BL1DDG1W4BS.
Client Library error: severity(0) number (44) origin(1) layer(4).
ct_connect(): protocol specific layer: external error: The attempt to connect to
the server failed.
Sybase Version - 15.0
Oracle Golden Gate version - Oracle Golden Gate for Non Oracle Database Release 10.4 for sybase 15.0.
Please if any one can help me out.
Thanks In Advance.
Regards,
Prachithe command is
dblogin sourcedb <DNS_NAME> etc...
DNS_NAME is the name of the ODBC connection to your sybase server. -
Single instance cmd prompt for multiple wshshell.run
Hi,
I need to have only one command prompt open for two wshshell. run command
for eg
wshShell.Run "cmd.exe /C cd D:\"wshShell.Run "cmd.exe /C cd C:\"both the command should display in single command prompt window
Need to execute some 100 commands in a single cmd prompt like this
The CD commands were obviously just example commands
not the commands you really want to run. Even if these
commands were able to successfully change the current
directory in some other context than the command prompt
window, that context could only entertain one current
directory at any given time.
If you want to run a sequence of commands synchronously
(one after the other) in the command prompt window, you
could do as Forest suggested for a short sequence:
wshShell.Run "cmd.exe /c cd D:\ & dir & cd E:\ & dir"
or you could put the commands in a batch file:
wshShell.Run "cmd.exe /c mybatch.cmd"
or just:
wshShell.Run "mybatch.cmd"
You would, of course, need to ensure that the location
of the batch file was properly specified or deduceable.
If you want to run a sequence of commands asynchronously
(all at the same time), well, that is not how the command
prompt window itself works. You would need to launch
separate processes, each doing whatever task is assigned
it. If these are batch files, each will run in its own
command prompt window; if these are vsbcript files, you
could run them with wscript.
Or, if you were to switch to powershell, you could run
them as separate powershell jobs.
Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate. -
Mail and Safari hang on exit after recover from disk crash
Hi,
I had recently a disk crash on my powerbook. Fortunately the disk gave me enough time to save a disk image of my home folder before it died. Now, I have a new disk in, reinstalled Tiger, updated to 10.4.4. (as I had on the dead disk), copied the home folder from the backup, and fortunately most things work fine.
I had a system CRASH, while doing the first Spotlight search. I had a second system CRASH, while working in mail. So, I cleared the mail cache. After that, I had no crash anymore and even mail is working fine, until I decide to quit. It then hangs and I have to Force Quit to exit. Similar things happens to Safari.
I tried several things, e.g. removed the Envelope Index, but it always hangs on exit.
Any ideas what is going on? I wouldn't like to clear mails totally and reimport and reconfigure the whole thing from scratch.
Any help is welcome,
ThomasJust in case somebody else runs into such a problem, here is the solution to my puzzle:
For security reasons (I have a Powerbook and I was worrying about private data in case of a theft...) my mailboxes and any sensitive information is kept on a FileVault disk image of an account I'm usually not using. Instead the FileVault encrypted disk image is mounted in my home folder. To have Mail use the different location I've put symbolic links (ln -s from the terminal).
Now the problem was, that after my disk crash, some of the directories had been lost, so the links pointed to nowhere. I've got aware on this by looking on the Finder's info on that link. The "More info..." was busy all the time. This means that symbolic links (not aliases!) that point to nowhere are not correctly handled by the Finder and probably by other applications).
Creating the folders the links pointed to solved the problem!
Nice to know!
Thomas
Maybe you are looking for
-
Some albums are not alphabetical order
so i added a album that begins with a P and S to ipod but it is placed with the Rs. But on my itunes it is sorted correctly is anyone else having this issue or had this issue before
-
Hi I am creating budget in KO22. Transaction currency is INR and controlling currency is USD. So current budget is getting translated as per rate on the first day of the period. eg for 2007 its taking 01/01/2007 rate. Up to this its correct. But when
-
Unhanded Exception upon printing
Hi Good Day! I created a Statement of Account Report and upon printing it always show, Kindly see my attached image. My parameter for this report is Sales Person,Business Partner and Date range the related module is AR,AR Credit Memo,Journal Entry an
-
Edge Animate and Windows Vista?
Having tried to install and use Edge Animate I have had no success at all. The programme does not work with this operating system, and I would like a fix for this, as I want to use the programme. I am dissapointed as having just joined the Creative C
-
Can't save Word documents after OS update
I downloaded the most recent OS update today (2-2-12) and now I can't save any MS Word or Excel files. I also lose the ability to close these programs when I try to save, requiring a force quit of the program.