Re: [fpc-pascal] Debug information

2015-01-13 Thread Jonas Maebe
On 13 Jan 2015, at 16:14, Martin Frb wrote: On 13/01/2015 14:40, Rainer Stratmann wrote: Can not get debug information -g -gl -gw switched on but no further information (line nr) is displayed when an error occured. -gl has a "feature" it prints the stack info, until it finds an addre

Re: [fpc-pascal] Debug information

2015-01-13 Thread Martin Frb
On 13/01/2015 14:40, Rainer Stratmann wrote: Can not get debug information -g -gl -gw switched on but no further information (line nr) is displayed when an error occured. -gl has a "feature" it prints the stack info, until it finds an address for which there is no stack info (e.g. in the r

[fpc-pascal] Debug information

2015-01-13 Thread Rainer Stratmann
Can not get debug information -g -gl -gw switched on but no further information (line nr) is displayed when an error occured. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2015-01-13 Thread Chriss Kalogeropoulos
Hi, map the USB Port to a Virtual Serial Port and open the Port as File using CreateFile using name "\\.\COMxxx" Then write to the port with the usual API file commands Even better wrap this to a Stream (or FileStream) descendant and use Stream.Write commands Read and Seek should do nothing I h

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2015-01-13 Thread Virgo Pärna
On Tue, 13 Jan 2015 10:41:55 -0200, Philippe wrote: > > First: could anyone tell me I have the possibility to access USB > printer in raw mode with the "basic" FPC package (not using Lazarus > packages/components)? > If you have USB printer installed , then winunits-base package has winspoo

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2015-01-13 Thread Philippe
Em 16.12.2014 10:35, LacaK escreveu: Is the printer already known to Windows (can you print to that printer from others windows applications) ? If yes, then you can use: Printer.SetPrinter('Printer name'); -Laco. Em 16.12.2014 09:27, LacaK escreveu: You can use: Printer.RawMode := True; Prin