Page 1 of 1

problem with a second instance of a embedded program

Posted: Mon 19 Apr 2010 10:03
by Schlingel
If I start a second instance of a program with embedded db connection the error message occur:

Cannot run second Embedded server instance for single data folder. Please see details in MyDAC help or MySql Reference manual.

In a delphi-forum i found a documentation and a solution to this problem:
- change following in the MySqlApi

line 2774
try
// FIX
//
FDataDirMutex.Acquire;
except
on E: EOSError do begin
raise Exception.Create(STwoEmbServer);
end;
end;

line 2877
{$IFDEF WIN32}
if FDataDirMutex nil then
// FIX
//
FDataDirMutex.Release;
{$ENDIF}

My actual problem is that i have only a registered version but not the *pas and i cannot test this.
If it's possible, please explain me that problem(Mutex ?) and give me a helpful support.


Thank you

Posted: Mon 19 Apr 2010 12:01
by Dimon
This behaviour is connected with the limitation of Embedded server that allows only one client to work with one database.