Forum Replies Created
-
AuthorPosts
-
November 30, 2021 at 12:20 am in reply to: Codesite (Express) doesn’t work when called from a 64-bit application. #1777
I have this with my Excel COM-Addins. The below might help you (i.e. you need to use TCP/IP).
https://www.davidghoyle.co.uk/WordPress/?p=2237
Ray,
That would be a very useful tool as I create CSL log files for different days and this would make it very easy to find messages within a whole collection of them.
regards
Dave.
August 8, 2019 at 1:18 pm in reply to: Code Site Limitations and Annoyances for Client Server and Service Development #1441I don’t know what’s happened to my first post but what account is your service running under and does that account have read/write access to the location you want to create the .csl file?
August 8, 2019 at 12:23 pm in reply to: Code Site Limitations and Annoyances for Client Server and Service Development #1439Warren,
I don’t know if this will help you but I use the following in a desktop application for logging to a file and the live view (if the dispatcher is running – for TCP/IP this needs to be manually started if I remember as it will not be started automatically under TCP/IP)
Const (** A constant for the log file extension. **) strLogExt = '.csl'; (** A constant for the AppData environment variable. **) strAppDataEnviroVar = 'AppData'; (** A constant for the Seasons Fall subdirectory under AppData. **) strSeasonFallDir = '\Season''s Fall\XER Tools\'; (** ISO Date format for the CSL files. **) strFileDateFmt = ' yyyy-mm-dd'; Var (** A local private variable for the FileDestination CodeSiteLogger. **) FileDest: TCodeSiteDestination; (** This section creates a file based CodeSite Logger for the applciation in the same directory. **) Initialization FileDest := TCodeSiteDestination.Create(Nil); FileDest.LogFile.Active := True; FileDest.LogFile.FilePath := System.SysUtils.GetEnvironmentVariable(strAppDataEnviroVar) + strSeasonFallDir; FileDest.LogFile.FileName := ChangeFileExt(ExtractFileName(ParamStr(0)), FormatDateTime(strFileDateFmt, Now()) + strLogExt); FileDest.Viewer.Active := True; CodeSite.Destination := FileDest; CodeSiteLogging.CodeSiteManager.ConnectUsingTcp(); (** Frees the file based logger. **) Finalization FileDest.Free; End.
- This reply was modified 5 years, 3 months ago by David Hoyle.
Keith,
I’m not aware of an specific instructions but there are 2 things to fix. The first is your IDE library path and the second the CodeSite IDE plug-in. The best option is to run the IDE as per the account you logged in as to install the software and then go to the IDE Options | Delphi | Library and note down the CS paths that were added and secondly for the plug-in go to the Installed Components and look for the location of the CS IDE plug-in package. Then replicate them in your user acccount IDE.
Dave.
Keith,
Do you run as a limited user but install as an Administrator. If so, the paths for the DCUs and IDE plug-ins will have been installed under the Administrator’s profile not yours and you will have to manually add them your RAD Studio.This happens for me as I run as a limited user and not an Administrator.
Dave.
-
AuthorPosts