Solved

"Client ID not unique"

Posted on 2001-07-02
4
570 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
You mean like this?

frmShow := TfrmShow.Create(nil) ;

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now