View Issue Details

IDProjectCategoryView StatusLast Update
0002043JEDI VCL00 JVCL Componentspublic2004-08-09 14:07
Reporterralf.kaiserAssigned Touser72 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 
Target VersionFixed in Version 
Summary0002043: Please add function "UnregisterServer" (included here) to JvJCLUtils.pas
DescriptionCan someone with CVS write access please add this function to the unit JvJCLUtils?
There is a RegisterServer-function but no way to unregister a COM-server.

function UnRegisterServer(const ModuleName: string): Boolean;
type
  TProc = procedure;
var
  Handle: THandle;
  DllUnRegServ: Pointer;
begin
  Result := False;
  Handle := LoadDLL(ModuleName);
  try
    DllUnRegServ := GetProcAddress(Handle, 'DllUnregisterServer');
    if Assigned(DllUnRegServ) then
    begin
      TProc(DllUnRegServ);
      Result := True;
    end;
  finally
    FreeLibrary(Handle);
  end;
end;
Additional InformationMaybe it would be good to test if the DLL can be unregistered with "DllCanUnloadNow" before Unregistering??
TagsNo tags attached.

Activities

ralf.kaiser

2004-08-09 04:45

reporter   ~0004973

Please note that the name of the function has to be "DllUnregisterServer" (with "register" in small caps). I have copied these lines from the newsgroup where i posted it wrong too :-(

obones

2004-08-09 05:11

administrator   ~0004974

Corrected.

user72

2004-08-09 14:07

  ~0004975

Updated in CVS

Issue History

Date Modified Username Field Change
2004-08-09 04:30 ralf.kaiser New Issue
2004-08-09 04:45 ralf.kaiser Note Added: 0004973
2004-08-09 05:11 obones Note Added: 0004974
2004-08-09 05:11 obones Description Updated
2004-08-09 14:07 user72 Status new => resolved
2004-08-09 14:07 user72 Resolution open => fixed
2004-08-09 14:07 user72 Assigned To => user72
2004-08-09 14:07 user72 Note Added: 0004975