[fpc-pascal] national support
I am enthusiastic user of Free Pascal. I want ask a question, if there in Free Pascal exist the support for national environment. In czech there are letters with diacritics. They are not displayed correctly on the screen and on the printer. In Windows there is code page 1250 for these signs. Is there something in Free pascal? Martin Fris ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] national support
Fria Martin Mgr wrote: > I am enthusiastic user of Free Pascal. I want ask a question, if there in > Free Pascal exist the support for national environment. In czech there are > letters with diacritics. They are not displayed correctly on the screen > and on the printer. In Windows there is code page 1250 for these signs. Is > there something in Free pascal? I'm afraid that you'll have to provide little bit more information about your problem. FPC as such certainly shouldn't prevent characters supported on your platform to be displayed correctly. A simple example program would be nice. Important points to be aware of: - Under MS Windows, different codepages might be used by default for GUI applications ({APPTYPE GUI}) and console programs ({APPTYPE CONSOLE}). - The particular behaviour for console programs differs for different versions of MS Windows (in particular, all W9x based versions + WinNT 4.0 differs from Win2k and above). - Behaviour of FPC programs depends on whether you use single byte storage (like ShortString and AnsiString), or WideString. - Some units (e.g. Crt) may affect behaviour of console output. Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Source line numbers during execution
Graeme Geldenhuys schrieb: > On 7/11/06, Luiz Americo Pereira Camara <[EMAIL PROTECTED]> wrote: >> It works under Linux, it uses Simpleipc for app comunication. I tested >> it in Ubuntu Dapper Drake. The only issues i am having are related in >> Know Issues section. >> >> Luiz > > > Excellent! Thanks Luiz... > > Graeme. > > Don't know whether you can use it, but this is the function I use for my stack traces. procedure csl_log(e: Exception); var FrameCount: integer; Frames: PPointer; FrameNumber: integer; begin csl_log(1, 'EXCEPTION ' + e.message); // this csl_log simply is csl_log(depth: integer; log: string); depth defines the indent in my log csl_log(0, 'Class: ' + e.ClassName); csl_log(1, 'Stack trace:'); csl_log(0, BackTraceStrFunc(ExceptAddr)); FrameCount := ExceptFrameCount; Frames := ExceptFrames; for FrameNumber := 0 to FrameCount - 1 do csl_log(0, BackTraceStrFunc(Frames[FrameNumber])); csl_log(-1, 'done'); csl_log(-1, 'catched'); end; If anything can be made better, feel free to contact me. bartek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Threading in FPC DOS
I need to implement some simple threading in a DOS application I am writing with FPC. What I need to know is the following: 1) Does FPC protect it's stack or can I allocate memory from the heap and point SS and ESP to it for the threads stack. 2) If the stack is protected, how do I allocate stack memory for new threads? Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Threading in FPC DOS
On 11 Jul 06, at 15:14, Andreas Berger wrote: > I need to implement some simple threading in a DOS application I am > writing with FPC. What I need to know is the following: > > 1) Does FPC protect it's stack or can I allocate memory from the heap > and point SS and ESP to it for the threads stack. I believe the latter is correct (except that no SS change should be needed), at least this is how it works for other targets as far as I know. Amount of memory to be allocated for stack is passed as a parameter during thread creation. BTW, in case you manage to create thread manager (systhrd.inc implementation) for GO32v2 target and are willing to share it with others, we'd be certainly interested to add it to FPC. Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Functions with variable number of parameters
On 7/10/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: Use array of const with cdecl, it will work as expected. Thank you very much. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Threading in FPC DOS
I need to implement some simple threading in a DOS application I am writing with FPC. What I need to know is the following: 1) Does FPC protect it's stack or can I allocate memory from the heap and point SS and ESP to it for the threads stack. I believe the latter is correct (except that no SS change should be needed), at least this is how it works for other targets as far as I know. Amount of memory to be allocated for stack is passed as a parameter during thread creation. Oh, so all the segments are the same in FPC? I mean CS = DS = SS? That would really be swell. BTW, in case you manage to create thread manager (systhrd.inc implementation) for GO32v2 target and are willing to share it with others, we'd be certainly interested to add it to FPC. Hmm, I had thought to implement the TThread class. What is systhrd.inc? It seems to be implemented with different methods for each target. Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal