Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid Procedure Call

Status
Not open for further replies.

openpro

Programmer
Nov 15, 2001
8
GB
I am using a DLL compiled in VB6 that references the CRAXDRT.DLL (crystal reports object) to print reports. This is being utilised by several users from a windows 2k server via ASP pages on an intranet.
This works perfectly well for a period of time, then starts to get an ‘Error 5 Invalid Procedure Call or Argument’ on the line
‘Set crxApp = New CRAXDRT.Application’.

Code used:
Dim crxApp As CRAXDRT.Application
Dim crxReport As CRAXDRT.Report
Set crxApp = New CRAXDRT.Application
Set crxReport = crxApp.OpenReport(xxxx)
With crxReport.Database.Tables(1)
.SetLogOnInfo &quot;&quot;, &quot;&quot;, &quot;<<Use Integrated Security>>&quot;, &quot;&quot;
End With
crxReport.PrintOut False
Set crxReport = Nothing
Set crxApp = Nothing

The crystal report is saved with an OLE DB connection to the database because integrated security is used.
A reboot of the server clears the problem for a period of time before it re-appears, this points to memory leakage but it only affects crystal reports.
Any ideas would be appreciated.
 
If this is happening after a period of time, maybe it has to do with the concurrent liscencing issue? I don't recall offhand, but I am fairly certain that CE only ships with 5 concurrent liscences - which may mean that your application is using these liscences and not giving them back (causing the error). I think there was some form of server setting that you could use to define how long a liscence would be in use before it gets returned. Could someone confirm this (or disprove it, whichever is right :p )

Greg W
wolgemga@aecl.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top