Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unhandled Error Bug Fixed
#2
(05-17-2022, 11:22 AM)TarotRedhand Wrote: Bug Report.

At the top of my code I have the '$DYNAMIC switch.
I have a sub that takes an array as a parameter.
In that sub I REDIM that array.
The code compiles fine.
When run the compiled code I receive an Unhandled Error message for a Duplicate Definition on the line where I REDIM the array. It asks if I want to continue Yes/No. This shouldn't happen. It is a bug with the current version of QB64. It didn't happen in QB4.5.

TR

Did you originally use REDIM for the array and are you REDIM with same type and dimensions?

Wait... 
I don't use '$DYNAMIC switch because STATIC arrays have their place too, often in same code app. 
Does '$DYNAMIC switch apply to library code? Does it go in .BI too? That's when the problem popped up, when you were trying Matrix library, I recall seeing.
Maybe with the switch you shouldn't use REDIM?
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
Unhandled Error Bug Fixed - by TarotRedhand - 05-17-2022, 11:22 AM
RE: Unhandled Error Bug - by bplus - 05-17-2022, 04:05 PM
RE: Unhandled Error Bug - by SMcNeill - 05-17-2022, 06:00 PM
RE: Unhandled Error Bug - by SMcNeill - 05-17-2022, 06:06 PM
RE: Unhandled Error Bug [Fixed] - by TarotRedhand - 05-17-2022, 06:24 PM
RE: Unhandled Error Bug Fixed - by bplus - 05-17-2022, 06:35 PM
RE: Unhandled Error Bug Fixed - by SMcNeill - 05-17-2022, 07:12 PM
RE: Unhandled Error Bug Fixed - by TarotRedhand - 05-17-2022, 06:45 PM
RE: Unhandled Error Bug Fixed - by bplus - 05-17-2022, 07:34 PM
RE: Unhandled Error Bug Fixed - by SMcNeill - 05-17-2022, 08:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is this a bug with Round or is it just me BarrySWTP 10 1,293 07-07-2025, 08:40 PM
Last Post: BarrySWTP
  Exiting FOR NEXT, maybe a bug? Version 4.1.0 on Linux Circlotron 4 866 05-09-2025, 02:22 AM
Last Post: Circlotron
  Compile error when .bas name is same as a directory (linux) Dav 3 808 10-18-2024, 03:32 PM
Last Post: Kernelpanic
  I have fallen in a bug or weird behaviour TempodiBasic 2 694 10-08-2024, 06:09 PM
Last Post: TempodiBasic
  Error Message bplus 3 907 08-20-2024, 09:03 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)