Author Topic: [SOLVED] Lazreport Error  (Read 250 times)

Petrus Vorster

  • Sr. Member
  • ****
  • Posts: 276
[SOLVED] Lazreport Error
« on: October 13, 2026, 11:21:58 am »
Hi All

I am getting an odd error from Lazreport.
Especially when I am NOT using it or calling any reports.

I dont understand the 'background workings' of Lazreport, but I get these constant ACCESS VIOLATION errors, mostly with different references, but almost always refers to an error in
Code: Pascal  [Select][+][-]
  1. Lazmethodlist :procedure TMethodList.Add(const AMethod: TMethod);
usually at
Code: Pascal  [Select][+][-]
  1.     ReAllocMem(FItems,FCount*SizeOf(TMethod));      

I am stuck in this project with DBF since it a huge bunch of data, but this bug is driving me nuts.

Something, somewhere in the background is causing errors and it usually pops up after I filtered some data in a dataset, but its irregular and I cannot point to the origin.

Some thoughts please!

-Peter

« Last Edit: October 14, 2026, 09:06:15 am by Petrus Vorster »

Thaddy

  • Hero Member
  • *****
  • Posts: 19978
  • Pointless static linking author
Re: Lazreport Error
« Reply #1 on: October 13, 2026, 12:31:31 pm »
SizeOf(TMethod));??

Anyway, I need a lot more code to help you....(compilable, please, but not really necessary)

Meanwhile add a stacktrace.
« Last Edit: October 13, 2026, 12:35:17 pm by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

jamie

  • Hero Member
  • *****
  • Posts: 8071
Re: Lazreport Error
« Reply #2 on: October 13, 2026, 11:33:30 pm »
Turn on Range Checking and Overflow checking etc.
Sounds like you are stepping on someone else's turf.

Jamie
The only true wisdom is knowing you know nothing

Petrus Vorster

  • Sr. Member
  • ****
  • Posts: 276
Re: Lazreport Error
« Reply #3 on: October 14, 2026, 09:05:46 am »
I think its sloppy coding on my side.

I have started breaking down larger functions into more manageable procedures so I don't have to work through 100 lines of code to find a missing comma or something.

I completed other, larger projects without any hiccups, so this just needs to be re-planned and re-build.

Going to close this thread.

Thanks mates.

-Peter

 

TinyPortal © 2005-2018