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.
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.
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.
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?
Who is online
Users browsing this forum: No registered users and 1 guest