Subject Re: [IBO] CancelUpdates
Author hans@hoogstraat.ca
Only had to rebuild everything, including use IBO modules with
debug settings and got a lot more output :)

Is this what you expect ?
===================================================

DatabaseError('Dataset not in edit or insert mode',nil)
TIBODataset.InternalSetFieldData($1761234,$12D44F)
TIBODataset.SetFieldData(???,???)
TDataSet.SetFieldData($1761234,$12D44F,True)
TIBODataset.SetFieldData(???,???,???)
TField.SetData($12D44F,True)
TStringField.SetAsString('DCT')
TFMain.DispatchNewNoteTruckNoChange(???)
TCustomEdit.Change
TControl.WndProc((48401, 50333636, 30017476, 0, 1988, 768, 1988, 458, 0,
0))
TWinControl.WndProc((48401, 50333636, 30017476, 0, 1988, 768, 1988, 458,
0, 0))
TControl.Perform(48401,50333636,30017476)
DoControlMsg(30017476,(no value))
TWinControl.WMCommand((273, 1988, 768, 30017476, 0))
TControl.WndProc((273, 50333636, 30017476, 0, 1988, 768, 1988, 458, 0,
0))
TWinControl.WndProc((273, 50333636, 30017476, 0, 1988, 768, 1988, 458,
0, 0))
TWinControl.MainWndProc((273, 50333636, 30017476, 0, 1988, 768, 1988,
458, 0, 0))
StdWndProc(3475316,273,50333636,30017476)
TWinControl.DefaultHandler((no value))
TCustomEdit.DefaultHandler((no value))
TControl.WndProc((12, 0, 4213477, 0, 0, 0, 19173, 64, 0, 0))
TWinControl.WndProc((12, 0, 4213477, 0, 0, 0, 19173, 64, 0, 0))
TControl.Perform(12,0,4213477)
TControl.SetTextBuf('')
TControl.SetText('')
TFieldDataLink.RecordChanged(nil)
TFieldDataLink.SetField(nil)
TFieldDataLink.UpdateField
TFieldDataLink.ActiveChanged
TDataLink.SetActive(False)
TDataLink.UpdateState
TDataLink.DataEvent(deUpdateState,0)
TDataSource.NotifyLinkTypes(deUpdateState,0,True)
TDataSource.NotifyDataLinks(deUpdateState,0)
TDataSource.SetState(dsInactive)
TDataSource.UpdateState
TDataSource.DataEvent(deUpdateState,0)
TDataSet.DataEvent(deUpdateState,0)
TDataSet.SetState(dsInactive)
TDataSet.SetActive(False)
TDataSet.Close
TFMain.BTDispatchNewCancelClick(???)
TControl.Click
TColorSpeedButton.Click
TColorSpeedButton.MouseUp(mbLeft,[],???,???)
TControl.DoMouseUp((514, 0, 24, 7, (24, 7), 0),mbLeft)
TControl.WMLButtonUp((514, 0, 24, 7, (24, 7), 0))
TControl.WndProc((514, 0, 458776, 0, 0, 0, 24, 7, 0, 0))
TControl.Perform(514,0,458776)
TWinControl.IsControlMouseMsg((514, 0, 239, 345, (239, 345), 0))
TWinControl.WndProc((514, 0, 22610159, 0, 0, 0, 239, 345, 0, 0))
TWinControl.MainWndProc((514, 0, 22610159, 0, 0, 0, 239, 345, 0, 0))
StdWndProc(3475316,514,0,22610159)
=========


Jason Wharton wrote:
>
> You need to turn on you Debug DCU's as well as all the other stuff.
> Hopefully you are using later versions of Delphi.
> What I want to know is what code is modifying a field value when is all you
> are doing is canceling your cached updates. There shouldn't be any field
> modifications going on at all.
>
> I'd prefer to solve the actual problem, whatever it is, than just remove a
> constraint intended to keep things accurate and solid.
>
> Jason Wharton
> CPS - Mesa AZ
> http://www.ibobjects.com
>
> ----- Original Message -----
> From: <hans@...>
> To: <IBObjects@yahoogroups.com>
> Sent: Thursday, March 07, 2002 6:08 PM
> Subject: Re: [IBO] CancelUpdates
>
> > All it says:
> >
> > Call Stack - Thread $a9c
> > TIBODatasetInternalSetFieldData(???,???)
> > TIBODatasetSetFieldData(???,???)
> > TIBODatasetSetFieldData(???,???,???)
> > Project1
> >
> > I never use CallStacks. Is there another maybe more informative
> > one ?
> >
> > ================================================================
> >
> > Jason Wharton wrote:
> > >
> > > > Unfortunately yes, that is why I inserted that line
> > > > of code. Now no problem :)
> > >
> > > Please answer my question. What is the callstack on this exception?
> > >
> > > No problem for you but I have thousands of others to be concerned about.
> > >
> > > Jason Wharton
> > > CPS - Mesa AZ
> > > http://www.ibobjects.com
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/