Silverfrost Forums

Welcome to our forums

Estimating the stack requirements for BIG list selections

15 Apr 2016 2:56 #17425

I am trying to estimate the additional stack/heap requirements for large list selections controls (%ls). Some of the %ls controls have as many as 5000 items of 16 characters each. When I'm creating the dialog for use, I get a crash without a call back to tell me why. I make the possible list smaller (1/2 size) and all runs fine.

Is the memory for the control allocated in the stack or the heap, and how much 'room' is expected for such controls?

Also is there a way to see how much of the stack or heap one is currently using? This would be a great way to see how close to the edge I've taken the code!

Bill

15 Apr 2016 4:10 #17426

A listbox is a Microsoft control with a maximum size of 64K characters. I don't think that this can be increased but here is a link to get you started.

https://msdn.microsoft.com/en-us/library/ms997541.aspx

15 Apr 2016 5:24 #17428

Thanks, Paul. This answers the question precisely. I'll have to re-think and re-work the human interface with this in mind.

Please login to reply.