cancel
Showing results for 
Search instead for 
Did you mean: 

stepping through business one causes add on to fail

former_member551008
Participant
0 Kudos

business one 8.8

I am having an issue where I am stepping through an add-on and it's events in the visual-studio 2012 debugger.

If I take to long to step through my add on fails.

I'm just curious why this happens.

Is it because the events are timed and have to be executed in a set amount of time?

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor

Hi Derek,

Is it because the events are timed and have to be executed in a set amount of time?

Not exactly a timer, but you can say that it is.
If you want, you can spawn another thread that execute only this line every couple of minutes:

SBO_Application.RemoveWindowsMessage(BoWindowsMessageType.bo_WM_TIMER, true);

Note: This is available since 882 can't remember exactly.

But, I would not do this just for debugging purpose.
The actual purpose of the code was too solve the problem of addon crashing when processing a large amount of data and take considerate amount of time. (Yes, this would cause the addon to crash also, not only when debugging).

Regards
Edy

former_member551008
Participant
0 Kudos

Thank you.

paolo_fornari3
Participant
0 Kudos

Hi,
have you tryed this solution ? does it works ?
Is application object thread safe ?

Thank you

Answers (0)