PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → HFBackup in WinDEV 19
HFBackup in WinDEV 19
Débuté par Steven Sitas, 18 déc. 2014 13:30 - 4 réponses
Posté le 18 décembre 2014 - 13:30
Hi,
the following code works just fine in a WD17application and a HFSQL v17 database:

// Describe an immediate backup
Backup_Doc is hBackupDescription
Backup_Doc..Description = "Doc Backup"
Backup_Doc..WithIndex = True
Backup_Doc..ProgressBar = "PROGBAR_ProgBarHand"
Backup_Doc..Destination =MyDirectory
Backup_Doc..Source = "*"
Backup_Doc..LimitNumberBackups = 0
// Save the backup
nMyBackup=HBackup(myconnect, Backup_Doc)
///////////////////////////////////////////////////////////////////////

When I upgrade this app/code to WD19 and HFSQL 19 - it gives an error - near the end of the backup - saying .."Not enough storage is available to process this command(<img src="/NG2013_WEB/ui/smiley/7.gif" align=absmiddle border=0 alt="8)">".
and an errorcode 70151 (which means INSUFFICIENT MEMORY)

I get the same error with the WD19 app and HFSQL 17 ....

Any Ideas ?
Posté le 18 décembre 2014 - 14:25
Hi Steven,

The error message reads like it it has two meanings:
1) Not enough memory
2) Not enough hard disk space...

Quote

Insufficient memory to complete the operation.

Close one or more applications or free disk space and repeat the operation.

I know its a basic question, but do you have space on your drive for the backup file?

Thanks
Ned!
Posté le 18 décembre 2014 - 18:32
Hi Ned,
yes I have a lot of space.
I sent a report to PCSoft about the problem, but in the meantime I bypassed the problem changing this: Backup_Doc..Source = "*"
to Backup_Doc..Source = "myDatabase/*"

It is a resource problem of some kind, but not a problem with disk space.
I also forgot to say that it happens with HFSQL 32bit and 64 bit
Posté le 22 décembre 2014 - 13:44
Hi Steven,

What is the OS? If it is Win 8 or Win8.1, then it may be a problem with the OS. I have seen similar kinds of (wrong) errors (not enough disk space) in some other software too, when moving from an earlier Windows to 8.

Best regards
Ola
Posté le 22 décembre 2014 - 14:19
Hi Ola,
I tested it and it happens on Windows 2012R2 Server (also 2008R2) and Windows 7, Windows 8 and 8.1 !!!!

The same code compiled with V17, works just fine.

My original code (the one I posted) did a FULL backup of the server (all its databases, log files etc).
According to PCSoft support the only thing I can do is upgrade the "server" - for me this means more RAM - but I already have 16 GB !!!!
And say I go to 32 GB - what happens if after that I need more RAM ?

I would assume that if this was a RAM problem, PCSoft could use "Virtual RAM" like the hard disk to bypass the problem. We have plenty of free hard disk storage - but RAM?

Since I am not optimistic - to get a solution from PCSoft -I am now just doing a backup one database each time ...

Steven Sitas