|
When you say decompile do you mean by using a tool like Reflector?
|
|
|
|
|
Yep.
Seriously, this happened because of a lack of controls of the source code and management of the change system.
Now you're paying the price for it.
|
|
|
|
|
One final thought I had was to download the production project dll's and one at a time for each dll load the project's code from source control into Visual Studio as a individual projects. Next, make sure all of the production dlls, exception for the one who's source code is being build are referenced, compile in release mode, then compaire file sizes. Does this this make since?
|
|
|
|
|
It MIGHT work, but you have several possible problems.
First, you have no idea if the code in source control is CURRENTLY the code that produced the .DLL's. The code may have been modified since the release of the .DLL's.
You also don't know if the .DLL's are compiled as RELEASE or as DEBUG. Yes, I've seen both in production.
You also have a problem where it is possible to product the same size executable from two different sources. You have no idea if constants have been modified or something similar.
It's going to take a lot more comparison besides just looking at file sizes. You're going to have to do a byte-by-byte compare of the resulting executables.
|
|
|
|
|
Dave, thanks for your advise. I can see what's in source control and production and go from there.
|
|
|
|
|
Even a byte-by-byte comparison may not work.
A some point in the past, Microsoft compilers started adding information to each executable file (timestamp?), so that compiling the same source twice in succession didn't create identical executable files.
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G.K. Chesterton
|
|
|
|
|
Message Closed
modified 25-May-16 17:36pm.
|
|
|
|
|
That assumes the code hasn't been modified since the project was last deployed.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
comment faire un projet paint avec animation en xaml et c#
|
|
|
|
|
|
Yeah, I had no idea what he was posting and, frankly, putting my name in a subject line was creepy as hell.
|
|
|
|
|
I deleted the other two posts before this went all Single White Female.
This space for rent
|
|
|
|
|
Can VB.Net allow to create drill down for datagridview in windows application ?
modified 25-May-16 2:32am.
|
|
|
|
|
|
Hi,
I'm wondering if any of you know what is the maximum number of .NET Framework CLR Runtimes that can be installed on a computer ?
I'm writing an application, that loads a specific Runtime, and, the first function I wrote enumerates through the installed Runtimes, using the ICLRMetaHost, IEnumUnknown, and ICLRRuntimeInfo interfaces. This function works correctly (I have two installed runtimes on my computer).
Thanks for any information.
|
|
|
|
|
As far as I'm aware:
- 1.0 and 1.1 were separate CLRs, but only came in 32-bit versions;
- 2.0 has both 32- and 64-bit versions;
- 3.0 and 3.5 used the same CLR as 2.0;
- 4.0 has both 32- and 64-bit versions;
- 4.5 and 4.6 are in-place upgrades to 4.0;
So depending on whether you count 32- and 64-bit CLRs separately, the answer is either 4 or 6 (at the moment).
Of course, if Microsoft ever decide to release a new version of the framework that isn't an in-place upgrade to 4.0, the answer will change.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Why would there be a maximum?
|
|
|
|
|
Richard Deeming and Dave Kreskowiak,
Hey, thanks for the information. Yeah, I should have mentioned either 32-bit or 64-bit versions (my app is a 32-bit version running on WOW64). More than anything, I'm just curious,...
|
|
|
|
|
Hi guys,
I got new project that I need to finish asap and I'm almost done, my app is working perfect but now I have problem which I have to fix asap. Problem is with connecting to mysql database ( remote ). My database server is installed on one server which have static IP, given by my routers DHCP, and i dont have any problem connecting when im in my WORKGROUP. now my question is, is it possible that i predefine in my connection string so i can connect to that database when im at my home ( so i do not have to connect to vpn manualy ). ?
here is my conn string
dim konekcija as new sqlconnection
konekcija.connectionString =
"Data Source=SERVER IP,PORT;Network Library=DBMSSOCN;Initial Catalog=MYDATABASE;User ID=USERNAME;Password=MYPASS;>"
|
|
|
|
|
If you're talking about connecting to your MySQL server from outside of your network and you need to connect VPN first to get at it, there is NOTHING you can put in the connection string that will change that. You will still have to connect VPN manually first. The DbConnection objects don't know anything about connecting a VPN first.
|
|
|
|
|
Thank you for you answer now i can stop searching.
Thank you again
|
|
|
|
|
Quote: My application creates a chart in Excel, then exports the chart as a .png file.
It works fine the first time i generate a chart, But when i do it a second time i get this error.
An unhandled exception of type System.Runtime.InteropServices.ExternalException; occurred in System.Drawing.dll
Additional information: A generic error occurred in GDI+
Code where i get an error.
Dim workbook As New Workbook()
workbook.LoadFromFile("Test.xls")
Dim sheet As Worksheet = workbook.Worksheets(0)
Dim imgs As Image() = workbook.SaveChartAsImage(sheet)
imgs(0).Save(String.Format("img-0.png", ImageFormat.Png))
Me.PictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
Me.PictureBox2.TabIndex = 1
Me.PictureBox2.TabStop = False
PictureBox2.Image = Image.FromFile("img-0.png")
|
|
|
|
|
I would check that the "img-0.png" file is not still in use when you are trying to create the second chart.
I.e. It's properly disposed of before you attempt to create another image with the same name.
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
This is a known problem with the Image.FromFile method:
This occurs when you set the Image property of a PictureBox control to a file manually at design time, or when you use the FromFile method at run time.
The workaround is to use the Image.FromStream method instead:
Using fs As Stream = System.IO.File.OpenRead("img-0.png")
PictureBox2.Image = Image.FromStream(fs)
End Using
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi there,
I try to use a code from your site: href="http://www.codeproject.com/Articles/617613/Fast-pixel-operations-in-NET-with-and-without-unsa
in VB.NET.
I get: a system overflow exception in my code below.
Quote: Dim diffR As Integer = CInt(pixelR - searchedR) '<=================
' pixelR is 128, searchedR is 0
I assume, that the code is correct where the exception pops up. Can you have a look at my code?
Thanks for any help
Bernd
<blockquote class="quote"><div class="op">Quote:</div>Function true_Black_and_White_Unsafe_Methode( _
MyImage As Image,
searchedR As Byte, searchedG As Byte, searchedB As Byte, _
Tolerance As Integer) As Image
' Source:
' http://www.codeproject.com/Articles/617613/Fast-pixel-operations-in-NET-with-and-without-unsa
Dim Bmp8 As New Bitmap(MyImage.Width, MyImage.Height, PixelFormat.Format1bppIndexed)
Dim imageData As BitmapData = Bmp8.LockBits(New Rectangle(0, 0, MyImage.Width, _
MyImage.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb)
Dim bytesPerPixel As Integer = 3
Dim scan0 As Integer = imageData.Scan0
Dim stride As Integer = imageData.Stride
Dim unmatchingValue As Byte = 0
Dim matchingValue As Byte = 255
Dim toleranceSquared As Integer = Tolerance * Tolerance
Dim y As Integer
For y = 0 To imageData.Height - 1
Dim row(scan0 + (y * stride)) As Integer
Dim x As Integer
For x = 0 To imageData.Width - 1
' Watch out for actual order (BGR)!
Dim bIndex As IntPtr = x * bytesPerPixel
Dim gIndex As IntPtr = bIndex + 1
Dim rIndex As IntPtr = bIndex + 2
Dim pixelR As Byte = row(rIndex)
Dim pixelG As Byte = row(gIndex)
Dim pixelB As Byte = row(bIndex)
' here is the system overflow exception
Dim diffR As Integer = CInt(pixelR - searchedR) '<=================
' pixelR is 128, searchedR is 0</blockquote>
Dim diffR As Integer = CInt(pixelR - searchedR) '<=================
' pixelR is 128, searchedR is 0
Dim diffG As Integer = CInt(pixelG - searchedG)
Dim diffB As Integer = CInt(pixelB - searchedB)
Dim distance As Integer = diffR * diffR + diffG * diffG + diffB * diffB
If distance > toleranceSquared Then
row(rIndex) = row(bIndex) = row(gIndex) = unmatchingValue
Else
row(rIndex) = row(bIndex) = row(gIndex) = matchingValue
End If
Next
Next
Bmp8.UnlockBits(imageData)
Return Bmp8
End Function</blockquote>
|
|
|
|