C# - .Net 3.5 To 4 Migration Resulting In Application Slowdown
Feb 17, 2011
As I wanted to benefit from new multicore threading improvements from .Net Framework 4, I recompiled all of my solution projects from 3.5 to 4.Everything compiled Ok. But what was my surprise to see that my application runs much slower when compiled in .Net 4 compared to 3.5. I was not expecting that at all. It is a scientific processing App, so computing time is what it's all about. I have no clue where to start from, and for the time being, and I prefer to think that I have missed something during the migration process, that is fixable, rather than the App is "per se" running slower in .4 (can't see any logical reason for that...)
View 2 Replies
ADVERTISEMENT
Aug 10, 2011
I have 2 clients connected via a server program.When 1 client hits an arrow key, a picturebox moves on client1 and on client2.Before adding this network functionality, the picturebox on client1 moved fast with each click.Now, there is a delay of like 2-3 seconds.I know the code isn't optimal, but i'm not a networking wizard.What i'm doing is when pressing a key on client 1, it passes a text to a textbox in client 2 which then has the picturebox move in client 2 depending on the text.The slowdown occurs on client 1, which is odd because the picturebox isn't directly connected to the network code.[code]
View 3 Replies
Oct 13, 2010
I am doing data migration two database in MS SQL 2005. The records are more than 200000 nearly 300000. I need to query from source database using joins and insert 2 or 3 tables in destination databse. Which way is the best way to do so? I am trying to write a program with VB.NET. If you have sample,
View 1 Replies
Nov 8, 2011
I wrote an application that produce a final form with the result consistinf of labels and 3 buttons (Back, Exit, and print ) when I hit the print button I want it to print the form. Note the labels on the form have results for calculations made on the interface form which display the form which I am printing. What are the actual code to print the resulting form. I am using VB.net 2008.
View 2 Replies
Feb 16, 2011
I am stuck on a homework problem and was wondering if anyone could help out a beginner.The question reads:Calculate the amount of a server's tip given the amount of th bill and percentage obtained via input dialog boxes. The output should complete sentences that reiterates the inputs and gives the resulting tip.
here is what I have so far:
[Code]...
It works fine if I input the tip percentage as a decimal, but I need to be able to input a whole number for the percentage, and in turn, output the correct decimal. I'm sure this is a pretty easy fix,
View 3 Replies
Nov 23, 2010
vb.net
"Button_Click event"] Dim dt As Date
dt = Now
Select Case cmdUserSave.Tag
[Code]....
my problem is : when i am trying to save data in sql server management studio 2005 then data will be saved but with some garbage date. date is not saving properly.
View 13 Replies
Feb 27, 2009
I was working on an app that calls a batch file to do some simple tasks and found out this machine has some issues when trying to run them. really weird! so i did some testing and here are my resultsthis is a little strange to me and i can't think of why this is happening... let's say i have a simple bat file called test.bat these are the contents
@echo off
echo testing...
pause
When i go to run this bat, this is the output: C:>â– @ 'â– @' is not recognized as an internal or external command, operable program or batch file. It seems every bat i make on this machine is being preempted by the block character which renders bat files useless...
View 2 Replies
Jul 27, 2011
I'm exporting a datagridview to excel. The first column is a Date (not DateTime) which appears like '2/15/2011'. After exporting the datagridview to excel it appears in excel as '2/15/2011 0:00', furthermore the first 68 rows in excel appear as '6/14/1898 12:00:00 AM'. Where is the time coming from? The column type in the database is date. I've attempted to edit the cell style of the datagridview column to date. I've attempted to figure out how to pre-program the formatting in excel, but it's not working either.
Dim wapp As Microsoft.Office.Interop.Excel.Application
Dim wbook As Microsoft.Office.Interop.Excel.Workbook
Dim wsheet As Microsoft.Office.Interop.Excel.Worksheet
[Code]....
View 1 Replies
Mar 15, 2010
I have a folder with a whole lot of music in it (*.mp3 files.). Now on my form I can play these songs in playlists, and other extra's. But now what I want to finish it, is to create a search function. Here is a picture of my Form. And what I want to add is a Listbox, TextBox and a button.
When I type: "Eye of the Tiger" in the Textbox and click the Button, All *.mp3 files in my folder, and the subfolders, with "Eye of the Tiger" in it, are added to the Listbox (The full name, like: "Survivor - Eye of the Tiger") will show at the Listbox. How can I do this, in an easy way, if possible.
View 7 Replies
Apr 28, 2010
I want to combine multiple lists of items into a single list, retaining the overall order requirements. i.e.:
1: A C E
2: D E
3: B A D
result: B A C D E
above, starting with list 1, we have ACE, we then know that D must come before E, and from list 3, we know that B must come before A, and D must come after B and A.If there are conflicting orderings, the first ordering should be used. i.e.
1: A C E
2: B D E
3: F D B
result: A C F B D E 3 conflicts with 2 (B D vs D B), therefore requirements for 2 will be used.
If ordering requirements mean an item must come before or after another, it doesn't matter if it comes immediately before or after, or at the start or end of the list, as long as overall ordering is maintained.
This is being developed using VB.Net, so a LINQy solution (or any .Net solution) would be nice - otherwise pointers for an approach would be good.
Edit: Edited to make example 2 make sense (a last minute change had made it invalid)
View 1 Replies
Mar 31, 2009
I'm working on a program dealing with jagged arrays.Code is below.The FindPath() function works perfectly.It essentially randomly chooses an action from 3 possible choices.The goal of this function is to make it to position (3,3) from (0,0).Sometimes it makes it, sometimes it doesn't.It gives up after 2000 moves.
The PushButton() function is where I have the problem.I want to run the FindPath() function 2000 times, and return the resulting list of moves into intLists()(), my jagged array.I want to use
intRuns = 0
For intRuns = 0 To intLists.GetUpperBound(0)
lstMoveList.Items.Add(intLists(intRuns).GetUpperBound(0)) 'here is where I get the problem.
this section of code to dump the number of attempts it took into a listbox on the main window.I do this at the bottom of the FindPath() function, but that is for testing purposes only.I eventually want to take the successful attempts and manipulate those, so eventually I get the minimum possible number of movements to get from the starting point of (0,0) to the ending point of (3,3).
Function PushButton()
Dim intRuns As Integer
Dim intLists(2000)() As Integer[code]...............
View 3 Replies
Oct 24, 2011
I have developed an application using .NET 4.0 Framework, now i want to migrate to .NET 3.5 Framework.
When i change the Framework in advance compile option and run the application it gives me the following error. how can i over come this....
View 7 Replies
Jun 22, 2010
I have made the dreaded (but forced) change from vb6 to .NET.
View 1 Replies
Jan 19, 2009
Any program written in Vb 6.0 Is there any free source code available to convert vb code to vb.net?
View 3 Replies
Apr 23, 2010
I'm going to convert VB6 code to vb.NET 2008. Please advise me What is the best way to convert the code. My VB6 system used following comp.
View 3 Replies
Oct 22, 2009
I am working on a VB to C#.Net migration project. Has anyone used a tool called CSharpener to convert VB.Net code to C#? What is your experience with this tool? How much code does this tool migrate & how much is the rework?
View 1 Replies
Apr 26, 2012
I got a chance to work in the migration project(VB to VB.NET).I was confusing in the RecordSet functionality.In our project we are taking the DataReader according to the scenario.But in the Looping cases like dsr.EOF.
Dim recordset As dao.RecordSet
If recordset .EOF Then
' ' msgbox "Please enter some number ", vbOKOnly, "Number Not Found"[code].....
How to convert this into VB.NET?Either we need to write If Not reader.Read or If reader.Read.
View 1 Replies
Feb 23, 2009
In my Live sql database ,I have to change the date value from (date, month ,year) to date. Now there is 100 records with the date as date,month ,year(3 Fields).iF I change directly to date Field all the datas in the 3 field of those 100 records will automaticly change to a default date and original dates will disappear.What should i do to migrate all my datas safely
View 2 Replies
Jul 21, 2009
I'm working on a project trying to migrate data from MS Access to CRM(Sales force) online web services database. Have you any ideas how this process can be done? Also, if you know of any VBA or SQL code or online sites that can help me with coding this migration?
View 2 Replies
Mar 10, 2010
I migrate a vb application from MS Access to SQL Server 2008 using DAO Connectivity.[code]My question is this Is there any way to just change connection from mdb to SQL 2008 without changing in code..
View 9 Replies
Apr 26, 2011
I'm migrating VB code to VB.Net and I can not figure out why my files are not copying to there new folder. Here is the old VB code below:
Public Sub FileTransferDoneImage(ByVal FilePath As String)
OnlyFileName = GetFileName 'Get only filename
OnlyPath = GetPathOnly(FilePath) 'Getting only the path
[code]....
The message box shows the correct path/file, but the files are not copying?
View 2 Replies
Feb 21, 2011
I'm working on some legacy VB5/VB6 code and need to convert a ".bas" file to vb.net. i found several options
Compile the .bas file into a com dll and then reference and use it in my project. (For this I guess I would need vb5 or vb6 which I don't have at my disposal) Copy and paste the contents of the file in to a new module in vb.net and then try solving the errors one by one.The contents of the .bas file reference a particular dll. The .bas file has mostly declarations consts, types, sub's and functions.
What would be the most elegant way of redoing this in vb.net. Is it as simple as option 2.EDIT
I used VS2008 express and ran the code through the upgrade wizard it did the necessary conversion. and the .bas file was converted to .vb. I took that file and decided to rewrite other parts of the code, including some redoing of the converted .vb file. Other questions related to this one are here.
View 3 Replies
Dec 2, 2009
I have been tasked to convert out VB6 program to VB.NET. In my research online everyone seems to say I need to go through my code and get rid of any Variants I have. I have had pretty good luck so far, but I am having an issue in replacing this one.
[code]...
I am still pretty new to VB (either 6 or .net) and I am having a hard time finding an alternative for this. Will the convert tool in VB.net handle this just fine? Or do I need to change this? If I do, is there a better alternative for this? Forgive my noobness.
View 2 Replies
Jan 20, 2009
I am migrating to win vista from xp, I have an half completed program in XP , so i wanted to know whether i would be able to continue its development in vista or not. and an another question, whether my program which will be developed on vista can run on xp and vice versa?
View 1 Replies
Apr 5, 2011
I have come to know that there is a code migration wizard, that heps migrate from vb6 to vb.net.
View 1 Replies
Jul 11, 2011
I'm migrating the CenterSnap.cls from its vb version to vb.NET and I'm confused about the following 2 errors after I import the vb6 project to VS 2008.
[Code]...
View 1 Replies
Feb 16, 2012
I have a application VB.net which is working fine for office 2003.But one of the user has installed office 2007.I dont have the knowledge of BindingRedirect .
Old references
Interop.Access version 11.0
VBE.Interop version 11.0[code]....
View 12 Replies
Aug 2, 2009
Our company's current system test cycle involves the use of word documents for the UI test scripts and test execution log.For each new release, these documents are copied from the previous release and then modified to reflect the current release version together with new test steps where there are changes in functionality.Firstly, this is time-consuming - editing each word document (around 150 docs) just to make minor changes. Secondly, mistakes may occur as this process is manual.If I were able to port the test scripts into some data store (eg. sql server, xml file), would it be relatively straightforward to generate the word (or rtf, but not pdf) documents (using a word template with custom fields perhaps) based on this data set.
View 2 Replies
Jul 19, 2011
I got all C# implementations on Google, so I converted it to VB.Net, but I am not able to convert 1 line where it gives error.My Class :
Imports Migrator.Framework[Migration(1)] ' Gives ERROR Here.. How to write this in VB.net ?
Public Class mig_001
Inherits Migration
Public Overrides Sub Up()
Database.AddTable("Planets",
New Column("Id", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
[Code]...
View 1 Replies
Nov 24, 2010
I have a VB6 application which i need to convert to VB.NET 3.5. The application uses a lot of Business objects libraries and some external libraries.I would like to know if these libraries would behave the same way when i move from VB to VB.net?Are there chances that things would break?
View 1 Replies