Re: Win32Lib bug?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Larry Miller wrote:
> 
> I am having a problem with Win32Lib v .60.6, although it might possibly be my
> code.
> In any case this is the situation:
> 
> My application opens a modal dialog box with a listview control. The first 
> time it opens and closes with no errors or warnings. But if the dialog is 
> opened a second time I receive the following warning from Win32Lib:
> Error code 497
> getHandle: Object is destroyed
> 
> The Listview requires no images and none have been added with addIcon but 
> it does use the LVS_EX_CHECKBOXES extended style.
> The problem only occurs when the dialog window is destroyed, not if it is
> simply closed.
<snip>

If you are opening the dialog more than once, then why are you destroying it?
You can't use something you've destroyed; that's why you get the error...

-- Brian

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu