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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 cannot create TIECanvas

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
supersk Posted - Jul 01 2020 : 06:17:18
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?

6   L A T E S T    R E P L I E S    (Newest First)
supersk Posted - Jul 03 2020 : 02:43:30
Thanks a lot.It's OK! But in CB, it still crash.
xequte Posted - Jul 02 2020 : 17:10:45
Does my exe crash for you?

www.imageen.com/temp/CanvasCrash.zip

Nigel
Xequte Software
www.imageen.com
supersk Posted - Jul 02 2020 : 05:01:11
RadStudio_10.3.3, 64Bit
OS: Win10 64bit(19041)
xequte Posted - Jul 01 2020 : 23:19:51
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
supersk Posted - Jul 01 2020 : 22:08:36
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
xequte Posted - Jul 01 2020 : 19:25:20
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