Hi guys, I have a software program that has a C++ executable as well as a visual basic DLL which is used to handle all kinds of engineering calculations....
A strange problem I have come across is a bug reported by a user where a variable input from the user, which should only change the final answer by the difference of the input, causes a jump in our calculated result. Let me put it like this, you have 3.00mm as an input, and the output is 68.99. When 3.01 is put in as an input we get 77.03, and when 3.02 is put it we get 77.04, etc.... (This 68.99 number is just WRONG)
So trying to track down this bug, I open visual studio and go step into this god awful iterative routine for solving this stuff, and the ERROR DOES NOT OCCUR. OK, but it still occurs on my pre-compiled version ?
Next, I tried to add a bunch of lines to write all of the variables pertinent to this section out to a debug log since the error that occurs doesnt happen when im in "debug", yet I still need a way to track it down. Well, I still havn't been able to track down where this problem is originating, but I do know that after I log about 15 lines of data, the problem with this variable somehow recorrects itself.
Does anyone have any clue wtf might be the problem? I am not a computer scientist, but rather an engineer and this doesnt make any sense to me.
All help appreciate,
Solaris
A strange problem I have come across is a bug reported by a user where a variable input from the user, which should only change the final answer by the difference of the input, causes a jump in our calculated result. Let me put it like this, you have 3.00mm as an input, and the output is 68.99. When 3.01 is put in as an input we get 77.03, and when 3.02 is put it we get 77.04, etc.... (This 68.99 number is just WRONG)
So trying to track down this bug, I open visual studio and go step into this god awful iterative routine for solving this stuff, and the ERROR DOES NOT OCCUR. OK, but it still occurs on my pre-compiled version ?
Next, I tried to add a bunch of lines to write all of the variables pertinent to this section out to a debug log since the error that occurs doesnt happen when im in "debug", yet I still need a way to track it down. Well, I still havn't been able to track down where this problem is originating, but I do know that after I log about 15 lines of data, the problem with this variable somehow recorrects itself.
Does anyone have any clue wtf might be the problem? I am not a computer scientist, but rather an engineer and this doesnt make any sense to me.
All help appreciate,
Solaris