🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9771

Re: CopyFileEx - CopyProgressRoutine - devision by zero

#9771
From: Remy Lebeau (TeamB)
Date: Tue, 15 Jun 2004 04:28
12 lines
1283 bytes
"Tommy" <tommyw@yahoo.com> wrote in message
news:40ce2e93@newsgroups.borland.com...

> when i run my appliaction i always get after a short time
> the message "devision by zero" and the application stops.

You are not checking the TotalFileSize for a value of 0 before performing
your calculations.  You probably do have 0-byte files in your directory.


Gambit
Technical Details
Message-ID: <40ce7bed$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40ce2e93@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9a3709a4832c0e51
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40ce2e93@newsgroups.borland.com>
Subject: Re: CopyFileEx - CopyProgressRoutine - devision by zero
Date: Mon, 14 Jun 2004 21:28:32 -0700
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.169.168.124
Message-ID: <40ce7bed$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087273965 68.169.168.124 (14 Jun 2004 21:32:45 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail