G
Guest
Hi,
In my app I am using the FileOpenDialog. When I open it using ShowDialog and
move the box around a bit, or browse a few folders, the filedialog gives me
this odd exception and I don't have a clue how to fix it. Here is the
exception description:
"DisconnectedContext was detected
Message: Context 0x1a22e8' is disconnected. Releasing the interfaces from
the current context (context 0x1a2008).This may cause corruption or data
loss. To avoid this problem, please ensure that all contexts/apartments stay
alive until the applicationis completely done with the
RuntimeCallableWrappers that represent COM components that liveinside them."
I have stripped down the app until only a form was left without any
components on it. I open the dialog on the KeyDown event. I tried to remove
the references and put them back in. And of course, I rebuilt the project
several times. So, there is virtually no code in the project anymore and
still the FileOpen box throws an exception.
I also tried to create another app that does the same, but I cannot
reproduce the same behaviour.
Some possible hints:
-The first time the box is openend, XP's firewall displays a message whether
I should block or unblock this app. I chose to unblock it, but I also tried
the other options once.
-Opening the dialog incurs a small delay, this normally does not happen.
I am using the RC with the 2.0 framework.
Any help would be great.
Regards,
Jelle
In my app I am using the FileOpenDialog. When I open it using ShowDialog and
move the box around a bit, or browse a few folders, the filedialog gives me
this odd exception and I don't have a clue how to fix it. Here is the
exception description:
"DisconnectedContext was detected
Message: Context 0x1a22e8' is disconnected. Releasing the interfaces from
the current context (context 0x1a2008).This may cause corruption or data
loss. To avoid this problem, please ensure that all contexts/apartments stay
alive until the applicationis completely done with the
RuntimeCallableWrappers that represent COM components that liveinside them."
I have stripped down the app until only a form was left without any
components on it. I open the dialog on the KeyDown event. I tried to remove
the references and put them back in. And of course, I rebuilt the project
several times. So, there is virtually no code in the project anymore and
still the FileOpen box throws an exception.
I also tried to create another app that does the same, but I cannot
reproduce the same behaviour.
Some possible hints:
-The first time the box is openend, XP's firewall displays a message whether
I should block or unblock this app. I chose to unblock it, but I also tried
the other options once.
-Opening the dialog incurs a small delay, this normally does not happen.
I am using the RC with the 2.0 framework.
Any help would be great.
Regards,
Jelle