[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

"Client ID not unique"

Posted on 2001-07-02
4
Medium Priority
?
617 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 300 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

834 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