0

I have a problem troubleshooting what's wrong with software I've been working on.

This is my company's code so I can go into details (pasting code and so on).

Anyway - I have a piece of C# & WPF DataGrid. It's behaving strangely. On some computers it works fine, on others it works like that - you put some value into 1 or more cells and the same values shows few rows below. However it only on view side, because if you click on the cell real value appears. Also when scrolling cells are "loosing" real value.

I found similar questions, but it was stricly connected with the code. I don't think that my case is code related - it looks more like a environment related.

I compared two of my machines (on one it is working, on second it's not) and main difference is Visual Studio installed.

Do you have any idea how to determine what's the reason of that different behavior? What tools can I use? What to look for?

EDIT:

Environments are different (all 4 I know about): - 1 is a physical machine (Windows 10), 3 are Virtual Machines (Windows 7)

  • On 2 of VM it works, on other 2 machines it does not

  • (from here I'm talking only about my 2 machines, both VM)

  • Both compilled (debug or release) and installed are working on one of my VM. Moving compilled version to other machine results in the same problem.

  • Both machines has Visual Studio 2015 installed

  • Targeted Net Framework is 4.6.2. Installed on both machines are

Net Framework
4.5
4.5.1
4.6
4.6.1
4.6.2
4.7.2

Not working:

MVC++ Redistributables
2008 x64 9.0.30729.6161 
2008 x86 9.0.30729.4148 
2008 x86 9.0.30729.6161 
2010 x64 10.0.30319 
2010 x86 10.0.30319 
2012 x64/x86 11.0.60610 
2012 x86 11.0.61030 
2013 x64/x86 12.0.21005 
2015-2019 x64/x86 14.22.27821

Working:

MVC++ Redistributables
2005 8.0.56336
2008 x64 9.0.30729.6161 
2008 x86 9.0.30729.4148 
2008 x86 9.0.30729.6161 
2010 x64 10.0.30319 
2010 x86 10.0.30319 
2012 x64/x86 11.0.60610 
2012 x86 11.0.61030 
2013 x64/x86 12.0.21005 
2017 x68/x86 14.15.26706
  • Code mixes C# and C++ with some external libraries.

  • There is only one HotFix that is installed on the machine where it does work and not on the other: KB4507449. There are some additional installed on the machine where it doesn't work.

  • Simple example with DataGrid works OK.

Edit: Do you know any easy way to compare dll being used?

  • Please do not provide code. Programming questions are out of scope here at Super User. If you feel your question cannot get an answer without submitting code, the replicates the problem you are trying to solve, you should delete this question and simply submit your question to Stack Overflow. However, if you stick to the environmental differences, you have to tell us about the environments. Otherwise, we will be unable to answer your question, and in its current form anyone with significant knowledge about C# applications wouldn't be able to submit an answer (like myself). – Ramhound Sep 12 at 6:20
  • I eddited my question. I hope it helps – matt Sep 12 at 6:54
  • "All machines have a lot of "Microsoft Visual C++ xxxx Redistributable"" - What versions specifically? Does your application use it? If your application does not then this factoid is not relevant. What version of the .NET Framework do you have installed on each machine? What version of the .NET Framework are you targeting? What version of Visual Studio are you using? What .NET Targettting Pack do you have installed? Do not submit a comment, edit your question, and remove/add relevant details to your question. "I have VS installed' is unhelpful; "I have VS 2019 15.2 installed is helpful" – Ramhound Sep 12 at 6:58
  • If you wrote it all yourself then you should write a simple example that is open source(to all), and doesn't have anything company specific and has the problem. – barlop Sep 12 at 7:17
  • Maybe your issue is graphics card related? Why don't you try a little program with a datagrid view full of data and scroll it and see if you run into that – barlop Sep 12 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.