0

Hello,

First of all, sorry for my english. I will try to make me understand.

I'm doing a program with CodeGear C++Builder 2009 that manages a few tables.
The tables were created with Database Desktop 7.0 (dbd32).

Between these tables there are a table whose name is 'Evaluation'. His estructure is the follows:
[img]http://img204.imageshack.us/img204/5281/61508099.jpg[/img]

The marked fields in red are the Graphics objects and its the fields that I think that nor work.

I do a Post() in this table and works it perfectly. But, when I do a few Post(), saving three or four images by instace, apper this error: Bitmap Image is not Valid.
http://img195.imageshack.us/img195/6606/78798525.jpg

This is the visual windows of my program where I save the instance of 'Evaluation'.
http://img803.imageshack.us/img803/6075/74666256.jpg

Four of five photos can load in a Tabsheet with this code:

switch(PageControl1->TabIndex)
		{
		case 0:
		if(OpenPictureDialog1->Execute())
				{
		DBImage2->Picture->LoadFromFile(OpenPictureDialog1->FileName);
		DBImage2->CopyToClipboard();
		DBImage2->PasteFromClipboard();
				}
		break;

This DBImage have a DataSource and DataField correspondent with 'Evaluation'.

Another of five images use an auxiliar DBImage to copy the content of another DBImage. The code that I use before the Post():

DBImage1->CopyToClipboard();
	 DBImage7->PasteFromClipboard();

DBImage7 have DataSource and Datafield correspondent with 'Evaluation'.

The format of this images is usually .jpeg or .jpg.
My question is: why leaves me save at the beginning and when I do a lot of instances throws this error?

The tables are not corrupted because I verified them with "Dr. Regener Paradox Table Repair 4".

Please...HELP. I am completely lost...
If you have not understood something, please, post and i will try to clarify.

THANKS

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by gusano79
0

Do you always get the same error in the same place, or does it change?

Is there a specific reason you need to use the clipboard? It might be part of the problem.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.