Solved

Problem with msvcrt.dll error

Posted on 2009-07-15
9
860 Views
Last Modified: 2013-12-12
I can satisfactorily log into Sage Line 50 but before the next screen appears I get a message that Sage Accounts.exe has experienced a problem and must close. There is an option to show details and this shows the message on the attached doc. There seems to be a lot of reference to msvcrt.dll problems on the internet. Is it likely that this file has been corrupted? I understand that this is a shared dll but on doing a search of all my drives I find that there are numerous copies of it spread across the drives.
Any help would be appreciated.
Sage-Error.doc
0
Comment
Question by:ChrisJKay
  • 4
  • 4
9 Comments
 
LVL 19

Expert Comment

by:*** Hopeleonie ***
ID: 24894786
this link may help you more:

http://support.microsoft.com/kb/324762/en-us
0
 
LVL 10

Expert Comment

by:peetm
ID: 24895263
Indeed - there are very many versions:

http://support.microsoft.com/dllhelp/?dlltype=file&l=55&alpha=msvcrt.dll&S=1&x=0&y=0

And, it's usually the case that each version fixes something from the previous of course.

Has this just started happening?  Have you asked Sage's support about it?
0
 

Author Comment

by:ChrisJKay
ID: 24895291
Thanks for prompt reply. I had already seen this kb article and had reloaded msvcrt.dll from the CD. I have just run depends.exe and can comfirm that the msvcrt.dll in C:\Windows\System32 does contain the _resetstkoflw function.

However if I try to register this version of the dll using "regsvr32 C:\WINDOWS\system32\msvcrt.dll", I get an error message
    regsvr32 C:\WINDOWS\system32\msvcrt.dll was loaded but the DllRegister Server entry point was not    found. The file cannot be registered.

Does this mean that one of the other copies of msvcrt.dll elsewhere on the computer is still being used?
0
 

Author Comment

by:ChrisJKay
ID: 24895393
peetm:
I have used the program for years without any problem. However it is about two months since I last used it, when all was OK. This is because I have now retired but need to check on my final accounts for a tax return.
I was a Sage dealer but closed my account on retirement and therefore have not contacted them but will give it a try now.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:ChrisJKay
ID: 24895481
No luck with Sage can't help for two reasons - Account closed (Great after 15 years with them!) and version ( no longer supported.) So back to the experts.
0
 
LVL 10

Expert Comment

by:peetm
ID: 24895869
regsvr32 is used to register COM components - msvcrt.dll is just a plain old DLL.
0
 
LVL 10

Accepted Solution

by:
peetm earned 500 total points
ID: 24896102
>>I have used the program for years without any problem. However it is about two months since I last used it, when all was OK. This is because I have now retired but need to check on my final accounts for a tax return.

As you say, it's possible that a previous/later version is being used that is not compatible.

I think you'll need something like ProcessSpy/Process Explorer to track down which version of the dll you're loading - most likely the one in system32.  However, that might help, um, not at all; as you'll probably not be able to change that - nor should you - as it'll be protected/loacked.

Depending upon your version of Windows, you could try copying the various other versions into the same folder as your main executable (match the created date of your main executable as near as you can to the created dates of the various msvcrt.dll versions you have).  This *may* allow the local version to be loaded.  If it still fails, you'd use Process Explorer etc to see if the local version *is* being loaded, or to determine that the system32 version is still being favoured.

There are various schemes for forcing the loading of a local dll - http://blogs.msdn.com/junfeng/archive/2006/01/24/517221.aspx

0
 

Author Comment

by:ChrisJKay
ID: 24896834
peetm:

Great the use of dll redirection has solved it. Once I put msvcrt.dll and kernel32.dll in the application folder and added a file sage.exe.local the package worked OK.

Many thanks
Chris
0
 
LVL 10

Expert Comment

by:peetm
ID: 24896984
Great - thanks for letting me know.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now