Solved

Illegal Operation...

Posted on 1998-09-01
2
222 Views
Last Modified: 2010-04-30
I recently created a VB 6.0/Access 7.0 application that uses the Crystal Reports 4.6 control.  When I ran the executable, it performed as expected.  However, after I exited the app and the form unloaded, I received an Illegal Operation error caused by either the Crystal Reports control or dll (I cannot remember the extension).  

Please note that when I ran the setup, it could not copy the file MSVCRT20.DLL due to an access violation.  I am not sure what the function of this DLL is, though it appears to be used for version 2.0 of Crystal Reports and I would not think it would cause this error.

Any thoughts would be greatly appreciated.

Thank you,
David
0
Comment
Question by:dfhaines
2 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 30 total points
Comment Utility
The MSVCRTxx.dll's are support dlls to Microsoft Visual C.  I believe the rt stands for run time.  These modules will cause problems on your system if they are not the proper release leve, since they are used by so many different developed products, all created using VC++.  I have had problems in the past with installation of VB programs that had a setup created on a system that had had VC++ also installed on it, since the install picked up a back versioned MSVC...dll, causing the 95 system to hack.  Usually you get an access violation becuase these modules are almost always in use by some system routine developed with MS VC++.  A good install will restart your machine to be able to install over a system dll that is always in use.  I'm sure though that the msvc dll is a culprit.  Check out your versions and compare them to some other machine that works!
0
 
LVL 4

Expert Comment

by:mcix
Comment Utility
I had a problem very similar to this a while back...

As it turns out, either MSVCRT20.DLL is not in the App Path or (WINNT)Windows/System path.

OR

The version of MSVCRT20.DLL is out of date.  

I have not tried Crystal with VB6 as yet, but hopefully this points you in a direction.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 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

10 Experts available now in Live!

Get 1:1 Help Now