By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,337 Members | 1,323 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,337 IT Pros & Developers. It's quick & easy.

Listbox handle - crash...

P: n/a
When i pass a handle of a listbox to a DLL, and itens
are inserted in the listbox, the application crashes whith
a "System.ArgumentOutOfRangeException" when i click any
of the new itens.
A turn arround is to fill the listbox whith some itens,
clear the listbox inside the DLL and thens insert the new
itens up the number of itens previously inserted.
This is a bug. The 'framework' do not check the index
whith the listbox window, it uses someother value inside
the object, a very bad programing technique and a font
for many applications crash.
Is not difficult to find applications inserting data
into another via window handle, a tradidional practice in
windows programming.

{} Carlos.
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.