AVR Studio4 fails to start. MFC Application Error.

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I have searched forums high & low for an answer to this problem, but cannot seem to find an answer so I am hoping someone here can help!

I have just upgraded my AVRStudio and WinAVR to the latest release. WinAVR 4.13 SP1(Build577) and WinAVR 20070525.
Previously I had WinAVR20040404 loaded on my machine, and had been using this with AVRStudio 3.56. Slap slap for using such old software I know! But it was working for me until I found a bug in GCC that required me to upgrade.

I uninstalled WinAVR 2004 and AVRStudio 3.56 before starting the upgrade.
After the install AVR Studio 4 will not start. I get an MFC Application error and the programs quits. See attachment for the screenshot of the error.

I have tried a number of thing like uninstalling again and re-installing all to no avail.
It seems like there is something "left behind" from the previous WinAVR or AVRStudio3.56 that is causing my problem.
I also installed WinAVR and AVRStudio on a machine that did not have old version previously loaded, and this works fine.

My setup is a WinXP Pro SP2, Intel Core Duo Laptop, 1G Ram. Nothing unusual here.

Any help will be greatly greatly appreciated, and I'll buy a beer or three to whoever can help me fix this problem. Have Paypal and a promise!.

Thanks in advance
Rob Beck
Auckland
New Zealand.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hm, have you cleanup your registry manually?
I would try the following:

- Uninstall AVR Studio & WinAVR
- Reboot
- Start "winedt32.exe" and remove the following keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Atmel
HKEY_LOCAL_MACHINE\SOFTWARE\WinAVR
(Check also for keys which references to Atmel
and/or WinAVR
- Remove the directories where WinAVR and AVR Studio
were installed

Now install WinAVR and AVR Studio

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for your reply. It is appreciated.

Yes, I spent considerable time yesterday uninstalling, deleting install folders, and cleaning the registry. I cleaned everything (keys, values, data) associated with Atmel, AVRStudio, AVRStudio4, WinAVR, AVRGCC, GCC all to no avail. I also spent some time making sure that my MSXML3.dll was upto date, as it seems that AVRStudio uses this.
I am at wit end with this, and it's driving me nuts!!!
Thanks for your post.
Cheers
Rob

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My last idea is jungo. Exists in your Device Manager->System Devices an entry with the name "WinDriver". This should be Jungo, version 8.1.1.0, date 26. Sep 2006.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
Thanks again. My Jungo Driver is version 8.1.1.0 but with a date of 16/10/2006 (16 October 2006).
Should I try & find a drvier with 26/9/2006?
Cheers

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ups, sorry. It was my mistake. The date of the driver is 16/10/2006.
I have no further ideas, sorry

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had the same problem before and then i think that i figured out the reason, it was in virus which came to my system and deleted some of the system files .. i tried to install new windows over the current windows and it didn't work also ... i only had to install a fresh copy of windows and then every thing went so good

i know you may have a lot of pain while removing old windows, it is some action like torture i know ... but this the solution i had to make ..

update us with any other news !!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Ahmed,
I have no virus, but I am thinking that a fresh system install might be the only way! :(
Will keep you posted.
Thanks for ths post.
Cheers

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have rebuilt my WinXP system and now everyhing is working fine for AVRStudio4 & WinAVR. Thanks for your tips.
I did get one tip from the AVR help desk to ensure that my IE was the latest version. I never got to try this solution, but it may help ssomeone else reading this thread with a similar problem.
Happy AVR'ing.
Rob

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hmmm... well I don't really care to reinstall my OS. I have a brand new HP laptop, Windows Vista 32. Everything has installed fine so far, everything being only a few simple apps. I just downloaded the latest Studio 4 and installed it - it won't run! Same problem as above - MFC error, sorry, done!

HELP!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gary5721 wrote:
hmmm... well I don't really care to reinstall my OS. I have a brand new HP laptop, Windows Vista 32. Everything has installed fine so far, everything being only a few simple apps. I just downloaded the latest Studio 4 and installed it - it won't run! Same problem as above - MFC error, sorry, done!

HELP!

never mind - stupid me... Atmel has BOTH the older version (non-Vista compliant) as well as the latest - with the older one at the top... that is what I installed. Sorry for the bandwidth.

g.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I know this is old threrad but maybe it will help someone and explain...

Recently I needed to install AVR Studio 4.19 on my WinXP and it failed with MFC app. error. I googled also this thread but wasn't helpfull. After some messing with system DLLs I found that it was due to broken OLEAUT32.DLL that was released in 1st half of year 2018. When I replaced it by older version from 2017 then AVR Studio sterted OK. Then I found that the library was alrerady fixed in new update package KB4466388 so it's better to use this updated version than older one.