VS 2010 Working With Extremely Large Numbers?

Apr 28, 2011

For example, to calculate this:(22 ^ 29) Mod 57Supposedly there is a way to get around overflows and do these calculations, but I can't find much online. Now, the person who said this was doing VBA in Excel and said that there was about 4 lines of code which could handle the overflow so it wouldn't happen.

View 4 Replies


ADVERTISEMENT

VS 2010 Loading Extremely Large(dimension) Images?

Feb 8, 2012

I'm trying to load this image file on a PictureBox but I get an "OutOfMemoryException was unhandled" error.

How do I allocate more memory for this? Or maybe use another container? My project's main feature is loading maps, unfortunately my boss wants to load the whole map and won't accept sliced version of the map.

View 8 Replies

Vb6 Xor Large Numbers Not Working

Feb 18, 2012

[Code]...

The loop will run about 3 times then overflow. I guess no matter what u do xor will result in Byte,Integer or Long. CDec(Key) will not work I need a way to bypass this so i can Xor large numbers.

View 1 Replies

Working With Very Large Numbers?

Oct 25, 2010

How can I calculate 2^ 3333 in vb.net it calculates up to 2^ 60 it says infinite for this calculation. Is tehre any way to work with really large numbers?

View 1 Replies

Scrollable Display Of Extremely Large Image On A Form

Aug 11, 2009

I am an experienced programmer but mainly in 4GLs and assembly. Relatively new to VB programming, especially GUI applications. On a form I need to create an area that will be used to display *extremely* large TIFF images. typical image size would be 2000 pixels by 100,000 pixels. Typically I will NOT want to display the entire image at once, so the area will need to have scroll bars and/or other methods to scroll/pan around the image.

I have read about and tinkered with the bitmap and picturebox objects, including some threads about several different ways to implement scrollbars. However, I see that the picturebox size is limited to 32K pixels in both dimensions. I suppose that I might be able to copy various portions of the bitmap to the picturebox depending on scroll position, but that seems potentially quite slow and cumbersome. Can an expert developer who is experienced with these types of issues regarding the following:

1. Can bitmap objects be used effectively with TIFF images of the size I am working with?

2. an approach that should produce reasonable scrolling performance for these extremely large images without excessive coding effort?

3. For an image that exceeds the picturebox size when displayed at 1:1 scale, is the picturebox capable of displaying a reduced size version of such an image without lots of code, and if so, how?

4. Many (most?) graphics display objects count on all of their display data being stored in memory rather than on disk. Would that be true of a TIFF image loaded into a bitmap object and displayed via a picturebox? If so, the amount of RAM required in order to buffer the entire image in memory could be a potential problem for images of this size. Is there an advisable way to have the picturebox or other display object only load portions of the image into memory on an as needed basis, and purge them once they are no longer required? Are there any built in objects/methods/properties or is there any sample code to show how to do this?

View 12 Replies

VS 2010 : Working With Large Amounts Of Data Without Getting Out Of Memory?

Apr 25, 2011

I recently wrote a program that collects information from the network can displays it in a DGV for the user to see. I tested this on networks where I would end up with several thousand items brought back and all worked fine, very little memory increase and once the search had finished the memory usage went back to pretty much what it was before the search, so I assume I have no major memory leaks that I should be concerned about (I'm careful to always dispose of things and clear large variables where possible).

However, a new company has now started using my application and they have several hundred thousand items that my program will find. They reported that they leave the program running its search for a few hours and most of the time it crashes with an Out Of Memory exception. Now I did have my app do some caching of certain information to avoid querying the network more than was necessary so I thought well maybe this is what is causing it but I added an option to turn that off and they say it still happens. So the only thing I can see it being is simply the amount of data that the program is finding and having to store in memory.once my application has gathered information about the items it stores them in a List(Of MyItemClass) and then when the search is complete the items are added to the DGV. So I'm thinking maybe its just the size of this List(Of MyItemClass) that is simply getting too large. Bear in mind that each instance of MyItemClass in this List can have quite a lot of information in it as it has several properties that are List(Of String) that may contain a few thousand strings in some scenarios.How do you deal with such large amounts of data without running out of memory?I'm assuming the only option I have got is to 'page' some of the data to a temporary file on disk once I get over a certain number of items in the List(Of MyItemClass)?

View 2 Replies

How To Add Commas To Large Numbers

Mar 29, 2011

Any simple way to add commas to large numbers (example: instead of "123456789" as my text converted {and loaded into a text box} output of a calculation, I want to see "123,456,789")?

View 11 Replies

Modulus Calculation Of Large Numbers?

Oct 19, 2010

how to get the mod of large numbers? for example: (3214282912345698765432161182 mod 97)

View 10 Replies

Overflow Exception-very Large Numbers?

Jun 22, 2010

This piece of C# code does not produce any overflow exception.wordsize is a constant equal to 32.the x and y can be very big at the computation time. So big that long or decimal even cant hold. But C# handles the problem even the value of the variables exceeds its limits.The computation gives thr right result.(I dont know how it does it)

[Code]...

View 5 Replies

VS 2008 : Dealing With Large Numbers?

Mar 12, 2012

I want a method of dealing with very, very, very big numbers (potentially a million digits). It is very cumbersome to deal with very big numbers in VB, would another language perhaps be better for that?

View 10 Replies

Deal With Incredibly Long (large) Numbers In .net?

Nov 27, 2010

How is it possible to deal with incredibly long (large) numbers in vb.net?I am working on Problem 25 in Project Euler, and my program cannot handle these computations.Is there a data type that can handle thousands of digits?

View 3 Replies

Create A Program To List A Large Group Of Numbers?

Feb 7, 2011

I am currently trying to create a program to list a large group of numbers for me. My final goal is to have every 2, 3, 4, ..., and 9 digit number containing only "1" "2" and "3". I thought I would go about this by using the following VB.NET program and then copying it into a text editor, and using find & replace to eliminate all other numbers.

Public Class Form1
Dim Start As Integer = 333333333
Dim Counter As Integer = 333333333

[Code].....

it fails due to the massive amount of processing that needs to take place. However, adding the intervals requires a great deal of time for each number to be displayed without any crashes.

Is there some way (in VB.NEt or another language) to get the number list I want in a short (an hour or less) amount of time?

View 7 Replies

Out Of Memory Exception / Parallel.For Loop / Large Numbers?

Nov 27, 2011

I need some guidance on a little program I'm making (one that I thought would take a couple of hours from start to finish, it's been days now ...) that determines all of the proper divisors of any given number up to the maximum value of a UInt32.

View 8 Replies

VS 2008 Count A Large Amount Numbers In Short Time?

Nov 23, 2010

I need to count a large amount numbers in short time.As a result the CPU jumps to 40-60% on 4-core PC.Which is extremely high.I have any idea that will lock up the thread for some time, but not actually slow or reduce the amount of files that are allowed to be counted per a giving time period.

Vb.net
Application.DoEvents()
Threading.Thread.Sleep(1000)

View 9 Replies

WebMethod Not Working When Returning Relatively Large String?

Jul 6, 2010

I am using Virtual Basic with ASP.NET in Visual Studio 2008. I am using Webmethod to communicate from/to the server with the client. Data can be queried and returned in small amount, but when I try get a relatively large amount of data, it's returning me a Server 500 error. My data is 226561 character long, so it's not that large, but it's relatively larger than my other working testing set, which are about 10k character long.

JavaScript:
PageMethods.my_func("context", success);
function success(result, userContext, methodName) {

[code].....

View 2 Replies

.net - Rijndael Encryption Code Is Not Working For Large File?

Oct 1, 2011

I use the following Rijndael code to do encryption without fail for many times. But why it can not encrypt an ISO file with 4.2 GB? In fact my computer has 16GB memory and it should not be a memory problem. I use Windows 7 Ultimate. The code is compiled as winform (.Net 4) using Visual Studio 2010 (a VB.NET project).

I have checked that the ISO file is OK and can be mounted as virtual drive and even can be burnt to DVD rom. So it is not the ISO file problem.My question: Why the following code cannot encrypt an ISO file with size of 4.2GB? Is that caused by the limitation of Windows/.NET 4 implementation?

[Code]...

View 2 Replies

C# - WebClient.UploadFileAsync Not Working With Large File Uploads?

Apr 29, 2011

I am uploading a file from a C# application to an ASP.Net website, both written by me so I have access to the code.But, it is working for a text file (1KB) but not for a MOV file (77MB).

In both cases, I am using UploadProgressChanged to get the progress. The TXT file goes to 100% while the MOV file goes only till 50%. When done, I only find the TXT file saved on the server but not the MOV file.

Why is this happening? How can I get it to work?

[Code]...

View 2 Replies

Javascript - WebMethod Not Working When Returning Relatively Large String

Dec 9, 2011

I am using Virtual Basic with ASP.NET in Visual Studio 2008. I am using Webmethod to communicate from/to the server with the client. Data can be queried and returned in small amount, but when I try get a relatively large amount of data, it's returning me a Server 500 error. My data is 226561 character long, so it's not that large, but it's relatively larger than my other working testing set, which are about 10k character long.

JavaScript:
PageMethods.my_func("context", success);
function success(result, userContext, methodName) {

[code]....

Is there anything I can change to increase WebMethod returned string length limit? Is there even a length limit or is it some other problem I could not see?

View 1 Replies

VS 2008 Working With HUGE Numbers?

Sep 22, 2009

I've been messing around with prime numbers for a while now, but I now want to use massive numbers, say a few million digits in length. Is there a way of storing and performing mathematical functions with such large numbers? Is it even possible on my home computer? I read on another old thread, something about a big number library, but the links he gave are now dead.

View 1 Replies

Shape Of Really Large Characters Such As Numbers And Alphabetic Characters

May 9, 2011

With the shape of really large characters such as numbers and alphabetic characters + others, is there a way to get that shape as a REGION please?Imagine a really fat snake forming the letter S or two rectangles placed together to form a large letter L or a T like the shapes in TETRIS.

1) Does anyone know of anything in VB.Net that can translate such shapes into a System. Drawing.Region or know of a project elsewhere that achieves this please?

2) While I'm on the subject, how would you SCALE UP / DOWN a System.Drawing.Region please? How would you work out the Transform Matrix required please?

View 1 Replies

Calculator Working But Its Not Showing Numbers Seperated

Jul 11, 2011

All i made was a program to launch diffrent programs ^^. This is what I am currencly workin on: A calculator to calculate waves for example Wintermaul. I have writen this code:

[Code]...

View 1 Replies

Way To Generate Random Numbers For A Program Working On

Feb 22, 2010

I am a newbie programmer and I need a way to generate random numbers for a program I am working on. It just needs to be something simple that generates a number and allows me to assign it to a variable. I would like it to be something small say 1-10 would be good and an explanation of the syntax would be helpful

View 9 Replies

Working On A Windows Forms App That Will Average A Set Of Numbers?

Jun 13, 2011

I'm working on a Windows forms app that will average a set of numbers, the only catch is that there are 10 textboxes(4 in the example for times sake), and not all of the textboxes could be filled with a number...I know that if i had a given set of numbers:

Dim a, b, c, d As Integer
a = t1.Text
b = t2.Text
c = t3.Text

[code].....

View 2 Replies

Dataset Designer Being Extremely Slow

Apr 17, 2009

I have a dataset with around 15 table adapters. Everytime I make a change, such as add a column, change a type, or just anything, it takes around 3-4 minutes before studio responds again. The processor and ram are in good shape, but there is a spike in network usage by devenv during this time. In fact, devenv has the higheset network usage all together, even with with IE open and browsing. Why would this be and is there any remedy?[code]...

View 3 Replies

Button Array - Code Used (extremely Inefficient)

Aug 10, 2011

I have a button array that I filled up. Here is the code I used to do that.

Public buttons(29) As Button

For i = 0 To 29
buttons(i) = CType(Me.Controls("Button" & i), Button)
i += 1
Next i

Here is some code that I used (it is extremely inefficient):

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click, Button4.Click, Button5.Click, Button6.Click, Button7.Click, Button8.Click, Button9.Click, Button10.Click, Button11.Click, Button12.Click, Button13.Click, Button14.Click,

[CODE].....................

View 1 Replies

C# - Building Extremely Lightweight Business Object / DAL ?

Apr 7, 2010

I have completed a simple database for a project. Only 6tables. Of the 6, one is a "lookup" table.There is one "master" table that is the driver for the system. It is referenced as a foreign key by the other four tables.Give that this step is completed. What is the FASTEST, EASIEST way to create POCOs/BizObjects that can load load the data and the child data.Here are my CAVEATS.

I don't want to spend more than 30-60 minutes learning how? There is very little biz logic needed in the POCOs. They will pretty much load data. Don't even really need to write back data.I already know CSLA (up to version 3) but I feel that is overkill for this little project.Nevertheless, I would love it if it ROOT objects could have collection classes that contain the CHILD objects as in CSLA...but again, without using CSLA.

View 3 Replies

Getting An Extremely Odd Error From Visual Studio 2008

Nov 6, 2010

This morning I opened up my project The Bible Study Tool and got a pop up warning box that says the following: There is no editor available for 'G:VisualStudio ProjectsThe Bible Study ToolThe Bible Study ToolBSTMain.vb'. Make sure the application for the file type (.vb) is installed. I do not know how to 'make sure the application for the file type (.vb) is installed. I get same error no matter what solution (program) I try to open. I can see the forms code window, but when I double-click the form in the solution explorer I get the above warning.

[Code]...

View 6 Replies

MS Access Table Update Extremely Slow?

Apr 6, 2009

I have looked all over for a solution to this problem and have tried a bunch of different things, but nothing seems to work.I have a sub procedure that does the following:

1) adds two columns to a data table (table1)

2) fills a dataset with several tables in order to make calculations (this determines the data that will be stored in the two new columns of table1)

3) updates ONLY table1, and ONLY the two columns that have just been added (these columns are thus empty for every row before the update begins)

As it is now, the da.Update takes about 3 hours to populate the entire table (it updates about 300 records per MINUTE if I'm lucky). There are approximately 40000 records in table1 for this test subset, but there will eventually be up to 1.5-2 million (in other words, this is a small table currently). I have tried using executenonquery() along with a sql UPDATE command instead of da.Update, as well as many other things, but none of them has improved performance at all. I've also tested it on two PCs, one running Vista and one XP, and there were no differences. I'm using Access 2003. I know Access is not ideal, but for now it is the only option.

I know that the root of this is the line of code with the da.Update, because the giant loop before it that I previously thought was causing the slowdown executes in 30 seconds, leaving only the update before the subroutine is complete. I don't know how exactly the da.Update works, but I've suspected that maybe it has something to do with that? Code is below:

[code]...

View 7 Replies

VS 2008 Extremely Basic MDI Plugin System

Jul 8, 2010

I've got an MDI form with a menustrip that already detects all .dll files in a folder and adds them to the menu to show the user which plugins are available. The thing is that I don't know what to do from here on out...

I'd like to be able to update my program without having to stifle through all my code (it's a very big program) and be able to create basic new features through external DLLs. It's extremely useful for users to make their own features too

Anyway, what a plugin would look like is most likely just a form with controls on it that the user makes themselves in VB. I'd like the plugin to activate through an init() sub within the plugin by clicking on the menu item shown in my MDI form.

I kind of started with my own code but it didn't really get anywhere:

ListFilesInMenuStrip(PluginsToolStripMenuItem, App_Path() & "Plugins")
For Each c As Control In Me.Controls
If TypeOf c Is MenuStrip Then

[Code]....

...Where ListFilesInMenuStrip() is my function to add all the DLLs to the menu and App_Path is just a shortcut function which serves the same purpose as VB6's App.Path() class.

I've also done research but only came across all their weird complex CodeDom and other weird things...This seems so simple but I just can't wrap my mind around it :I

View 4 Replies

VS 2008 - Working With Doubles - Numbers Seem To Round After The Decimal Point

Apr 1, 2009

intLoginTime = txtLoginTime.Text
intLogoutTime = txtLogoutTime.Text

[CODE]..........

The problem is that the numbers seem to round after the decimal point, so if I entered a login-time of 8.15 and log-out 9.30, instead of showing 1.15 as the difference, it shows '1'. is there a way around this?

View 13 Replies







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