Atozed Forums

Full Version: IntraWeb Lazarus AsyncRender
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I'm a Pascal (Lazarus/Delphi) and C# developer and I'm starting to use IntraWeb.
I recently purchased IntraWeb Ultimate Edition and the summary is that in 2025 I want to migrate my company's systems to IntraWeb Lazarus.

Studying the tool, I manually migrated the AsyncRender example from Delphi to Lazarus 3.6. When executing the commands listed below, the same "ACCESS VIOLATION" error occurs

Code:
FRegion := TIWRegion.Create(Self);
FRegion1 := TIWRegion.Create(Self);
FTabControl := TIWTabControl.Create(Self);
FAccordion := TIWjQAccordion.Create(Self);
FjQPageControl := TIWjQPageControl.Create(Self);

Do I need to make some corrections to my code or is it an IW error?

[attachment=819]

[attachment=820]
An Access Violation near address $00000000 usually means that you are accessing a nil pointer. You need to debug your code to find it.
(12-30-2024, 06:15 PM)rlebeau Wrote: [ -> ]An Access Violation near address $00000000 usually means that you are accessing a nil pointer.  You need to debug your code to find it.

You are correct!. It is necessary to debug, but the address of the ACCESS VIOLATiON error is on line 401 of IWContainerBorderOptions.pas, which is part of IntraWeb.
The error likely means that GetPixelWidth() is being called on a nil TIWContainerBorderOptions object/interface pointer. $38 is likely the offset of the FControl member inside the TIWContainerBorderOptions class.
Version 16.0.7 - Bug fix

  • Exception in Lazarus when creating IWRegion at runtime
Yes, 16.0.7 fixes it.

Lazarus has a different initialization sequence compared to Delphi which causes an AV when creating regions at runtime