Page 2 of 2
Re: Now Getting Runtime Error 236 on Delphi Start
Posted: Wed May 22, 2024 8:37 pm
by dkounal
1. Yes I tried. RVDBPkgD11 and RVDBPkgD11_Dsgn are build OK. But when I try to install RVDBPkgD11_Dsgn I am get again the 236 error and Delphi closes
2. It happens to VCL version with Delphi 11 Version 28.0.48361.3236 Update 3
Re: Now Getting Runtime Error 236 on Delphi Start
Posted: Thu May 23, 2024 8:13 am
by Sergey Tkachenko
1. Do you mean RVPkgD11 and RVPkgD11_Dsgn?
Did you check that there are no other TRichView files in different directories? (to prevent version mismatch)
Re: Now Getting Runtime Error 236 on Delphi Start
Posted: Thu May 23, 2024 4:34 pm
by dkounal
RVPkgD11 and RVPkgD11_Dsgn there are, you have right
I have no other richview version in an other directory
Re: Now Getting Runtime Error 236 on Delphi Start
Posted: Thu May 23, 2024 6:59 pm
by Sergey Tkachenko
Let's make sure that the error does not come from update checking.
Open RVUpdateFrm.pas, and comment all code in initialization and finalization sections, like this
Code: Select all
(* <-- add comment
initialization
InitWinInet;
RVUpdateChecker := TRVUpdateChecker.Create;
RVUpdateChecker.SetInstalledVersion(rvpRV, RVVersion,
{$IFDEF RVWATERMARK}False{$ELSE}{$IFDEF RVDEBUG}False{$ELSE}True{$ENDIF}{$ENDIF}, False);
finalization
RVUpdateChecker.Free;
RVUpdateChecker := nil;
DoneWinInet;
add comment -> *)
end.
Try to rebuild and install packages.
Does it help?
If not, the next step will be adding logging to the beginning and to the end of initialization sections of each TRichView units (I'll do it and send changed code to you)
Re: Now Getting Runtime Error 236 on Delphi Start
Posted: Thu May 23, 2024 8:38 pm
by dkounal
No, the error still exists
Re: Now Getting Runtime Error 236 on Delphi Start
Posted: Fri May 24, 2024 9:09 am
by Sergey Tkachenko
I can imagine 3 reasons.
1. The error comes from Register procedure of the designtime package.
2. The error comes from initialization section of some of TRichView units
3. The error comes from the package loading code, before calling any TRichView code (the worst case).
Logging will help to find the place of the error. I'll try to add logging and send it to you later today (or tomorrow).
Re: Now Getting Runtime Error 236 on Delphi Start
Posted: Sat May 25, 2024 2:22 pm
by Sergey Tkachenko
I sent modified units and instructions to you by email.
Additionally, please make sure that the folder where third-party BPL files are created (normally, c:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl for Delphi 11) (where RVPkgD11.bpl is created) is added to the system PATH environment variable.