Solved

ClientDataSet Problem D7 (Variant or safe array is locked)

Posted on 2004-10-15
4
2,326 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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