I found that the test case that I sent you is not the best to track the problem...
It happens very clearly in my application but the deplotment might be difficult.
When I am debugging, everytime I query data from the database the eveng log shows:
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Heap block at 00F523D8 modified at 00F523E1 past requested size of 1 Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Invalid Address specified to RtlFreeHeap( 00F50000, 00F523E0 ) Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Heap block at 00F52450 modified at 00F52459 past requested size of 1 Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Invalid Address specified to RtlFreeHeap( 00F50000, 00F52458 ) Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Heap block at 00F52250 modified at 00F52259 past requested size of 1 Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Invalid Address specified to RtlFreeHeap( 00F50000, 00F52258 ) Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Heap block at 00F52898 modified at 00F528A1 past requested size of 1 Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Invalid Address specified to RtlFreeHeap( 00F50000, 00F528A0 ) Process VCLServiceTest.exe (2592)
Thread Start: Thread ID: 1604. Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Heap block at 00F528D8 modified at 00F528E1 past requested size of 1 Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Invalid Address specified to RtlFreeHeap( 00F50000, 00F528E0 ) Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Heap block at 00F527F8 modified at 00F52801 past requested size of 1 Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Invalid Address specified to RtlFreeHeap( 00F50000, 00F52800 ) Process VCLServiceTest.exe (2592)
Thread Start: Thread ID: 3348. Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Heap block at 00F523F8 modified at 00F52401 past requested size of 1 Process VCLServiceTest.exe (2592)
Debug Output: HEAP[VCLServiceTest.exe]: Process VCLServiceTest.exe (2592)
Debug Output: Invalid Address specified to RtlFreeHeap( 00F50000, 00F52400 ) Process VCLServiceTest.exe (2592)
I can send u my app but I have to send the database as well...
Sorry for any inconvenience.
Thanks.