Solved

ClientDataSet Problem D7 (Variant or safe array is locked)

Posted on 2004-10-15
4
2,349 Views
Last Modified: 2007-12-19
Hi all,
i have a client dataset that reads an XML file.
it has been working for ages, on my machine and a fellow programmers.
we have both been developing a new product for a while now.

we have just tried to run the software on a new machine (just receintly), and we get an error :
'Variant or safe array is locked'

this error is occuring on the 'fClientDataset.LoadFromFile(FileName);'
line.

now why would it work for me and other D7 developer, but not a test machine?
(that has D3,D5 on it but not D7)
and how do i fix ETC?

Thanks in advance
Kristian.
0
Comment
Question by:Kristian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 100 total points
ID: 12319312
post copied and pasted (just to save time on typing :-) )

It is caused by a corrupt midas.dll.   I also found answers in google groups that showed this fixed this error for other people as well.  
First: startmenu->run->regsvr32 /u "c:\windows\system32\midas.dll"
 
Then: Update your midas.dll in c:\windows\system32 (for XP, other windows versions vary) and startmenu->run->regsvr32 "c:\windows\system32\midas.dll"
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 12319429
Personally, I prefer to use the XMLDocument class to read XML files. For any further processing, XML stylesheets will be your biggest friends. :-)
0
 
LVL 1

Author Comment

by:Kristian
ID: 12321203
It was actually the version of the midas.dll in the windows\system32 directory that was the problem.
(thats gonna be fun to maintain).
Cheers for stearing me in the right direction though.
(as you mentioned midas though i twigged i should have checked it anyway).

once again thanks
Kristian

0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12321387
@ It was actually the version of the midas.dll in the windows\system32 directory that was the problem.

So why a B grade?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
select query - oracle 16 103
FMX and jaudiotracker playing memory stream 29 108
Dynamically Created Query 3 80
Firemonkey BASS_Init into a thread 17 84
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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