cancel
Showing results for 
Search instead for 
Did you mean: 

impossible to close form without problem

Former Member
0 Kudos

hi,

i'm using visual studio.net , sbo 2005A SP00 PL09

and each time i try to close a form by oForm.close() the form will close but the event handler don't fire an events anymore.

I already used the try catch block but no error will be catched.

Trying to close the form by click()-method of item("2") the same error (no error catched) occurs.

Does anybody got an idea whats going wrong ?

thanks

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Difficult to say with so little description.

It depends in which part of the code you are closing the form. If you are doing it in a event handling part you can enter a deadlock situation. Remember that the code that handles the form and items events in your add-on is working synchronously in the event loop of B1 - although in a separate address space.

Former Member
0 Kudos

hi Gianluigi,

could you sent me an example so that i can see how this works.

In my code it doesn't matter where i close the form. Nothing helps.

Markus

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Markus,

Have you tried to set in the VS.NET Debug menu -> Exceptions -> "Break into the debugger" for all exception types? Sometimes the exceptions are not visible in your program if they are not set to Break into the debugger...

Hope it helps

Trinidad.

Answers (0)