Subject Memory increase ProcessPassiveTasks
Author dewolfkoen
Hi all,

I have written an application which syncs a folder structure with a database (for some doc mgnt).

I noticed that at some point during the sync the memory consumption keeps increasing (until I run out of memory) and the sync is halted. When I pause the program and look at the stack; this is what I get:

TIB_Dataset.SysFetchNext
SysLookupKeyForFields
TIB_BDataset.LookupKeyForFields
TIB_BDataset.SetBookmark(???)
TIB_Dataset.SysRefresh(False,???)
TIBOInternalDataset.SysRefresh(False,True)
TIB_Dataset.RefreshKeys
TIB_Transaction.SysProcessCommitAction(False,True,False,False)
TIB_Transaction.SysCommiEnd(False)
TIB_Transaction.SysCommit(???)
TIB_Transaction.Commit
TIB_Transaction.SysTimeOutAttempt(True)
TIB_Transaction.ProcessPassiveTasks(True,False,False)
TIB_Session.ProcessPassiveTasks(True,False,False)
TIB_Session.WndProc(???)
ExecuteSync

As far as I can see; some IBO under the hood processing halts my application.

The odd thing is that sometimes I don't have this problem (but most of the time I have).


Can someone tell me what is going on here and what I can do about it?

I use IBO 4.9.9, Delphi 7

best regards,

Koen