Lazarus 9.25 beta (with FPC 2.2.2) does not appear to be ready for prime time. The first thing it did on my system was crash when I tried to close a project that partially loaded and quit due to not finding the ZeosLib components. Then, it failed to rebuild the IDE when I tried to install ZeosLib.<br>
<br>Guess I need to wait for the real release.<br><br><div class="gmail_quote">On Sat, Jun 21, 2008 at 5:05 PM, Howard Lee Harkness <<a href="mailto:howard.lee.harkness@gmail.com">howard.lee.harkness@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Guess I'll try 2.2.2rc1, but it looks like in order to do that, I have to install Lazarus 0.9.25 beta.<br>
<br>Seems to me that I should have been able to get a program as trivial as the one I am trying to write running with stuff that was available two years ago. Kinda makes me wonder if I'm just trying to use the wrong tools.<div>
<div></div><div class="Wj3C7c"><br>
<br><div class="gmail_quote">On Thu, Jun 19, 2008 at 8:25 AM, Joost van der Sluis <<a href="mailto:joost@cnoc.nl" target="_blank">joost@cnoc.nl</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Op zaterdag 14-06-2008 om 19:16 uur [tijdzone -0500], schreef Howard Lee<br>
Harkness:<br>
<div>> Did you ever get an answer to this question? I am having a similar<br>
> difficulty, and information on ApplyUpdates is infuriatingly hard to<br>
> find.<br>
<br>
</div>You can find this problem in the bug-tracker. You can work around it<br>
with 'TDataset.DisableControls' and 'TDataset.Enablecontrols' around the<br>
applyupdates call. Or try fpc 2.2.2rc1 or any later version.<br>
<br>
Joost.<br>
<div><div></div><div><br>
> On Tue, Oct 10, 2006 at 1:11 AM, Adrian Maier <<a href="mailto:adrian.maier@gmail.com" target="_blank">adrian.maier@gmail.com</a>><br>
> wrote:<br>
> On 10/10/06, Joost van der Sluis <<a href="mailto:joost@cnoc.nl" target="_blank">joost@cnoc.nl</a>> wrote:<br>
><br>
> Well... As I read it, that's not the problem. All<br>
> changes are made in an<br>
> update-buffer first. So if you do a 'delete' in the<br>
> grid, the records<br>
> get deleted in that buffer. Thus the record should<br>
> disapear immediately<br>
> in the grid. But not yet on the database.<br>
><br>
> The 'delete'-sql is only send to the database on<br>
> the .applyupdates<br>
> command. And committed on the .commitretaining. Thus<br>
> that can happen<br>
> much later. (on the click on the 'save' button)<br>
><br>
> But if I understood you correctly, the delete fails<br>
> immediately. That<br>
> means that there's a problem in the deletion of<br>
> records in a grid. Or in<br>
> the .delete from Tbufdataset. You first have to test<br>
> that. Easiest way<br>
> is to add a button 'delete' which does<br>
> sqlquery1.delete. That'll delete<br>
> the current record, and it should be immediately<br>
> visible in the grid.<br>
> Else you could do a .refresh after the .delete, to be<br>
> sure that the grid<br>
> gets refreshed. (If not, it's a bug, btw)<br>
><br>
><br>
> I've added a button which calls query1.Delete. The row<br>
> disappears<br>
> from the grid now. So, it looks like TdbNavigator's<br>
> "Delete" button does<br>
> something different than it's supposed to do ?<br>
><br>
> However, when I press "Save" (which does applyupdates and<br>
> commitretaining)<br>
> the program crashes with :<br>
><br>
> TApplication.HandleException Access violation<br>
> Stack trace:<br>
> $08211A8E<br>
> $0821AE3F TCUSTOMDBGRID__UPDATESCROLLBARRANGE, line 1336 of<br>
> dbgrids.pas<br>
> $0821B013 TCUSTOMDBGRID__DOLAYOUTCHANGED, line 1402 of<br>
> dbgrids.pas<br>
> $0821CB35 TCUSTOMDBGRID__ENDLAYOUT, line 2164 of<br>
> dbgrids.pas<br>
> $0821B660 TCUSTOMDBGRID__LAYOUTCHANGED, line 1568 of<br>
> dbgrids.pas<br>
> $08219DA2 TCUSTOMDBGRID__ONDATASETCHANGED, line 814 of<br>
> dbgrids.pas<br>
> $0821E518 TCOMPONENTDATALINK__DATASETCHANGED, line 2722 of<br>
> dbgrids.pas<br>
> $0820E0F4<br>
> $0820EEF5<br>
> $0820F10B<br>
> $08202E6B<br>
> $08205F5D<br>
> $08211320<br>
> $08211264<br>
> $0807DE10 TFORMASIMPLA__ACTIONCOMMITEXECUTE, line 85 of<br>
> forma_simpla.pas<br>
> $0808DDB5<br>
> $081755F2 TCONTAINEDACTION__EXECUTE, line 110 of<br>
> ./include/containedaction.inc<br>
><br>
> In ContainedAction.inc:<br>
><br>
> function TContainedAction.Execute: Boolean;<br>
> begin<br>
> Result := (ActionList <> nil) and<br>
> ActionList.ExecuteAction(Self)<br>
> or ((ApplicationActionComponent<>nil)<br>
> and ApplicationActionComponent.ExecuteAction(Self))<br>
> or inherited Execute //<br>
> <------------------------- line 110<br>
> or (SendApplicationMessage(CM_ACTIONEXECUTE, 0,<br>
> PtrInt(Self)) = 1);<br>
> end;<br>
><br>
><br>
> Cheers,<br>
> Adrian Maier<br>
><br>
><br>
><br>
> _________________________________________________________________<br>
> To unsubscribe: mail <a href="mailto:lazarus-request@miraclec.com" target="_blank">lazarus-request@miraclec.com</a> with<br>
> "unsubscribe" as the Subject<br>
> archives at <a href="http://www.lazarus.freepascal.org/mailarchives" target="_blank">http://www.lazarus.freepascal.org/mailarchives</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Howard Lee Harkness<br>
</div></div>> _______________________________________________<br>
> Lazarus mailing list<br>
> <a href="mailto:Lazarus@lazarus.freepascal.org" target="_blank">Lazarus@lazarus.freepascal.org</a><br>
> <a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<font color="#888888">--<br>
<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org" target="_blank">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</font></blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">Howard Lee Harkness<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Howard Lee Harkness<br>