My post was to help you do the mutex correctly. My way is one of the safest ways that I have found to make sure that the mutex is never left behind.
I am still researching your original question:
"How can I get the current instance to load the file instead of displaying 'Only one allowed!'."...
He is a better way to use a mutex.
var
mAppMutexHnd: cardinal;
const
APPLICATION_MUTEX_ID = 'AppMutex';
begin
Application.Initialize;
// Create mutex to show application is running
mAppMutexHnd := CreateMutex(nil, BOOL(1), PChar APPLICATION_MUTEX_ID));
// check if application was...
I have used something like the following to close all flashfiler table and reopen them. It compiles with ttTable but no guarantees. ;)
var ClosedTableList = Tlist = nil;
procedure CloseAllAppTables(AppIsClosing: boolean);
var
aForm: TForm;
iTableCounter: integer;
i,j: integer;
begin
if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.