cancel
Showing results for 
Search instead for 
Did you mean: 

Add-on crashes and form update

Former Member
0 Kudos

Hi there.

I am writing an add-on that updates a businesspartner form from an external application. I have encountered the following problems, that I have yet to solve:

When I press CANCEL or OK in the businesspartners-form, I get the "Unhandled exception at 0x7c901230 in MPos.exe: User breakpoint" at the location of DispatchMessage(&msg); in the event loop, even though I have no events that should respond to these events... (The eventspy usually registers both the FORM_UNLOAD before and after actions before the application crashes)

Another problem I have, is that when I get the data I need, I can fill in the general info directly in the form, but for the addresses and the contacts, I use the DI, since it would be more complex to do this in the form. This works fine. However, I don't get my form to update/refresh the data! I have tried to call both update and refresh on the form object, and the items (id 112 and 69) but I don't see the changes to addresses and contacts before I open a new BP window...

Anyone that can help with either of these problems?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

My C++ debugging has improved lately, so I managed to solve this old problem on my own. Was some buggy code of mine that was the reason for the exceptions.

And I solved the refresh-problem by programming the Form to go into find-mode, enter the appropriate key and simulating a click on ok.

Former Member
0 Kudos

I still haven't worked this out. Any ideas?

FOA
Advisor
Advisor
0 Kudos

Regarding the exception, can you post some code where it happens?

Thxs,

Felipe