#1 2011-07-26 09:26:10

jonsafi
Member
Registered: 2011-07-26
Posts: 58

Access violation when running MainDemo with D2009

Hello,

This Framework looks great! Downloaded latest source,
run the TestProject, only 1 failure in Pdf module which
I figure was minor.

However, when running 'MainDemo' on D2009 (Win XP)
get an access violation  in  unit SQLite3ToolBar, traced to line 2476, where the error occurs on the 2nd pass
of the loop:
---

for aPage := 0 to PagesCount-1 do begin 
    if TP^.CustomHint<>nil then  // error! 

---------------
So the stmt:
if TP^.CustomHint<>nil then 
seems to fail the 2nd time it's executed.

Thanks for any help,
Regards Sami

Offline

#2 2011-07-26 09:50:30

Leander007
Member
From: Slovenia
Registered: 2011-04-29
Posts: 113

Re: Access violation when running MainDemo with D2009

This is somehow related to the Delphi 2009 object (keyword) issue .

You can see that "TP is an object" which is inherited from other object. So the quick solution (for now) is that you copy all fields from source object to the target object and the demo works then in Delphi 2009 too.


"Uncertainty in science: There no doubt exist natural laws, but once this fine reason of ours was corrupted, it corrupted everything.", Blaise Pascal

Offline

Board footer

Powered by FluxBB