Icon View Incident Report

Serious Serious
Reported By: Eivind Brenne
Reported On: 12/2/2016
For: Version 2.05 Build 4
# 4470 TEWBDatabaseAdapter Commit Method Causing Access Violation

I have been off EWB coding for about 6 months now, and ran into an unexpected Access Violation in Delphi code that have worked for years prior to this. I'm running my server code in ISAPI dll created by Delphi and plugged into IIS. This have worked smoothly for me until now.

I'm using the TEWBDataSetAdapter.BuildRows() to create the JSON packages sent in return to the EWB app. Actually, I saw there was come changes to the BuilRows() method as well. It now needs a TString, and optional username and password. All good there after I changed that in code. Data is served perfectly to the EWB App.

However, I cannot get the commit to work. In the EWB app, I started using Database.AutoTransactions which is great and the commit fires correctly from the app. In the IIS I can debug the data coming from the EWB app and it contains the JSON package with the commit data. Previously I have forwarded the JSON commit data to the EWBDatabaseAdapter using the EWBDatabaseAdapter.Commit(PostData) (PostData contains the JSON data correctly). The OnGetDataSetAdapter procedure is already set up and have been working previously to return the correct DataSetAdapter. However, when executing the EWBDatabaseAdapter.Commit(PostData), an Access Violation is immediately raised and the OnGetDataSetAdapter is never called.

Resolution Resolution
Fixed Problem on 12/6/2016 in version 2.06 build 1

Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial
Elevate Web Builder Modules