www.f-in-box.com Forum Index www.f-in-box.com
F-IN-BOX
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
F-IN-BOX Home | DLL Edition | Delphi Edition | .NET Edition

It's a exception after I close a form!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    www.f-in-box.com Forum Index -> .NET Edition
View previous topic :: View next topic  
Author Message
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Fri Nov 14, 2008 9:22 am    Post subject: It's a exception after I close a form! Reply with quote

when I open a form use to config the application ,(the form is open by I clicked the Right menu), but when I close the form,it is a IOException()

if anyone of forms in this application closed,this IOException will appear

I see that:

MyTranslucencyForm : f_in_box__lib.f_in_box__form

MyTranslucencyForm FlashPlayerForm=new MyTranslucencyForm();

FlashPlayerForm.PutMovieFromStream(this.GetType().Assembly.GetManifestResourceStream("QQPet.swf." + name))



private void Write(byte[] buffer, int count)
{
uint num;
IntPtr destination = Marshal.AllocCoTaskMem(count);
Marshal.Copy(buffer, 0, destination, count);
int num2 = f_in_box__wrapper.FPC_IStream_Write(this.stream, destination.ToInt32(), count, out num);
Marshal.FreeCoTaskMem(destination);
if (num2 != 0)
{
throw new IOException(); }
}

version:3.2.1
Back to top
View user's profile Send private message
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Fri Nov 14, 2008 2:12 pm    Post subject: My English is not good,是不&a Reply with quote

you don't Understand me?
Back to top
View user's profile Send private message
Softanics
Site Admin


Joined: 18 Sep 2004
Posts: 1264
Location: Russia, St. Petersburg

PostPosted: Fri Nov 14, 2008 2:35 pm    Post subject: Reply with quote

Thank you for your question.

It seems I need more information from you to reproduce the problem.

Could you please send me a sample code to support (at) f-in-box.com ? It would be great and helps me to understand the problem quickly.

Thank you!
_________________
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Sat Nov 15, 2008 2:15 am    Post subject: code Reply with quote

The code:
http://xianexs.mail.qq.com/cgi-bin/downloadfilepart/svrid232/QQPet.rar?svrid=232&fid=8fb3d9a2b08e0428d89f851ed81682e6f1b382b155e8edca&&txf_fid=681828541a69e5d372808d601c2bfab24ee7de27&&txf_sid=

Extraction code(提取码):9f889ab9

when the application run you can Right-click the pet ,there is a context name is 设置(config),open it ,then close it ,a exception will be found

the error will found in " private void Play()" or "private void PlayNext()" the position at "FlashPlayerForm.PutMovieFromStream(testStream);"
Back to top
View user's profile Send private message
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Sat Nov 15, 2008 1:44 pm    Post subject: e Reply with quote

This question puzzles me a long time .

Look forward to your reply!
Back to top
View user's profile Send private message
Softanics
Site Admin


Joined: 18 Sep 2004
Posts: 1264
Location: Russia, St. Petersburg

PostPosted: Sat Nov 15, 2008 5:00 pm    Post subject: Reply with quote

I can't reproduce the problem...

What I can't understand, why the exception occured in Play() or PlayNext(), if you just close a form?... Any idea?

Thank you.
_________________
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Softanics
Site Admin


Joined: 18 Sep 2004
Posts: 1264
Location: Russia, St. Petersburg

PostPosted: Sat Nov 15, 2008 5:01 pm    Post subject: Reply with quote

BTW what if just ignore the exception?...
_________________
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Sun Nov 16, 2008 4:32 am    Post subject: 2 Reply with quote

What "BTW" is?

"Play()" and "PlayNext()" are two functions wirte by myself,they will use

the function "PutMovieFromStream();" the exception

be found there ,Whether there is anything wrong in the f_in_box.dll that

it can filter any Message such as "WM_ClOSE",then it will close any

Stream because it think the application is exit!

if you have any doubt ,you can run the application, the application is very
Simple ,it like a desktop-pet,you will like it ,hehe.
Back to top
View user's profile Send private message
Softanics
Site Admin


Joined: 18 Sep 2004
Posts: 1264
Location: Russia, St. Petersburg

PostPosted: Sun Nov 16, 2008 2:01 pm    Post subject: Re: 2 Reply with quote

benben2301 wrote:
What "BTW" is?


"By the way" Smile

benben2301 wrote:

"Play()" and "PlayNext()" are two functions wirte by myself,they will use

the function "PutMovieFromStream();" the exception

be found there ,Whether there is anything wrong in the f_in_box.dll that

it can filter any Message such as "WM_ClOSE",then it will close any

Stream because it think the application is exit!

if you have any doubt ,you can run the application, the application is very
Simple ,it like a desktop-pet,you will like it ,hehe.


It doesn't filter WM_CLOSE.

What if catch IOException, but just ignore it?

Also please check your email, I've just sent a debug build. Please rebuild your application with this build, and when it crashes, save dump (Debug -> Save dump as...) and send me it.

Thank you!
_________________
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Mon Nov 17, 2008 4:07 am    Post subject: Reply with quote

Thank you ! I will try.. Surprised
Back to top
View user's profile Send private message
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Tue Nov 18, 2008 4:20 am    Post subject: Reply with quote

I have found the problem,I use a control to make beautiful skin,this control named skinEngine(IrisSkin2.dll),it and f_in_box are not compatible.

Thank you very much!Good luck!
Back to top
View user's profile Send private message
Softanics
Site Admin


Joined: 18 Sep 2004
Posts: 1264
Location: Russia, St. Petersburg

PostPosted: Tue Nov 18, 2008 7:43 pm    Post subject: Reply with quote

benben2301 wrote:
I have found the problem,I use a control to make beautiful skin,this control named skinEngine(IrisSkin2.dll),it and f_in_box are not compatible.


Could you please give me more information regarding this issue? We are ready to improve f-in-box to make it compatible with IrisSkin2.

I've tried your sample and it works well.

Thank you in advance.
_________________
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Thu Nov 20, 2008 4:55 am    Post subject: Reply with quote

Shocked

It works well ?

oh,My god,heh . It works bad until I take IrisSkin2 out.....

I decide draw the form myself.

by the way ,I want to ask a question beyond f-in-box:
what could I do to make the contextmenu beautiful?

Thank you!
Back to top
View user's profile Send private message
Softanics
Site Admin


Joined: 18 Sep 2004
Posts: 1264
Location: Russia, St. Petersburg

PostPosted: Thu Nov 20, 2008 8:40 am    Post subject: Reply with quote

benben2301 wrote:
Shocked

It works well ?


No, no. My mistake. I remembered, when I tested your sample, I just removed referenced to IrisSkin, becuase it was not built (I don't have IrisSkin).

benben2301 wrote:

I decide draw the form myself.

by the way ,I want to ask a question beyond f-in-box:
what could I do to make the contextmenu beautiful?


What about ContextMenuStrip that is available in .net 2.0?

Thank you.
_________________
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
benben2301



Joined: 14 Nov 2008
Posts: 12

PostPosted: Fri Nov 21, 2008 3:34 am    Post subject: Reply with quote

haha Laughing ,
Yes,that sample don't have "IrisSkin"

ok ,I know ,Thanks for your answer,good luck!~
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.f-in-box.com Forum Index -> .NET Edition All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group