12-31-2018, 05:09 PM
I have been butting my head against a wall for a couple of days so I thought I would post my issue here in hopes someone else has run into this. I have latest Delphi 10.2 and Intraweb 15 installed with the bootstrap components from IW. I have a number of forms in my application but the issue is the one with the interactive DB Grid. All was working fine until I added in the resource maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css and other supporting libraries. All a sudden, my grid lost its title centering and padding which I solved with custom CSS.
I am using bootstrap for a star rating plugin that I display in the grid to show the rating of a particular customer entity. I have a number of filters in combo boxes on the screen that I have click events for all a SQL Sever sproc that feeds in the value selected to then return the result set that is fed into the grid. The starting point is no data and the user has to choose at least one filter to start seeing data.
So here is the weird stuff. When the form first loads, I can select a filter and the first set of data loads perfectly. I try to select the second filter and WHAM the application crashes with access to an unknown memory location (Access violation at address 000000000040E045 in module 'OwnerBuilder.exe'. Read of address FFFFFFFFFFFFFFFF). If I try to refresh the browser I also receive the crash. So any time there is a data refresh and the DBGrid tries to render again, this is where I receive my crash.
I changed the filters to async clicks and then I go to another form with a button click that displays the details for that customer and the data is totally fine under the hood and when I return to the main form with TfMainForm.Create(WebApplication).Show, the grid is rendered fine with the latest filter change I had completed. So the issue is when the grid is attempting to render when the dataset has changed when I get the crash. So the workaround is to set the filter(s) async and then go to another form and return and all is well which of course is no good for production use and is just for testing to isolate the issue.
To add clarity, I only am using the bootstrap for the graphic star display inside the grid using a CSS class off that specific control in that 1 cell. The grid is 100% native IWDBGrid component.
If anyone has any ideas or comments I would be very appreciative.
Cheers.
bob
I am using bootstrap for a star rating plugin that I display in the grid to show the rating of a particular customer entity. I have a number of filters in combo boxes on the screen that I have click events for all a SQL Sever sproc that feeds in the value selected to then return the result set that is fed into the grid. The starting point is no data and the user has to choose at least one filter to start seeing data.
So here is the weird stuff. When the form first loads, I can select a filter and the first set of data loads perfectly. I try to select the second filter and WHAM the application crashes with access to an unknown memory location (Access violation at address 000000000040E045 in module 'OwnerBuilder.exe'. Read of address FFFFFFFFFFFFFFFF). If I try to refresh the browser I also receive the crash. So any time there is a data refresh and the DBGrid tries to render again, this is where I receive my crash.
I changed the filters to async clicks and then I go to another form with a button click that displays the details for that customer and the data is totally fine under the hood and when I return to the main form with TfMainForm.Create(WebApplication).Show, the grid is rendered fine with the latest filter change I had completed. So the issue is when the grid is attempting to render when the dataset has changed when I get the crash. So the workaround is to set the filter(s) async and then go to another form and return and all is well which of course is no good for production use and is just for testing to isolate the issue.
To add clarity, I only am using the bootstrap for the graphic star display inside the grid using a CSS class off that specific control in that 1 cell. The grid is 100% native IWDBGrid component.
If anyone has any ideas or comments I would be very appreciative.
Cheers.
bob