VB6 form in Visio 2002 window

F

Fabian

Hi,

In a vb6 com add-in for Visio 2002, I use a (docked) visio window to
display a VB6 form. This is done like the docked window example
provided with MS Visio 2000. (Using api calls)

This works just fine. However when Visio is closed after the form in
the window got the focus once ( or more), visio crashes after it seems
to be closed. A "Microsoft Visio has encountered a problem..."
dialogue is showed, with the option to send an error report to MS or
to restart Visio.
It doesn't matter whether first the document where the window is
docked in, is closed, or if Visio is directly closed. It occurs always
after closing Visio and only if the form got the focus at least once.

So a typic short scenario is as follows:
Start visio, create new document, --plugin makes window, form and
etc--, click once in the form in the docked window , close visio,
visio seems to be closed, problem dialogue shows up.
Allthough the dialogue does not seem to have any impact, it appears
rather sloppy in a add-in

As I might add, no code is executed on the mousclick in the form.

Has anyone suggestions how to fix this issue, or what could cause it ?

Thank you in advance.

Fabian, TU/e
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top