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
 Stream error
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - Sep 02 2014 :  07:51:30  Show Profile  Reply
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

xequte

38616 Posts

Posted - Sep 02 2014 :  22:14:16  Show Profile  Reply
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
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 03 2014 :  05:42:59  Show Profile  Reply
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
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 03 2014 :  06:09:06  Show Profile  Reply
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
Go to Top of Page

xequte

38616 Posts

Posted - Sep 03 2014 :  17:18:40  Show Profile  Reply
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
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 03 2014 :  17:58:56  Show Profile  Reply
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
Go to Top of Page

xequte

38616 Posts

Posted - Sep 03 2014 :  19:01:06  Show Profile  Reply
Thanks Bill,

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



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 04 2014 :  05:59:08  Show Profile  Reply
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
Go to Top of Page

pierrotsc

USA
497 Posts

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

Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 04 2014 :  08:24:27  Show Profile  Reply
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




Go to Top of Page

xequte

38616 Posts

Posted - Sep 04 2014 :  14:55:37  Show Profile  Reply
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
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 05 2014 :  08:31:54  Show Profile  Reply
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
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 05 2014 :  09:17:16  Show Profile  Reply
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
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 06 2014 :  14:52:36  Show Profile  Reply
Bill, just realized that your suggestion would not work. Your demo has no other uses than Imageen and it crashes.
Pierre
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 06 2014 :  14:58:03  Show Profile  Reply
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
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 07 2014 :  05:45:18  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: