Re: [Lazarus] SQLDB invalid handle
Bram Kuijvenhoven wrote: I don't have a Sybase server or even a Sybase ODBC driver here, but after modifying your code to connect to a MySQL server that I have running, I also got an exception (an Access Violation actually). Note that if the query SQL is invalid (such as a non existing table name in SELECT), I get an Access Violation instead. Did you adapt the SQL to your database? On the other hand, I tested FPC 2.2.2 with Firebird (ODBC) and it gives the same error. However, with IBConnection instead of ODBCConnection, there is no error. So the error lies specifically in TODBCConnection. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Code Folding mess and Code Divider feature
Martin Friebe wrote: There is a general plan/idea to add some configuration (have to see how much) to define what you want to have foldable and what not. It wasn't seen as urgent yet (at least not by me...) Most (if not all) of the places that allow folding now, do so in Delphi as well. this is part of why they have been added, to make it easier for (ex-) Delphi users. Is it possible have folding or more specifically identification for case/end pairs? ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] SQLDB invalid handle
The following code produces an error: ODBCConnection1.Connected := True; SQLQuery1.Active := True; SQLQuery1.Active := false; ODBCConnection1.Connected := False; ODBCConnection1.Connected := True; SQLQuery1.Active := True; - error SQLQuery1.Active := false; ODBCConnection1.Connected := False; error is: could not prepare statement Last return code: SQL_INVALID_HANDLE Invalid handle passed to SQLGetDiagRec/Field Has anybody encountered this before? ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TCustomEdit.CreateParams
How can we implement in TCustomEdit.CreateParams: Params.Style := longint(Params.Style) or ES_MULTILINE or ES_LEFT or ES_READONLY; ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LHelp missing unit + codetools bug
Vincent Snijders wrote: ftp://ftp.hu.freepascal.org/pub/lazarus/ The latest is ftp://ftp.hu.freepascal.org/pub/lazarus/fpc-lazarus-doc-chm-20081114.tar.bz2, which probably doesn't have search index yet. Thanks! I had spent half an hour looking for the chm files to no avail. I guess http://www.hu.freepascal.org/lazarus/ should be updated to reflect this file. As for the search index, are you referring to what appears under Index or Search? Other lhelp bugs: - The top of the Index page is covered by some invisible control. Navigating to the Search page then back to the Index page solves this. - The Search page does not have an edit box to type the search keyword. - Invoking lhelp from the IDE inevitably launches a console terminal (Win XP) which is unnecessary. Pics will follow in separate emails due to size allowance. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] LHelp missing unit + codetools bug
Compiling lhelp project produces the following error: chmspecialparser.pas(1,1) Fatal: Can't find unit chmFIftiMain used by chmcontentprovider Additionally, the source editor shows unit ChmSpecialParser and highlights the first line (a comment block) instead of showing unit chmcontentprovider and highlighting the uses clause. However, a 2nd compilation will highlight the right offending line! Lazarus v0.9.27 r17528 i386-win32-win32/win64 FPC 2.2.2 Any suggestions? ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LHelp missing unit + codetools bug
Paul Ishenin wrote: Mattias, I guess you are using fpc 2.3.1. Some files are still not merged into fixes_2_2. Best regards, Paul Ishenin. Recompiled using FPC 2.3.1 gracefully. Thanks! PS: Where can we find the chm files? ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Register Package Help
Mattias Gaertner wrote: You named the package the same as the unit. The IDE should not allow this. Please create a bug report and explain how you did that. Did you create a new package, added the file and then saved the package? Well the IDE allows it AFAIK. I encountered this bug a long time ago by creating a new package with a unit, and saving the package (Save or Save As??) with the same name as that of the unit. Hadn't I had a backup, I would have lost the unit altogether as the IDE happily replaced my unit without warning. The bug tracker was down then, and I forgot later on about the issue. HTH ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Printing in Text mode on Windows?
Lee Jenkins wrote: I did happen upon the rawmodetest example in /components/printing, but it doesn't seem to work. I tried it on Windows using an Epson 220 dot matrix receipt printer installed with the Generic Text Drive without success. Any pointers? It should work. In its normal mode, the Epson TM-U220 will print any printable ASCII character it receives. If your printer is a serial one, you should take care of the serial parameters such as the baud rate and flow control. Using a parallel printer would be much easier. In any case, you can test the raw mode printing without using any printer at all. Just set the port of the Generic Text Printer to File, print using your routine, and inspect the file. That would show you whether it is your routine's fault or the printer's (which could be set to page mode). HTH ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Antix Mepis and Lazarus
Antonio Sanguigni wrote: Hi list, I'm giving a chance to Antix Mepis on my old pc so, after terminated its installation I'm trying to install Lazarus. As usually I've done on other distro I downloaded fpc 2.2.0 script and got a svn checkout from lazarus repository. Now, I had to login as root to install fpc script because for default sudo is not allowed on Mepis, so I did not have write permission on /etc for fpc.cfg and it was fine but now, when I tried to compile Lazarus, I got the tipical Can't find unit contnrs used by Masks. Of course, trying to compile as root works fine and I can have a working Lazarus as well. I checked fpc.cfg path and it seems ok ! Any ideas ? Thanks Antonio I had a similar problem 2 days ago trying to compile and install FPC 2.2.1 on Windows. I ran fpcmkcfg to create fpc.cfg and changed the paths manually to absolute ones as they were relative ones due to the exact error message you described. I am not sure this is the issue in your case, but it is worth looking at. Stephano ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] compiling IDE error
Andrea Mauri wrote: Dear all, under winXP, lazarus svn (14876), FPC 2.2, I am not able to rebuild lazarus. I got this error: C:\Programmi\Lazarus\ide\lazarus.pp(114,1) Error: Undefined symbol: VMT_GRAPHICS_TBITMAPIMAGE C:\Programmi\Lazarus\ide\lazarus.pp(114,1) Error: Undefined symbol: VMT_GRAPHICS_TBITMAP C:\Programmi\Lazarus\ide\lazarus.pp(114,1) Fatal: There were 2 errors compiling module, stopping Under Linux I can compile lazarus without errors. Any help? Andrea Same here! ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] compiling IDE error
Vincent Snijders wrote: Make sure you clean also the compiled unit of your packages, for example by deleting all the .ppu. Vincent I had to delete ppu's of printer4laz and lazide. So to be on the safe side, I deleted all ppu's in the lazarus folder ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Almost impossible to type in IDE editor with remote desktop
Ubuntu / Laz 0.9.24 / 100Mbps LAN I have tried to establish a remote connection using an Ubuntu machine as the server with Lazarus installed, and a WinXP machine with TightVNC viewer. Typing in the IDE editor is a nightmare; you have to push each button for about a second to get it to show up in the editor. On the other hand, this problem does not show up when typing in Compiler Options dialog box or in other applications. Must be either a Synedit or Lazarus editor issue. Any ideas? Stephano ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Almost impossible to type in IDE editor with remote desktop
I have noticed as well that several keys such as Delete, Enter, Space bar, Arrow keys, Home, PageUp, etc... do not suffer from this problem. The Tab key, all alphanumeric keys are almost unusable. Stephano wrote: Ubuntu / Laz 0.9.24 / 100Mbps LAN I have tried to establish a remote connection using an Ubuntu machine as the server with Lazarus installed, and a WinXP machine with TightVNC viewer. Typing in the IDE editor is a nightmare; you have to push each button for about a second to get it to show up in the editor. On the other hand, this problem does not show up when typing in Compiler Options dialog box or in other applications. Must be either a Synedit or Lazarus editor issue. Any ideas? Stephano ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Almost impossible to type in IDE editor with remote desktop
Vincent Snijders wrote: Looks like http://bugs.freepascal.org/view.php?id=9967 I guess not as some keys exhibit this behavior and others don't (see my previous follow-up post), and if you just press a key from the former group, then it is not guaranteed to have it appear in the editor. You have to try several times in order to succeed. Can you try with lazarus 0.9.25? I will try. However, oddly enough, just before I started writing this message, the problem disappeared. Figure that out! ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus