braydenanderson2014 / C-Arduino-Libraries

This repository contains C++ and Arduino Libraries that are lightweight and easy to use. All libraries were created/mimicked by me and chatgpt.
Apache License 2.0
13 stars 0 forks source link

Hashtable not adding all elements to the table #34

Closed braydenanderson2014 closed 11 months ago

braydenanderson2014 commented 11 months ago

Describe the Issue Hashtable may not be resizing correctly which may be causing the table to not add each element after a certain size. (Issue may be due to memory constraints.)

Library Name and Version: Name: Hashtable Version: 1.0.8

Environment:

Library Source:

Expected Behavior List should resize properly and add each element into the table properly

Actual Behavior Table gets to about 26 elements before throwing an error. (Using a forloop)

To Reproduce Steps to reproduce the behavior:

  1. Include library '...'
  2. Initialize the library '...'
  3. See error

Error Message & Code Snippet If applicable, add the error message and the piece of code that causes the issue.


// Your code that triggers the error
Screenshots
If applicable, add screenshots to help explain your problem.

Additional Context
Add any other context about the problem here.

<!-- End of the issue report template. -->
braydenanderson2014 commented 11 months ago

Issue seems to be a memory constraint for the Uno. When using a Simulated Mega, the table resizes perfectly and has no problems. All elements get added with no problems. Cap on uno seems to be about 86 elements.