Time Out Error - Solve It Rather Than Optimizing?

Apr 8, 2010

I have a lengthy query..always it shows timeout..I am filling it in a dataset, not using command execute.Is there anyway to solve this rather than optimizing the code? any way to solve the timeout..

View 3 Replies


ADVERTISEMENT

Incoming Events Solve And Change Time For Timezone?

Jun 20, 2011

i'm going to create event application where's times like:

a) 17:00
b) 18:00
c) 20:00

(Current compuer's time: 17:16)How do i make my application detect timezone and change a), b) and c) times for the same timezone, that people knows if event is my time 17:00 so what it is in their time?

View 4 Replies

C# - Solve This Error "Cannot Convert Lambda Expression To Type 'string' Because It Is Not A Delegate Type"

Jun 12, 2010

. I get this error: "Cannot convert lambda expression to type 'string' because it is not a delegate type" - keyword select become underlined in blue

[Code]...

Above code should displays drop list of employees first name and last name in a combo box

View 2 Replies

Unable To Solve Error "reference To A Non-shared Member Requires An Object Reference"

Jul 26, 2011

I have the following code

[Code]...

that vb method returns data of type string. i declared result of type string. but it is showing on that vb method like "reference to a non-shared member requires an object reference" How to solve this? Did I make any other mistakes in this code?

View 1 Replies

Optimizing GUI In VB?

Aug 11, 2010

I'm building a GUI that displays a lot of thumbnails. I'm currently using PictureBoxes that I dynamically allocate to do this. In the worst case I may need to display as much as 1000 of these thumbnails at once. I need the thumbnails to move around and animate fluidly. PictureBoxes hog a lot of memory.

View 16 Replies

Optimizing A Function?

Apr 27, 2009

I have a function which is executed a lot of time during a flat file (txt) import. (50 000+)using a profiling tool the attached function where identified as 40% of the runtime..The code works as is.. But should be a lot quicker..

The code converts the following format 5710.436' N to the double representation.
DMS -> DD
MS Degrees:Minutes:Seconds (4930'00"N, 12330'00"W)

[code]....

View 3 Replies

Asp.net - Optimizing SQL Data Reader?

Aug 10, 2009

I am using SQl data reader to get value from SQL database.Language VB.NET.After getting data into reader, i run a while loop

While reader.Read

If reader.HasRows() Then

/* Proessing of data *[code]....

View 3 Replies

Optimizing File Explorer?

Nov 11, 2011

I'm working on a FTP Client, I started loading the local directories of my PC. I'm a university student of Computer Science. I had problems with my code, because it takes approximately 35 seconds to load all the directories and sub directories to a TreeView that in the future I will use to navigate thru my computer folders and pass files & olders to the FTP.

Option Strict On
Option Explicit On
Imports System.Collections.ObjectModel

[code].....

View 3 Replies

At Time Of Recoredset Movenext Out Of Memory error Occured  In Run Time

Jan 1, 2010

at the time of recoredset movenext out of memory error occured in run time data have 3800000 lakh recored

View 2 Replies

Optimizing Division/exponential Calculation?

Apr 15, 2010

I've inherited a Visual Studio/VB.Net numerical simulation project that has a likely inefficient calculation. Profiling indicates that the function is called a lot (1 million times plus) and spends about 50% of the overall calculation within this function. Here is the problematic portion

Result = (A * (E ^ C)) / (D ^ C * B) (where A-C are local double variables and D & E global double variables)

Result is then compared to a threshold which might have additional improvements as well, but I'll leave them another day

View 4 Replies

VS 2010 Optimizing Merging Of An Image?

Apr 6, 2011

I'm having a speed issue with some drawing in a program I am working on. I have narrowed down the speed issues to a single function. The cost of this function is such that I really need to find a way to make it faster, and that should be possible.

The function is this:

Public Shared Sub SuperImposeFishAni(ByVal bckGrnd As Drawing.Bitmap, ByVal dtop As Integer, ByVal dleft As Integer, ByVal dwidth As Integer, ByVal dheight As Integer, ByVal ImageInQuestion As FishImages)
Dim tp As Integer = 0

[code]....

This is actually a holdover from an earlier design that included animation, but that's probably irrelevant. What is happening here is that a bitmap (bckGrnd) is passed to the method along with the left, top, width, and height that are to be drawn, and a single variable to select which image to draw.The image to draw is chosen in the select statement, which makes up the bulk of the method. The guts of the issue are the last few lines.

Through profiling, I was able to determine that if this method is called, the drawing takes over .25 seconds, whereas if this method is not called the same exact drawing takes less than .07 seconds. Therefore, I am getting a significant slowdown from this one method, which surprises me, as it is pretty straightforward. It pretty much has to be this method, too, because I can perform the same actions with or without this method being called. It is called if a Boolean is True, which is about as fast a test as can be performed. If the Boolean is False, this method is not called. The >3x difference in timing is with or without this method.

The point behind the method is that the image from the select statement has to be superimposed onto the background image, and the size of the area, as well as the location, that it gets superimposed onto is almost totally arbitrary, which is why the size and location has to passed to the method.Technically, choosing the bitmap to merge in (the select statement), could be avoided, but I doubt that is the issue.

View 21 Replies

.net - Optimizing Loop For Vba Macro Excel 2007?

Sep 9, 2011

I have this code that works. it goes down a range and deletes the empty rows, seperates the first character into a different column if its not a number or negative sign.This code WORKS. but it is too SLOW for the amount of data i need it to deal with. I have already turned off automatic calculations. screen updating.and visibility of application.

[Code]...

View 3 Replies

Incrementing Array Of Numbers - Optimizing Code?

Sep 8, 2010

I have code that increments an array of numbers. However, due to performance issues, I need to optimize it.
Here is the code:
Public Sub increment(ByRef Index() As UInt16)
Dim N As Integer = Index.Length - 1
If (Index(0) = 65535) Then
Index(0) = 0
[Code] .....

View 18 Replies

Optimizing Loop For Vba Macro Excel 2007?

Dec 28, 2011

I have this code that works. it goes down a range and deletes the empty rows, seperates the first character into a different column if its not a number or negative sign

View 1 Replies

VS 2008 Optimizing MySQL Connection Code

Aug 4, 2009

As I was starting on my lil project i realized that I would have a tonne of repetitive code. But wasn't sure how best to go around to just only have it in there once and just call on it. Not entirely sure how to do this as I havnt done it before, I was trying to mess around with it in a Function type thing but I had declaration issues which put me off course. Basically they'll be a few labels lbl8Beats(on click it loads the table in the datagrid (dgvCompositions)) is the first, and all the code from Dim conn As MySqlConnection to data = New DataTable, will be repeated.When i was messing around and thought I'd open the connection on form load, and I just had a bunch of declaration issues, and was unsure how best to go about this. Also since the Adapter = "would be changing on each label it just made me more confused.[code]

View 1 Replies

VS 2010 Optimizing Byte Array To String Encoder

Feb 4, 2011

below is a byte array to string encoder. It uses the yEnc algorithm that is used for Usenet binaries (Usenet only supports text).

Doing a performance analysis in VS2010 shows that this is the most CPU intensive part of the application.

The encoder function is used thousands of times, so I'd like to optimize it as much as possible.

I'm using 'ReDim Preserve' instead of 'Take()ToArray', because I'm targeting .NET Framework 2.0. Is there a more efficient way of getting only a part of a byte array?

vb.net
'Values for yEnc Encoder
Public Structure EncoderValues
Public lChar As Byte

[Code].....

View 15 Replies

How .net Solve Dll

Jun 7, 2012

how .net solve Dll problem??

View 1 Replies

Interface And Graphics :: Optimizing Forms / Controls Background Images

Aug 1, 2008

I'm developing a VB.Net 2008 application which uses background images (in jpg format) in some forms and controls, but this makes the application to use a lot of ram. My question is how to make it to use the less possible.

View 3 Replies

Solve Matrix In VB?

Mar 15, 2012

This is my matrix. I want to solve C,D and E

sample codes to solve C, D and E in VB.Net?

Answers are C=0.4857143, D=0.0000000 and E=-0.1428571 (manual calculation)

View 14 Replies

.net - Solve Procedure And Functions In VB?

Mar 2, 2012

I have this home work question and I don't know what I am doing wrong there are a lot of errors which I don't know how to correct. This the question:An automative service shop performs the following services (all the services below are assigned a value):

Oil Change
Lube Job
Radiator flush
Transmision flush inspection
Muffler replacement and
Tire rotation

Create an application that displays the total for a customer's visit. This is my code so far:

[Code]...

View 1 Replies

How To Solve An Equation That Is A String

Feb 9, 2011

I have an equation in the form of a string:

Dim Answer as Integer
Dim AnswerBox as New RichTextBox
'... Settings for AnswerBox

[code].....

View 5 Replies

.net - Solve The Performance Decay Of A .NET 1.1 Application?

May 20, 2010

I have single-thread windows form application written with VB.NET and targeting Framework 1.1. The software communicates with external boards through a serial interface, and it mainly consist of a state machine that run some tests, driven in a loop done with a Timer and an Interval of 50ms. The feedback on the user interface is done through some custom events raised during the tests.

The problem that is driving me crazy is that the performance slightly decrease over time, and in particular after 1200/1300 test operations. The memory occupied does not increase over time, it is only the CPU that seems interested by this problem. The strange thing is that, targeting framework 2.0 and using the same identical code, I do not have this problem.

I know that is difficult without looking at the code, but do you have suggestions how can I approach the problem? EDIT: I am really lost, after a couple of intensive work the application starts slowing down. The selected row is related to its process, if it could help.

EDIT2: Using the Windows Task Manager I detected that the Handles counter is increased by 1 at the end of each operation. I don't know if it is the cause but the application starts to slow down when the handles counter reaches about 1500 handles. I checked that all necessary RemoveHandler are called after each operation. Any idea?

EDIT3: I found that the handles problem is generated by the C++ library we are using to communicated with the serial device. It then happens both in .NET 1.1 and .NET 2.0. The difference, and that's strange, is that if the target .NET 1.1 the application slow down/freeze instead for .NET 2.0 I reached more than 30000 handles without loosing performances. Now I don't know if the problem is really caused by this lost handles, I will try to ask to the developers of C++ library to correct the problem and see if it solves the problem I am having on .NET 1.1.

View 4 Replies

.net - Using Regex OR Operator To Solve 2 Conditions?

Apr 10, 2012

I am trying to combine 2 regular expressions into 1 with the OR operator: |

I have one that checks for match of a letter followed by 8 digits:

Regex.IsMatch(s, "^[A-Z]d{8}$")

I have another that checks for simply 9 digits:

Regex.IsMatch(s, "^d{9}$")

[Code]...

Apparently I am not combining the two correctly and apparently I am horrible at regular expressions.And for those wondering, I did take a glance at How to combine 2 conditions and more in regex and I am still scratching my head.

View 5 Replies

How To Solve Date Format / When Using Window XP In C

Jun 2, 2011

I am using window 7, when I run my code in local everything is alright, but when upload to window server 2003 the code will coming error "String was not recognized as a valid DateTime".My computer setting (date format) all same with my window server.[code]

View 3 Replies

How To Solve Duplicate Of Data After Search

Apr 6, 2011

In first search, result will show.In second search, the result in first searching will also show with the result in second searching. [code]

View 4 Replies

Solve Date Difference Function?

Apr 20, 2009

I am taken DateTimePicker2, DateTimePicker3 n textbox6.Now i wanted to display the result of subtraction of these two dates(DateTimePicker2-DateTime Picker3) in textbox6 automatically. I don't want to enter the result manually. Plz hlp me I need it badly. I hav already tried in lost focus event also its nt workin.

View 6 Replies

VS 2008 - How To Solve Equation That Is In Textbox

Oct 31, 2009

Let's say I wrote 1+1 in a text box1 how to get answer in a text box2?

View 10 Replies

Making A Program To Solve Second Grage Equation

Jul 1, 2012

So im making a program to solve second grage equations,its already working but i want to make it better,heres my idea.Right now the user must input the three equation coefficients (in a equation like 2x+2x+2 they are 2,2 and 2),i want to make it possible for them just to insert the equation like 2x+2x+2 and the computer will get that data,and extract the coefficients from it. [code]

View 1 Replies

Function Command To Solve Equations In Textbox

Feb 3, 2010

Similar to using VAL(a$) to return the numerical value of a string, is there a function for returning the solution of an equation that is user-typed into a textbox? For instance, user types F$=(a+b*x)/(c*x^2-d*x^3) where the variables of the equation are either pulled from a textbox or derived within the code. I am looking for something like F=Solve(F$).

View 5 Replies

How To Solve "Operator '=' Is Not Defined For Types

May 22, 2012

I get an Operator not defined error at "SetAttr(j = fo.GetFolder("C:\Documents and Settings\a19238\My Documents\VB Grille OrderTest\"))"

[code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved