Subject RE: [ib-support] RC1 Error - Responses
Author Bill Morrison
Thanks for reminding me that I'm a program and can code such things. :)

Unfortunately, the test didn't yield anything, I was able to open the three
files in read/write mode at the same time with no problem using the Delphi
wrapper around the Windows CreateFile method. This succeeded.

I also did this under VC++5 (pardon the cruddy code):

int iOne=open("d:\\navco\\db\\navco.gdb", O_RDONLY );
int iTwo=open("e:\\navco\\db\\navco01.gdb", O_RDONLY );
int iThree=open("f:\\navco\\db\\navco02.gdb", O_RDONLY );
if ((iOne==-1) || (iTwo==-2) || (iThree==-3)) {return 0;}

close(iOne);
close(iTwo);
close(iThree);

return 1;

and it worked fine. Now I am truly confused as to what is going on. What
other file operations are done on the db's during connect?


Bill

-----Original Message-----
From: Ann W. Harrison [mailto:aharrison@...]
Sent: Wednesday, December 05, 2001 11:43 AM
To: ib-support@yahoogroups.com
Subject: RE: [ib-support] RC1 Error - Responses


At 09:34 AM 12/5/2001 -0800, Bill Morrison wrote:

>1450 ERROR_NO_SYSTEM_RESOURCES
>1451 ERROR_NONPAGED_SYSTEM_RESOURCES
>1452 ERROR_PAGED_SYSTEM_RESOURCES
>
>Unfortunately FB only returns the message and not the code.

Bill, you should be able to reproduce the error from a tiny
program that just tries to open the database file. That would
get you the code. Here's the code gstat uses:

if ((open (file_name, O_RDONLY)) == -1)
FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
errno,
GetUserDefaultLangID(),
s,
sizeof (s),
NULL));

where s is a 128 byte character string, and filename
is the name of the database file.

Regards,

Ann



To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/