Windows 7 Unhandled Exception

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Windows 7 Unhandled Exception

Jump to solution
22,472 Views
nonarKitten
Contributor II

When starting the IDE in Windows 7, the proram will work fine until a project is loaded at which point it will report an error:

 

CodeWarrior encountered an unhandled exception 0xc0000005 at address {different each time} (The memory at address {different random address} could not be read)

 

Location: IDE.EXE:{same as the first random address}

 

Crash dump written to MEM_FREE.b2830.20090320.122156A.dump

 

Choose 'Abort' to end the program, 'Retry' to debug, or 'Ignore' to continue (at your own risk!)

 

Abort will kill it, Retry will cause it to be unresponsive, and Ignore just brings the same error back up a few times until I get this:

 

Generic Error 32770. An unknown error has occured.

 

Neither running as Administrator nor taking ownership of the Program Files folder seems to help.

Labels (1)
1 Solution
3,469 Views
Audi
Contributor II

I found this work-around. . .

 

Again, I am using 32-bit Win7 Pro.  I run CW with the "Disble desktop composition" enabled (checked).  You can find that option on the Compatability tab of CW's Properties dialog.

 

 

View solution in original post

25 Replies
3,188 Views
onemoretouch
Contributor I

I also meet this problem. I think your graphic card is nvidia series and the driver is the latest one. With the same, I am using a notebook with the graphic card of Quadro NVS160M, when I install the old driver(179.**), everything works well. But when I install the latest drivers ( For example, 18*.** or 19*.**), codewarrior will have some unlandled exceptions. It seams that some dll file is not compatible with the new graphic driver!

Hope freescale solve this problem early!

0 Kudos
3,188 Views
looxonline
Contributor I

Audi:You are a hero!

 

Freescale: Pull your pants up... 

0 Kudos
3,188 Views
plugas
Contributor I
I have the same problem. I was reading other forums about this problem but all recommendations, compatibilities, run as admin, etc.... but I still having the problem with CW 6.2 and 7.1... anybody with ideas?...
0 Kudos
3,188 Views
Audi
Contributor II

Add me to the list.

  32-bit Windows 7

  CW 5.9

  MC9S processor

 

 

0 Kudos
3,188 Views
jajomafa
Contributor I
service request submitted
0 Kudos
3,188 Views
nonarKitten
Contributor II

Possible work-around #1 - uninstall everything CodeWarrior related. Go to your user folder (e.g., C:\Users\MyUserName\) and create a folder called Apps. Then reinstall and when you're given the choice of where to install, select the Apps folder you created (e.g., C:\Users\MyUserName\Apps). It seems MOST of the problems are caused by Windows' new security on the Program Files folder(s).

 

Note - still unresolved issues include: CodeWarrior crashing if you attempt to move it to a second display (e.g., if you have more than one LCD hooked up), and programming via USB devices may be hit-or-miss. I've as of yet been unable to program via our SofTec unit. However, some of these problems may be because I'm also running x64 edition of Windows 7, so your mileage may vary.

 

Possible work-around #2 - Install XP Mode. This raises its own issues, namely that the USB handling is really poor and you often have to reconnect the programmer until XP Mode "catches" the device. It also has many other limitations (e.g., it's slow, randomly disconnects local drives, won't work with dual displays, and isn't the reason you got Windows 7 anyway).

0 Kudos
3,188 Views
jajomafa
Contributor I
thank you Nonar and Audi for those "work-around". I tried Audi's and worked fine ... Thank you very much
0 Kudos
3,470 Views
Audi
Contributor II

I found this work-around. . .

 

Again, I am using 32-bit Win7 Pro.  I run CW with the "Disble desktop composition" enabled (checked).  You can find that option on the Compatability tab of CW's Properties dialog.

 

 

3,188 Views
GrupoAvatecsys
Contributor I

Yo uso Windows 7 Enterprise, equivalente al profesional y uso CodeWarrior for Microcontrollers v6.3, este ha funcionado deshabilitando la composicion del escritorio, ejecutandolo en modo de compatibilidad con Windows XP Service Pack 2 y ejecutandolo en modo Administrador, aun falla cuando trato de cerrar algun proyecto pero funciona bien para programar y compilar.

0 Kudos
3,188 Views
RN_
Contributor I

I am using CW5.1 in WINDOWS 7, my problem is when I open any of my previous project created on XP doesnt open on W-7 and getting below error.... Can anyone please tell me the reason.

0 Kudos
3,188 Views
RN_
Contributor I

Its solved

steps

1.Right click on CWx.x project and sellect Properties

2.sellect compatability

3.click on "desktop composition"(sellect check box )

4. OK

0 Kudos
3,188 Views
kef
Specialist I

I thought CW5.1 for S12(X) should work natively on Win7. I tried it on Win7 PRO x86  and got the same annoying Unhandled Exception.

 

Thanks Audi for solution!

 

 

0 Kudos
3,188 Views
alv66
Contributor I

Hi all,

 

I follow all the instructions of this topic, but still have some problems. I can open a project correctly, but when I close codewarrior I have some errors, like:

 

- CodeWarrior encountered an unhalted exception 0xc0000005 at adress 0x76f96bf0 (....memory could not be written) ... crash dump ... etc

- Generic error 32770...

 

My set-up: win7 (32 bits), CodeWarrior IDE v5.9 running as admin with compatability options enabled.

 

Any idea?

 

Thanks in advance!

0 Kudos
3,188 Views
kef
Specialist I

Does this error happens only for Processor Expert enabled projects? Without processor expert CW opens and closes just fine. For PE you probably need to find some PE executable and enable same compatibility option for it.

3,193 Views
MPCMpy
Contributor II

Audi's right!

0 Kudos
3,193 Views
Randhawa
Contributor I

Hi Audi,

 

I run the CW as an Administrator But still getting the unhandled Exception error.

Please tell where I can find this Desktop compatibility option in the CW.

 

Thanks,

Randhawa

0 Kudos
3,193 Views
Audi
Contributor II

Using 32-bit Win7 Pro, right-click on the CW short-cut in your Start menu.  Select properties.  Select the Compatability tab.  Check the "Disble desktop composition" option.

 

0 Kudos
3,193 Views
jonr
Contributor III

So sad, I've had an open ticket with both P&E and FreeScale for months and neither one could fix this issue.  Thanks for the fix.

 

0 Kudos
3,193 Views
MoveX
Contributor I

@Audi

 

Thanks for the hint, that solved the persistens crashes with Codewarrior 2.7 for MPC 56xx under Windows 7 x64, too.

0 Kudos
3,193 Views
nallyn
Contributor I

Another option that works is to "Run As Administrator".

0 Kudos