Solved

Illegal Operation...

Posted on 1998-09-01
2
224 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
ID: 1432273
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
ID: 1432274
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net 2008 2 58
How does CurrentUser work? 10 36
Add a task in Outlook from access 11 39
Protecting vb6 & .Net code Obfuscation 18 121
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

816 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

11 Experts available now in Live!

Get 1:1 Help Now