Atozed Forums
IntraWeb Lazarus AsyncRender - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: IntraWeb Lazarus AsyncRender (/thread-4848.html)



IntraWeb Lazarus AsyncRender - almsoares - 12-30-2024

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?

   

   


RE: IntraWeb Lazarus AsyncRender - rlebeau - 12-30-2024

An Access Violation near address $00000000 usually means that you are accessing a nil pointer. You need to debug your code to find it.


RE: IntraWeb Lazarus AsyncRender - almsoares - 12-30-2024

(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.


RE: IntraWeb Lazarus AsyncRender - rlebeau - 12-30-2024

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.


RE: IntraWeb Lazarus AsyncRender - almsoares - 03-10-2025

Version 16.0.7 - Bug fix

  • Exception in Lazarus when creating IWRegion at runtime



RE: IntraWeb Lazarus AsyncRender - Alexandre Machado - 03-11-2025

Yes, 16.0.7 fixes it.

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


RE: IntraWeb Lazarus AsyncRender - mschways - 08-04-2025

Hi I made a test with TIWRegion in Lazarus


1. If have I have a nearly  empty form only a TIWRegion component -> It fails to compile due to a lfm parsing error.

2. Like above an empty form but than filled one TIWRegion and in the TIWRegion an TIWEdit -> correct compiling and linking.


Result: A TIWRegion Component must have at least one other component inside for a correct compile.

 

Regards // Martin