Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Unhandled exception

05 Sep 2012   #31
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Sailing Nut,
Although for my own system, I'd make some changes,but I see nothing that I can directly attribute to your problem in the files you submitted.

Please run the attached scripts and attach the results.
# **********************INSTRUCTIONS**************************
# STEP 1 ** RUN POWERSHELL AS ADMINISTRATOR ******************
# ************************************************************
#
# WIN key | type POWERSHELL | do NOT hit ENTER |
# in the PROGRAMS list, right-click on WINDOWS POWERSHELL |
# choose "Run as administrator" |
# Click on the YES button (if such appears)
#
# WIN key = key with Microsoft log on top
#
# for the guru:
# WIN | type POWERSHELL | CTRL+SHIFT+ENTER key combo | ALT+Y keycombo
# ************************************************************
# STEP 2 ** COPY AND PASTE ***********************************
# ************************************************************
#
# COPY the script using CTRL+C,
# COPY every line of script down thru both EXIT statements
#
# PASTE into Powershell
#----Right-Click at the PowerShell Prompt
#----(Ctrl+V does not work)
#
# Start copying with first script line without a # at start of the line
# Note: Actually, you can paste the entire file if you rather
#-------Lines starting with a # are ignored by PowerShell
# ************************************************************
# STEP 3 ** SCRIPT OUTPUT & SCRIPT PURPOSE *******************
# ************************************************************
# --The script output and purpose is given at the very front of the script
#
# --The script output and purpose is given at the very front of the script
#
# ************************************************************
# ***************** NOTE - POWERSHELL VERSION*****************
# if you receive this error msg:
#--The system can not find the path specified
# you may need to update your PowerShell
# you must be using Powershell 2.0 or later.
#
# To determine your Powershell version:
#---Run PowerShell
#---enter $host.version
#---you should see at least:
# Major Minor Build Revision
# ----- ----- ----- --------
# 2......0......-1.....-1
#
# If you do not see the above, update your Vista/Win 7.
# ************************************************************
# *************** NOTE - EXECUTION POLICY*********************
# If you haven't set the execution policy, you may need to:
#---Run PowerShell
#---enter SET-EXECUTIONPOLICY -EXECUTIONPOLICY REMOTESIGNED
# ************************************************************

Script:
# *****************************************
# ################# Motherboard ###########
# Places Motherboard.txt on the desktop
# Contains manufacturer and product type
# *****************************************

# Create management object
$mobo    gwmi win32_BaseBoard
# Create hash table
$Hash = @{
  
"MOTHERBOARD"   "*" 40
  
"Manufacturer"  $mobo.manufacturer
  
"Product Type"  $mobo.product
  
}
#create psobject,specify properties with the hash table, use SELECT to specify order
$obj = new-object -type psobject -property $hash SELECT MOTHERBOARDmanufacturer,"Product Type" FL

$obj 
$env:userprofile\desktop\Motherboard.txt

EXIT
EXIT 
Script:
# *****************************************************************
# ######################## BIOS ###################################
# Places BIOS.txt on the desktop
# Contains info about your bios
# *****************************************************************
# create a management object containing bios info
$bios gwmi win32_bios
# create a PSCustomObject
$obj "" select BIOSManufacturerNameVersion"Release Date""Serial Number"
# populate the object
$obj.BIOS            "*" 40
$obj
.Manufacturer    $bios.manufacturer
$obj
.Name            $bios.name
$obj
.Version         $bios.smbiosbiosversion
$obj
."Release Date"  $bios.converttodatetime($bios.releasedate).tostring("d")
$obj."Serial Number" $bios.serialnumber

$obj 
$env:userprofile\desktop\bios.txt

EXIT
EXIT 

Script:
# ************************************************************
# #### COMPUTER INFO SUMMARY #################################
# Places ComputerInfo.txt on the desktop
# ************************************************************
# Create empty array to hold results
$arr = @()

# Create management objects with computer info
$CS      gwmi Win32_ComputerSystem   
$CSprod  
gwmi Win32_ComputerSystemProduct 
$Build   
gwmi Win32_WMISetting
$bootcfg 
gwmi Win32_BootConfiguration 
$mem     
gwmi win32_PhysicalMemoryArray 
 
# create a Hash array, ie, array of name-value pairs
$hash = @{
  
"COMPUTER INFO"     "*" 40
  
"Manufacturer"      $cs.manufacturer
  
"Model"             $cs.Model
  
"Version"           $csprod.version
  
"Primary Owner"     $cs.primaryownername
  
"User Name"         $cs.username
  
"Architecture Type" $cs.systemtype
  
"Total Memory"      "{0:n2} GB" -($mem.maxcapacity/1MB)
  
"Build Version"     $build.buildversion
  
"Boot Directory"    $bootcfg.bootdirectory
  
# end of hash array

# create a PowerShell object and use the hash table to specify the properties
# use a select command to specify the order
$obj = New-object -type PSobject -Property $hash |
SELECT "COMPUTER INFO"ManufacturerModel"Architecture Type","Primary Owner""User Name""Total Memory"Version"Build Version""Boot Directory"

# Add object to array
$arr += $obj

$Arr 
$env:userprofile\desktop\computerinfo.txt

EXIT
EXIT 

Script:
# ************************************************
# Collects information about your operating system
# Places OSinfo.txt on the desktop
# ************************************************

# Create an empty array to hold objects
$arr = @()

# ######### OS ############################
$os gwmi win32_operatingsystem
# $e = current element in the following foreach loop
foreach ($e in $OS) { 
# Create and populate a hash table for os info
$hash = @{
  
"OPERATING SYSTEM" "*" 40
  
"OS Version"        $e.caption
  
"Service Pack"      $e.csdversion
  
"Installed"         = ($e.converttodatetime($e.installdate)).tostring("d")
  
"Last Bootup"       = ($e.converttodatetime($e.lastbootuptime))
  
"Local Date-Time"   = ($e.converttodatetime($e.localdatetime))
  
"Number of Users"   $e.numberofusers
  
"OS Architecture"   $e.osarchitecture
  
"Registered User"   $e.registereduser
  
"Product ID"        $e.serialnumber
  
"Service Pack Version" = [string]$e.servicepackmajorversion "." + [string]$e.servicepackminorversion
  
"System Drive"      $e.systemdrive
  
"Windows Directory" $e.windowsdirectory
  
# end of hash array

# create object using hash array
$obj = new-object -type psobject -property $hash |
Select "Operating System""OS Version""Service Pack"Installed"Last Bootup""Local Date-Time""Number of Users""OS Architecture", `
"Registered User", "Product ID","service pack version", "System Drive", "Windows Directory"
# add to result array
$arr += $obj
} # end of foreach loop

$arr > $env:userprofile\desktop\OSinfo.txt


EXIT
EXIT 



My System SpecsSystem Spec
.
05 Sep 2012   #32
SailingNut

Windows 7 Ultimate x64
 
 

Bad news, it did it again. THe behavior "MAY" be different. I did not see the exception dialog this time, but I was looking at my 2nd monitor at the time. However the rest of it was the same. Screens go blank, look and there is HDD activity then the power goes out. Power back on and no prompt that Windows did not shut down properly. Just a guess but the fact that I am on an SSD now may mean that there is a much smaller time window that the dialog displays.


The files created by the scripts are attached.


Thanks again and again and again!


Attached Files
File Type: txt computerinfo.txt (706 Bytes, 6 views)
File Type: txt Motherboard.txt (240 Bytes, 6 views)
File Type: txt bios.txt (438 Bytes, 4 views)
File Type: txt OSinfo.txt (1,006 Bytes, 3 views)
My System SpecsSystem Spec
05 Sep 2012   #33
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Sailing Nut,
Don't know why I took so long to notice this.

You are looking at needing to apply about 100 updates.

Cut no corners on me. I've a script that will indicate what is installed/not installed.

UPDATING YOUR WIN 7
1. ASSURE THAT YOU RECEIVE ALL UPDATES
WIN | type WINDOWS UPDATE | ENTER |
Change settings (left-hand column) |
checkmark all four of the boxes | OK
button

Approve any dialog boxes presented. Let Windows install any update features.

WIN is the key with the Microsoft flag on top.

2. INSTALL CRITICAL UPDATES
Check for Updates
(left-hand column)
Install ALL critical updates.
Restart your computer (even if not prompted)

Repeat this procedure until there are no more critical updates.

DO NOT TRUST the “Windows is up to date” in center of dialog. until you see that TWICE IN A ROW!

3. INSTALL IMPORTANT UPDATES
Use the “critical update” procedure until all important updates are installed.

4. INSTALL OPTIONAL UPDATES
Under Optional updates you will be presented with:
a) Microsoft Bing Desktop which is of questionable value
b) a list of about 34 language updates.

You can hide those updates so that aren't continually notified of those updates.
When you click on 34+ optional updates are available, then you
a) highlight all of the language updates,
b) right-click anywhere in the highlighted list.
c) click on Hide Updates,
d) OK button.
Install ALL other Optional Updates.
Use the “critical update” procedure.

UPDATE GOLDEN RULES

Install ALL, yes, ALL updates.
This is Win 7 and not Vista or XP (eXPired).

UPDATE IS HUNG –TAKING FOREVER
Hung is very doubtful unless you interrupted updates.

CTRL + SHIFT + ESC key combo will pop-up the Task Manager.
Lo and behold, Windows Update is still running!

You hold down the CTRL and SHIFT keys.
While holding them down, tap the ESC key once.
My System SpecsSystem Spec
.

05 Sep 2012   #34
SailingNut

Windows 7 Ultimate x64
 
 

Forgot to mention that the last time this happened, I was in the middle of applying updates.

I'll get them all applied and hopefully this will all go away!

I'm starting to think it may be a fualty piece of hardware that is at the root, but we need to get all of the resto f this squared away first.
My System SpecsSystem Spec
05 Sep 2012   #35
SailingNut

Windows 7 Ultimate x64
 
 

OK, my theroy may be blown out of the water.

I just had it happen again while applying updates. So, now it's time to apply them one by one and see which one is the casue. Or if maybe it's trying to do them all at once, but I doubt that since they are done sequentially.

EDIT: It appears that the updates did apply because I had only one optional update that I chose not to apply (Bing desktop) when I went back into Windows Update. However when I did a check for updates I now have 15 important and 5 optional. I suspect this is because they depend on having previous updates already installed.
My System SpecsSystem Spec
05 Sep 2012   #36
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Very possible

Just work thru that write-up I gave.

You will notice that the write-up also speaks of not installing Bing desktop.
My System SpecsSystem Spec
05 Sep 2012   #37
SailingNut

Windows 7 Ultimate x64
 
 

Karl,

At first I didn't do well with the whole RTFM thing. I kind of just jumped in and went back when things failed.

Well the interesting thing is that it seemed to me that the cause (possibly indirectly) was that I was trying to install critical updates along with optional ones. Granted it had moved on to other updates, but once I stopped doing that it stopped shutting down when doing updates.
My System SpecsSystem Spec
05 Sep 2012   #38
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

What is the status of the updating?
Are you ready to run my script which shows which updates are installed and which are not?
My System SpecsSystem Spec
06 Sep 2012   #39
SailingNut

Windows 7 Ultimate x64
 
 

Karl,

Updating is all done, so I'm ready to run the script. I'm assuming that is the last one that creates OSinfo.txt, is that correct?
My System SpecsSystem Spec
06 Sep 2012   #40
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Script:
# ************************************************************
# Places InstalledUpdates.txt on your DESKTOP
# Places NotInstalledUpdates.TXT on your DESKTOP
#
# Hidden updates are ignored.
# ************************************************************

Try
{
   
$error.clear()
   
$file "$env:userprofile\Desktop\InstalledUpdates.TXT"
   
If (test-path -path $file) {del $file}
   
$update = new-object -com Microsoft.update.Session
   $searcher 
$update.CreateUpdateSearcher()
   
write-host "`n`n Patience. I'm slowly, but steadily working on fetching the list of installed updates.`n`n"
   
$pending $searcher.Search("IsInstalled=1"
   foreach(
$entry in $pending.Updates) {
     IF (
$entry.IsHidden -ne $true) {
       
"Title: " $entry.Title Out-file -append $File
       
"Downloaded? " $entry.IsDownloaded Out-file -append $File
       
"Description: " $entry.Description Out-file -append $File
       
foreach($category in $entry.Categories) {
           
$d "Category: " $category.name Out-file -append $File }
       
"" Out-file -append $file } }
   If ((
Test-Path -path $file) -eq $false) {"No updates have been installed." Out-file $file
# Now to check the uninstalled updates that aren't hidden
   
$file "$env:userprofile\Desktop\NotInstalledUpdates.TXT"
   
If (test-path -path $file) {del $file}
   
$update = new-object -com Microsoft.update.Session
   $searcher 
$update.CreateUpdateSearcher()
   
write-host "`n`n Patience. I'm slowly, but steadily working on fetching the list of uninstalled updates.`n`n"
   
$pending $searcher.Search("IsInstalled=0"
   foreach(
$entry in $pending.Updates) {
   IF (
$entry.IsHidden -ne $true) {
       
"Title: " $entry.Title Out-file -append $File
       
"Downloaded? " $entry.IsDownloaded Out-file -append $File
       
"Description: " $entry.Description Out-file -append $File
       
foreach($category in $entry.Categories) {
         
$d "Category: " $category.name Out-file -append $File }
       
"" Out-file -append $file } }
   If (-
not(Test-Path -path -$file)) {"There are no uninstalled updates which are unhidden." Out-file $file
}
Catch { 
"Unable to fetch update list from Microsoft site" }
Finally "End of script"; EXIT }

EXIT
EXIT 
My System SpecsSystem Spec
Reply

 Unhandled exception




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Unhandled Exception
How can i enable debugging here in this application , the error here is about the value,whenever i try to do something with the application a pop-up comes and it says that for further task you have to change the value and at the bottom it asks to do debugg or do anything else which is completely...
BSOD Help and Support
.NET Framework - Unhandled exception has occurred....
https://lh4.googleusercontent.com/-HGG6maQlIW8/UCHl2ClzpUI/AAAAAAAAAGA/872XfaDMm-o/s461/Capture2104.JPG https://lh6.googleusercontent.com/-FTQIAa9_Wn4/UCHl2PqLh0I/AAAAAAAAAF8/fd4X38CGxps/s452/Capture2105.JPG
Software
unhandled exception has occured....
Hi When I open my computer I see this note ("Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.) I use windows 7>>>please advise.....thanxxxxxx a lot
System Security
UNHANDLED EXCEPTION HELP!
Hi, everytime i launch AutoCAD2010 i get a message box.. "Unhandled Exception Calibri Bold Caps doesnt support underlined" I tried reinstalling the font..but still occurs Help!
Software
Unhandled exception has occured
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.DivideByZeroException: Attempted to divide by zero. at Iconifier.PackageListBox.OnDrawItem(DrawItemEventArgs e) at...
BSOD Help and Support
Unhandled exception...
"...has occurred in your application. If you click Continue the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately". I'm sure I'm not the first to see this error message. What is the fix here? Thanks.
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 08:06.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App