ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 cannot create TIECanvas
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

supersk

95 Posts

Posted - Jul 01 2020 :  06:17:18  Show Profile  Reply
I update an imageenview from childwin(ShowModal);using the code like as follow:
	if (!proc->BeginImageProcessing(Hyieutils::TIEPixelFormatSet(ie24RGB), x1,y1, x2, y2, "WaveletFusion", ProcBitmap, mask)) return;
	for (int i = y1; i <= y2 - 1; i++) {
		px = (Hyiedefs::TRGB*) ProcBitmap->Scanline[i];
		for (int j = x1; j <= x2 - 1; j++) {
			px->r = Src.bmBits[(i - y1) * Src.bmWidth + (j - x1)];
			px->g = px->r;
			px->b = px->r;
			px++;
		}
	}
	proc->EndImageProcessing(ProcBitmap, mask);
	ImgEnMain->Proc->SaveUndo(UndoCaption);


when you run the program,the error occur like as follow#65306;


How to deal with this?

xequte

38179 Posts

Posted - Jul 01 2020 :  19:25:20  Show Profile  Reply
Hi

This seems like a resource issue.

Can you give me full example code to reproduce the issue on my system?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

supersk

95 Posts

Posted - Jul 01 2020 :  22:08:36  Show Profile  Reply
My program is more complicated, so I made a Demo program to explain the problem, but it can not completely replicate the error that appears above. However, this Demo has a similar problem, the operation process is as follows:
1. Press the "Load Image" button to load the image timg.jpg
2. Press the "select" button to select a rectangular area on the image
3. Press the "Test Proc" button to display the image processing interface (Form3)
4. There are two ImageEnView controls in the interface (Form3), the Legacy Bitmap of the first is set to false, and the second is true. Use the same method for image processing, the first image will report an error, the second will not. Clicking the button "update Main Image" will also report an error and cannot be updated.

attach/supersk/202071215559_error sample.zip
91.45 KB
Go to Top of Page

xequte

38179 Posts

Posted - Jul 01 2020 :  23:19:51  Show Profile  Reply
Hi

I'm not getting any errors, what version of BCB and ImageEn are you using?

www.imageen.com/temp/CanvasCrash.zip

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

supersk

95 Posts

Posted - Jul 02 2020 :  05:01:11  Show Profile  Reply
RadStudio_10.3.3, 64Bit
OS: Win10 64bit(19041)
Go to Top of Page

xequte

38179 Posts

Posted - Jul 02 2020 :  17:10:45  Show Profile  Reply
Does my exe crash for you?

www.imageen.com/temp/CanvasCrash.zip

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

supersk

95 Posts

Posted - Jul 03 2020 :  02:43:30  Show Profile  Reply
Thanks a lot.It's OK! But in CB, it still crash.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: