473,698 Members | 2,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help on progress bar on error: "overflow" is the message.,

xxoulmate
77 New Member
help on progress bar on error: "overflow" is the message., what is the cause of error., the progressbar value basis on the second(time)
progressbar max value = 59
progressbar min value = 0
May 22 '07 #1
5 3305
Killer42
8,435 Recognized Expert Expert
help on progress bar on error: "overflow" is the message., what is the cause of error., the progressbar value basis on the second(time)
progressbar max value = 59
progressbar min value = 0
Ok, so .Min is 0 and .Max is 59. Can you tell us speciifcally what number you tried to set .Value to?

For example, if it was 59.9 then perhaps VB tried to round the value up to 60.
May 22 '07 #2
xxoulmate
77 New Member
Ok, so .Min is 0 and .Max is 59. Can you tell us speciifcally what number you tried to set .Value to?

For example, if it was 59.9 then perhaps VB tried to round the value up to 60.
i was using the timer to set the value of progress bar.,
the timer_timer looks like this
timer interval = 1000

timer_timer()
progressbar.val ue = time(second)

second is in between 0 to 59 only but why i got an error overflow
May 22 '07 #3
Killer42
8,435 Recognized Expert Expert
i was using the timer to set the value of progress bar.,
the timer_timer looks like this
timer interval = 1000

timer_timer()
progressbar.val ue = time(second)

second is in between 0 to 59 only but why i got an error overflow
I don't know, yet.

A couple of things might help us find out, though. First, what version of V are you using? Second, I'd suggest you move the value to a variable first, then put that into the progressbar. that way, when it bombs, you can go to debug mode and look at the value of the variable to see what caused it.

Like I said, it could be something unexpected like rounding. I don't know the exact data formats involved. For instance, is the number of seconds an integer value? If it's a Single, for example, then the rounding may be a very likely cause of the problem.

I'm only working in VB6, and time(second) doesn't mean anything to me. So I'm guessing this is Vb.Net? In VB6 I would have used something like Second(Now).
May 22 '07 #4
xxoulmate
77 New Member
im using VB 6.,
sorry it was not time(second) it was second(time)...
the error comes an hour or a minute there is no definite time when the error overflow comes.,...
ok il try the one u suggest to put it first in the variable then to progress bar...
May 22 '07 #5
Killer42
8,435 Recognized Expert Expert
im using VB 6.,
sorry it was not time(second) it was second(time)...
the error comes an hour or a minute there is no definite time when the error overflow comes.,...
ok il try the one u suggest to put it first in the variable then to progress bar...
Good, I think we need more info.

According to the doco, Second() function returns only a whole number from 0 to 59 as you said, so bye-bye to that idea I guess.

Um... without seeing the code it's hard to come up with a plausible theory. One possibility that comes to mind is some sort of recursive call. For example, is it possible that at some point the code which is executed in response to a change to the progressbar, in turn changes the progressbar? That could send you ever-deeper into nested calls, until it runs out of stack space.

Also, is it possible that the .Min or .Max values were changed at some point? This is another thing to check after the error occurs. Go to debug mode and look at the current values of the .Min, .Max and .Value properties, and the variable that you tried to put into .Value.

Anyway, I'll wait to hear the outcome of the information-gathering effort. (Don't be too shocked if if trying to find the error makes it disappear - it happens sometimes.)
May 22 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
17514
by: Andy Davis | last post by:
Dear Group I am trying to automate process of adding a new record id in my form using the following code when the user clicks the "Add New Record" button. For example if the last record id is "2005001" then I want to increment this by one so that new value is "2005002" and place it in the record id field for the new record on the form. I've tried using the following code but get the message "Overflow" when I run the code. Can't find on...
4
44107
by: Spook | last post by:
Running a particular Access report or the query associated with it brings up the warning "Overflow". What does this mean? WhatI have I done wrong? Both report and query were fine before lunch and the only thing I have changed is updated the data from one of the tables it pull info from. HELP!!!!!!!!!!!!!!!!!!! PLEASE
3
9820
by: C. Sengstock | last post by:
Hi, i´ve got an iteration with random generated floating point numbers. During the iteration process sometimes the programm stops with the error: "floating point error: overflow" Is the number out of range? what does it exactly mean? Thanks, Chris
3
2625
by: poifull | last post by:
Hi All, What is the proper way to read a binary file into a byte? I am using BinaryReader to read from a Stream and call the ReadByte method of the BinaryReader object. The method I'm using leads to the second question. I got the "Conversion buffer overflow" error when I run the following code: Stream s = openFileDialog1.OpenFile();
3
44732
by: SheldonMopes | last post by:
I sometimes get a pop-up box that reads "Overflow" and the module that is executing pauses. It doesn't get caught by my error trapping, and it seems to be randow. By random, I mean usually in the same section of code, but I can run the code a few times, then it appears. I can't reproduce it when I want to, and I have no idea what is causing it. Any ideas ? Thanks By the way the code is some record manipulation of 2 recordsets.
3
9465
by: _Christopher\(M2M\) | last post by:
Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) How do I get rid of "Warning C4307: '-' : integral constant overflow" from the following macro? #define d_ReturnMax(I_iTypeSize)\ ( (int64(1)<<((I_iTypeSize*8)-1))-1) There NO warnings when done as a function: int64 d_ReturnMax(int64 I_iTypeSize) { return (1<<((I_iTypeSize*8)-1))-1;}
0
1366
by: snowdream1982 | last post by:
Dear all, I hit an error OVERFLOW but when I insert the sql statement below manually in the SQLEditor, it goes well, no errors at all. My coding: SQLInsertTempMf = "INSERT INTO tempmf " & _ "(scn, bl_num,master_ind,cin_num,master_bl,container_no, consignee_code, consignee_name,consignee_addr1, " & _ "consignee_addr2,consignee_addr3,consignee_addr4,shipper_code,shipper_name,...
1
2985
by: rileyjane | last post by:
Hello, I am running a Union query in Access 2003 that combines two other queries. When I run each query individually, they open fine with no problems. But when I try to run the Union query, I get the Overflow message. I have seen in other posts that the Overflow message usually comes up when a query operation provides a result that is too large to fit in the underlying field size. But if that were the case, wouldn't I get the Overflow...
2
1864
by: johnwaddy | last post by:
I'm clueless to the problem, I have a couple of account with 300+ records and all of a sudden when you recalc it reaches record 256 and pops up this "Overflow" error. I do not have any issues with accounts with less than 256 records. Here is the VBA for the button I use on the form. Private Sub cmdCalc_Click() On Error GoTo Err_cmdCalc_Click Dim curDues As Currency Dim curFee As Currency Dim curCope As Currency Dim...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9028
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7728
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.