Solved

Problem with msvcrt.dll error

Posted on 2009-07-15
9
862 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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
 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Scripting vs. Programming languages 25 168
What is this Task? 4 113
suggestion for PC desktop software to send PayPal mass payments 2 48
How to open a .vcf file 11 84
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…
In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

825 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