|
-
Sep 7th, 2010, 08:49 AM
#1
Thread Starter
Lively Member
[RESOLVED] function gives 2 different outputs
Hi all,
I have a very strange thing going on...I got a lot the CheckErrorStatus (Int32) error...and so I started to dig into my created functions.
At the end I found what gave that error and so I added a new breakpoint on both computers where I want to run it (one is the developping computer, the other is the clients computer).
Developping computer : Windows 7, VS2008, .NET Framework 3.5SP1
Clients computer: Windows XP SP3, VS2008, .NET Framework 3.5SP1
the code of the function is a follows:
Code:
Function convert_nm_pixels_x(Byval distancex as Decimal) as Decimal
convert_nm_pixels_x = Math.Round((distancex*grid_ratio_x)/10 + Main.graph.Width/2,4)
end function
With distancex is in fact the X-part of a geographic coordinate
With grid_ratio_x is the ratio of how many pixels is 1degree...
graph.Width is the width of the picturebox.
Can somebody tell me, or give me some ideas how it can that with the same input this function gives 2 differents (of which one is fault) output?
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|