DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: Dcuppdater.exe crashes multiple times daily in W7...  (Read 48,360 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #25 on: December 30, 2009, 12:48 AM »
it was very tricky to track down, and looks like it was from a component library i've used a lot.  it's code to enable drag and drop of files onto the form.  the code reroutes windows messages on start up using a call to SetWindowLong:
SetWindowLong(TargetWnd,GWL_WNDPROC,NewWndProcedure);

Which basically reroutes windows messages for the target wnd element to new function -- that's what lets the code handle drag and drop onto a target form UI element.

And it seems that for whatever reason, on win7 some messages are getting sent to that rerouted function in the middle of destruction, when the new code/object is being torn down and no longer exists.

The solution was simply to un-reroute the windows message procedure before any destruction -- not sure why that was not being done before except that it didn't seem to make a difference before.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #26 on: December 30, 2009, 12:53 AM »
The new version also includes a rebuild of the libcurl library, which i built using visual studio 2003, since it seems to be the last visual studio that will build static dll that doesnt require the ms runtimes that are missing in older windows versions (do i have that right?)

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #27 on: December 30, 2009, 12:10 PM »
Sounds like the component are making unsafe assumptions - handling messages wrongly, or doing stuff in it's destructor that it shouldn't. If WIN32-API window teardown happens as a result of destroying a C++ object, this situation could very well happen.

The new version also includes a rebuild of the libcurl library, which i built using visual studio 2003, since it seems to be the last visual studio that will build static dll that doesnt require the ms runtimes that are missing in older windows versions (do i have that right?)
Visual Studio 2005 is the last version that produces binaries compatible with NT4 and Win9x. The 2008-and-later C/C++ runtimes (even if statically linked) refers to some stuff that isn't present on those early systems... I wonder if this is something MS deliberately did to help kill off those systems, or if there's a valid reason why something as basic as the C/C++ runtimes should suddenly use fancy-pants API calls.
- carpe noctem

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #28 on: December 30, 2009, 12:15 PM »
Ah visual studio 2005 supports win98, that's good to know, then maybe i will upgrade to that on my vmware that i use for such things.

I did notice this interesting project which seems to claim it can make visual studio 2008 apps build for win98:

http://www.legacyextender.com/

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #29 on: December 30, 2009, 01:12 PM »
Ah visual studio 2005 supports win98, that's good to know, then maybe i will upgrade to that on my vmware that i use for such things.

I did notice this interesting project which seems to claim it can make visual studio 2008 apps build for win98:

http://www.legacyextender.com/
There's also some freeware version I stumbled upon, but it didn't work for me... and at any rate, you could always track down what the changes are and recompile the CRT yourself... would of course requite a little work, but it wouldn't cost you a dime.
- carpe noctem

J-Mac

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 2,918
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #30 on: December 31, 2009, 04:57 AM »
mouser,

One thing I have noticed is that my startup errors with Windows 7 are not only due to dcuppdater.com. I posted previously that my newly installed Windows 7 was sometimes starting with explorer.exe unresponsive and causing me to have to either restart again or log off and on again. I had noticed that whenever this occurred there was a large number of the dcuppdater.com AppCrash errors listed in the Event Viewer. However now that I have disabled dcuppdater.com from auto-starting I still see the same explorer.exe problem at startup on occasion. Further research shows that my nvidia graphics card driver may be the cause. I had not noticed that before because the error shown in the Event Viewer shows during the previous shutdown rather than at the restart.

I am thinking about dropping back to the previous nvidia driver release to see if that helps, since nvidia - as usual - is not commenting on this error at all even though a lot of their users are seeing it.

So even though dcuppdater.com WAS indeed throwing the AppCrash errors, I do not believe that they were the cause of the non-responsive explorer.exe upon startup problem.

Thanks!

Jim
"I am getting so tired of slitting the throats of people who say that I am a violent psychopath."

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #31 on: January 06, 2010, 09:55 AM »
i'm going to make this new version the official latest version if there is no further objection?

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #32 on: January 11, 2010, 06:41 AM »
I tried the new version and it did not crash in Windows 7 (64-bit). So it looks good to me.

sttrebo

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 13
Re: Dcuppdater.exe crashes multiple times daily in W7...
« Reply #33 on: March 18, 2010, 02:03 PM »
i've been getting this error recently.  not sure what has changed on my system (work computer, our it dept. will push down updates and changes without my knowledge).
i only get this error intermittently, can't seem to reproduce this with any sort of reliability.

AppName: dcuppdater.exe AppVer: 1.0.0.0 ModName: libcurl.dll
ModVer: 7.19.7.0 Offset: 000102d4

dcupdater v1.26.01, windows xp sp2

Original address: https://www.donationcoder.com/forum/index.php?topic=20280.0