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
 Stream error

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
pierrotsc Posted - Sep 02 2014 : 07:51:30
Under XE, if you use the layerssavetostream command, it will generate a stream error. I tried it with clean version of XE in a VM and on a different computer. It does work under delphi 2007 though.
Pierre
15   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - Sep 07 2014 : 05:45:18
I did not change a line. Ran it straight from the zip file. I am doing some troubleshooting. I have a new computer that I just re installed the OS. Installed a fresh copy of XE and only Imageen. No crashes. I am now re adding all the others 3rd party to see if it start crashing. I do not think that is going to happen though.
It looks like one of the 3rd party conflicts with the iezlib library.
So far so good.
Thanks.
Pierre
w2m Posted - Sep 06 2014 : 14:58:03
I am sorry but I do not know how to resolve your problem. Are you sure you have not changed the original demo from what it was when you received it? The reason why I ask is I have been using this technique in several applications and I have never seen it cause an exception. Can you pinpoint the line that is causing the exception with EurekaLog or MadExcept? My guess it that the exception occurs in some other event in your program.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
pierrotsc Posted - Sep 06 2014 : 14:52:36
Bill, just realized that your suggestion would not work. Your demo has no other uses than Imageen and it crashes.
Pierre
w2m Posted - Sep 05 2014 : 09:17:16
That is not a work-around. That is the way Delphi works. If you have conflicts that you can not resolve then you must put the unit name last in uses.

I am glad you figured it out though...

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
pierrotsc Posted - Sep 05 2014 : 08:31:54
I found a work around. If i put the imagineen library path at the beginning of the list, then the error disappears. So some library are conflicting with some others.
Pierre
xequte Posted - Sep 04 2014 : 14:55:37
Hi

Please send me the demo. Do I need to add anything to the TImageEnVect for it to happen?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
pierrotsc Posted - Sep 04 2014 : 08:24:27
Ok, i loaded eurekalog and now i get some input. It looks like it has to do with some library compression. Maybe you can decipher the screenshots.
Pierre




pierrotsc Posted - Sep 04 2014 : 08:14:25
here's a snapshot. I just clicked on the copy layer button.

pierrotsc Posted - Sep 04 2014 : 05:59:08
I am using 5.1.1. very strange that happens on 2 different computers. I have idefixpack, ddevextensions and cnwizards.
I am now puzzled.
Let me do some more testing.
Thanks.
Pierre
xequte Posted - Sep 03 2014 : 19:01:06
Thanks Bill,

@Pierre: Is there any further information you can give us?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Sep 03 2014 : 17:58:56
Nigel,

No I do not and have never had this produce exceptions, even with previous versions.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
xequte Posted - Sep 03 2014 : 17:18:40
Hi Pierre

I cannot reproduce that in v5.1.2 Beta. Do you see this too, Bill?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Sep 03 2014 : 06:09:06
Here is the code:
{ Update the preview layers }
var
  iMS: TMemoryStream;
begin
  iMS := TMemoryStream.Create;
  try
    ImageEnVect1.LayersSaveToStream(iMS);
    iMS.Position := 0;
    ImageEnVectPreview1.LayersLoadFromStream(iMS);
    ImageEnVectPreview1.Update;
  finally
    iMS.Free;
  end;
end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
pierrotsc Posted - Sep 03 2014 : 05:42:59
It crashes in my program and the demo that Bill sent me. Simple demo to assign imageen using layerssavetostream.
I get a lot of stream error even when i try to add a box.
I tested it on XP and win 7 with clean delphi XE install.
If you want me to send you Bill's demo i can but just create a button that says imageenvect.layerssavetostream (Imem);
Imem: tmemorystream;

It does not happen with D2007.
Thanks.
Pierre
xequte Posted - Sep 02 2014 : 22:14:16
Hi Pierre

Can you show me the exact code you are using?

Is this for your code to assign the content of one TImageEnView to another? If so, email me for a code update.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com