Solved

"Client ID not unique"

Posted on 2001-07-02
4
581 Views
Last Modified: 2007-11-27
I have a form in DLL. I will get the "Client ID not unique process stoped" error the first time when I call the DLL. If the application heep running and keep call theis DLL I will not get this error.

It looks like the DLL did not unload properlly. Thanks for any help.

JL
0
Comment
Question by:jlislo
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 6245001
Please give more info.
It seems that you get assigned an ID from the DLL to keep track of concurrent programs calling the DLL.
Show some API calls to the DLL.
0
 

Author Comment

by:jlislo
ID: 6245264
This is what I did in DLL, and I got the error on the line say "Application.CreateForm(TfrmShow,frmShow) ;"

Thanks.

//----------------------------------------------
function MyFunction(...) : integer ;  stdcall;
var
  frmShow: TfrmShow;
  i : integer ;

begin
   Application.CreateForm(TfrmShow,frmShow) ;
   with frmShow do
   try
      // Pass throught data
      if ShowModal = mrOK
      then begin
          //
      end ;
      // Pass Result back
      Hide
   finally
      Free ;
   end ;
end;
0
 
LVL 11

Accepted Solution

by:
robert_marquardt earned 100 total points
ID: 6245682
1. Do not use CreateForm. Use Create.
   CreateForm is not for you.
2. Use ShareMem as first unit in program and DLL.

These are the first stumbling blocks for using forms in DLLs.
0
 

Author Comment

by:jlislo
ID: 6245718
You mean like this?

frmShow := TfrmShow.Create(nil) ;

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 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