Skip to Content
author's profile photo Former Member
Former Member

Add-on crashes and form update

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2005 at 05:34 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2005 at 08:03 AM

    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. 😊

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.