4 Attachment(s)
Unhandled exception in debugged application
Hi,
[ATTACH=CONFIG]14324[/ATTACH]
This is not new in RC1, because I received this message in previous versions of DF20.
[ATTACH=CONFIG]14325[/ATTACH]
1) The error occurs at random, both in 32 and 64 bits.
Often at a different point in the program, which in turn triggers commands from DAW packages, remembering that this does not happen in DF19.
[ATTACH=CONFIG]14326[/ATTACH]
[ATTACH=CONFIG]14327[/ATTACH]
I can repeat the trigger of the message in the following sequence of my program:
a) I call a list prompt.
b) I change a combo object, which in turn, triggers a constrain.
2) It is not a fatal error.
After clicking Ok, the program continues as normal and then does not happen again.
3) If I run the program outside the studio the bug will not happen.
4) As no one reported anything like that, I do not rule out the possibility of incompatibility with my notebook, Intel opting memory, among others:
[QUOTE]
Nome do dispositivo LAPTOP-3NQGVR9H (LENOVO IDEAPAD 330S)
Processador Intel(R) Core(TM)[B][COLOR=#ff0000] i7[/COLOR][/B]-8550U CPU @ 1.80GHz 2.00 GHz
RAM instalada [B][COLOR=#ff0000]4,00 GB[/COLOR][/B]
Edição Windows 10 Home Single Language
Versão 20H2
Instalado em 10/08/2020
Compilação do SO 19042.804
Número de série PE03QQW4
Experiência Windows Feature Experience Pack 120.2212.551.0
[/QUOTE]
Now I tested the studio on another device (Beta 2) and the problem does not occur, and I had noticed this in previous versions thinking that even RC the problem would be solved.
[QUOTE]
Nome do dispositivo VIVO-WKS014 (DELL OPTIPLEX 3050)
Processador Intel(R) Core(TM)[B][COLOR=#ff0000] i5[/COLOR][/B]-7500 CPU @ 3.40GHz 3.41 GHz
RAM instalada [B][COLOR=#ff0000]8,00 GB[/COLOR][/B] (utilizável: 7,73 GB)
Edição Windows 10 Pro
Versão 20H2
Instalado em 10/08/2020
Compilação do SO 19042.804
Experiência Windows Feature Experience Pack 120.2212.551.0
[/QUOTE]
Is there anything I can do besides literally throwing my note out the window?
Or is it still some unforeseen behavior in DF20?
Regards,
Re: Unhandled exception in debugged application
What does the code look like in the ComboForm?
Re: Unhandled exception in debugged application
Hi Edgard,
This error indicates a memory corruption, likely caused by a bug in the software somewhere (hardware issues sound unlikely). To be able to look into this we need to reproduce this issue. You say it is random, so you haven't found a solid pattern to reproduce it? Does it only happen when running with the debugger or also outside the debugger? Does it always happen in the same view, or randomly across different parts of the application?
Regards,
Re: Unhandled exception in debugged application
Hi Mike
In the case in question the combo code is:
[CODE]
Object oStatus_ComboForm is a ComboForm
Set Size to 12 116
Set Location to 212 233
Set Label to "Status:"
Set Entry_State to False
Set Status_Help to "Selecione a status do negócio. Deixe em branco para todos"
Set peAnchors to anBottomRight
Set Label_Col_Offset to 0
Set Label_Justification_Mode to JMode_Top
Object oRecombo_Status is an Array
End_Object
Procedure OnChange
If ((Focus(Desktop))=Current_Object);
Send Recompoe_Constrain
End_Procedure
Procedure Combo_Fill_List
String sType
Integer iCod
Send Combo_Add_Item ""
Clear CodeMast
Move "STATUS_NEG" to sType
Move sType to CodeMast.Type
Repeat
Find Gt CodeMast by Index.1
If (Finderr=False);
Move ( (Trim(Codemast.Type))<>sType) to FindErr
If (FindErr=False) Begin
Move CodeMast.Code to iCod
Set Array_Value of (oRecombo_Status(Self)) item (Combo_Item_Count(Current_Object));
to iCod
Send Combo_Add_Item (Trim(Codemast.Description))
End
Until (FindErr)
End_Procedure
End_Object
[/CODE]
In another application, which I select the combo and regardless of constrain, I receive the message in random lines and parts.
Remember: This is happening on my notebook and not on other desktop equipment and only, when executed by studio when debugging and these same instructions are executed in DF19 without the problem.
Regards
Re: Unhandled exception in debugged application
Hi Harm
I appreciate the quick attention.
Here are comments on your questions:
[QUOTE]
[COLOR=#333333]To be able to look into this we need to reproduce this issue. You say it is random, so you haven't found a solid pattern to reproduce it?[/COLOR]
[/QUOTE]
The message is often random, that is, in several different parts and in different packages.
On my notebook, I can reproduce the error, with the steps provided.
On other desktop equipment the bug does not happen.
[QUOTE]
[COLOR=#333333]Does it only happen when running with the debugger or also outside the debugger?
[/COLOR][/QUOTE]---
With the debugger only.
So if I run the program outside of Studio, the bug will not happen.
If I use the attach to process and in the first execution of the walkthrough - Bang!
After the error, even if I repeat the steps, the message does not appear and it certainly must have something to do with debugger memory initialization.
[QUOTE]
[COLOR=#333333]Does it always happen in the same view, or randomly across different parts of the application?[/COLOR]
[/QUOTE]
From what I managed to find in two different applications and it has to do with the selection of a combo.
I do not receive the message under any other condition.
As today I am on a client's equipment, the bug does not occur, so I say it has something to do with the Notebook - (4 Gb memory and 16 Intel Optante).
I would like to try to do some additional tests, turning off this opting memory and trying to code something like that in order, to help try to solve the mystery.
As it seems to be an isolated fact, I do not want you to look for egg hair. . . unless someone else is experiencing the same problem.
I'm available.
Regards,
Edgard
Re: Unhandled exception in debugged application
You may have something in your watch window that is triggering it.
I have been there.
to find out. take note of your “watch” list evaluations, and remove one by one to test
Re: Unhandled exception in debugged application
Have you put a breakpoint on [COLOR=#333333]Recompoe_Constrain and Press F11 until it crashes ?[/COLOR]
1 Attachment(s)
Re: Exceção não manuseada em aplicação depurada
As I am now on a client's equipment, the bug does not occur, if my memory serves me correctly, it was before onchange because now, I cannot simulate the problem.
In the other application there is no call to constrain after closing the combo.
As the error is often random, I don't see much to debug from my side.
Anyway and using the same logic, I changed the orderheader.sl to later test on the equipment that fails.
Regards,
Re: Unhandled exception in debugged application
Hi Samuel,
Who knows, you have a notebook like or close to mine (df_collate.cfg = portugues), for a test with the orderheader.sl coding sent in the message from Mr. Mike / Focus.
About the wacht it would be nice to have a resource to stop it, when debugging, because it really gets in the way. . . this seems to be on the wish list.
Regards,