TD .Net Crash

Discussion forum about all things Team Developer 7.x
TWitte
Germany
Posts: 4
Joined: 06 Nov 2017, 13:07
Location: Munich

TD .Net Crash

Post by TWitte » 03 Jul 2018, 11:26

Hi,

my App keeps crashing silent on some points of the code. In one example it is just a normal function call with one parameter.
If I try to step into the function the IDE closes.
I tried to rewrite the function, the function call, saved the code as apt, checked for any unwanted blanks.

It must have something todo with TD .Net because if I execute the app as Win32 it works without any errors.
Is there a way to log the .Net errors?

Did anyone have had the same problem and know how to fix it?

I tried to create a testcase but the code works then without any problems.

Thank you.

a_sivababu
India
Posts: 62
Joined: 10 Mar 2017, 08:46
Location: Chennai,India

TD .Net Crash

Post by a_sivababu » 05 Jul 2018, 06:33

Hi,
There is no direct answer from me but I generally do this in TD .NET if I get any issues

1. Change the function name and test it
2. Make sure that function name has properly defined if it is late bound like Return Value etc.
3. if did not work then I change the place/event to call this function.

I am not sure whether this will solve the issues but give a try.


Just to note - Defining Namespace in TD 7.1 .NET is important if you are creating/migrating any web services or DLL to this version as it throws error in IIS.

Thanks
Siva A

TWitte
Germany
Posts: 4
Joined: 06 Nov 2017, 13:07
Location: Munich

TD .Net Crash

Post by TWitte » 05 Sep 2018, 08:20

Hi,

thank you for the answer. Meanwhile the problem changed from not crashing to losing context.
The IDE cannot show the code of the function called. If I use the button "go to break" the app crashes. There is no debugging possible.
After some clicks on "step over" the IDE returns to the next line below the function call.

This happens in 7.0.0 over all versions to 7.1.0

Is there any unknown limit in depth of function calls?
This is a huge problem for using .net with TD.
Besides the fact that some errors are not shown properly (did I miss something? Any way to show the real .Net errors?), I have no chance to debug and find an error.

Any help appreciated.

Thank you

Timo

Holger
Germany
Posts: 9
Joined: 07 Mar 2018, 13:43
Location: Oberkirch, Germany

Re: TD .Net Crash

Post by Holger » 20 Sep 2018, 06:53

Hi Timo,

did you write the .NET Code, or do you have access to it?
If I have to write components in C# which I call from SQLWindows, then I log all errors in C# via log4net and JSON serialization (Newtonsoft JSON.NET NuGet Package).
With this combination I was able to find every error so far.

Otherwise I think there is a message (SAM_NetException), which is thrown if any Exception occurs in .NET. Didnt do anything with it so far, but perhaps worth a look?

Regards,
Holger

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests