forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Estimating the stack requirements for BIG list selections

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
wahorger



Joined: 13 Oct 2014
Posts: 333
Location: Morrison, CO

PostPosted: Fri Apr 15, 2016 3:56 pm    Post subject: Estimating the stack requirements for BIG list selections Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 4730
Location: Salford, UK

PostPosted: Fri Apr 15, 2016 5:10 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 333
Location: Morrison, CO

PostPosted: Fri Apr 15, 2016 6:24 pm    Post subject: Reply with quote

Thanks, Paul. This answers the question precisely. I'll have to re-think and re-work the human interface with this in mind.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group