Page 1 of 2
It's a exception after I close a form!
Posted: Fri Nov 14, 2008 9:22 am
by benben2301
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
My English is not good,是不&a
Posted: Fri Nov 14, 2008 2:12 pm
by benben2301
you don't Understand me?
Posted: Fri Nov 14, 2008 2:35 pm
by Softanics
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!
code
Posted: Sat Nov 15, 2008 2:15 am
by benben2301
The code:
http://xianexs.mail.qq.com/cgi-bin/down ... &&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);"
e
Posted: Sat Nov 15, 2008 1:44 pm
by benben2301
This question puzzles me a long time .
Look forward to your reply!
Posted: Sat Nov 15, 2008 5:00 pm
by Softanics
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.
Posted: Sat Nov 15, 2008 5:01 pm
by Softanics
BTW what if just ignore the exception?...
2
Posted: Sun Nov 16, 2008 4:32 am
by benben2301
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.
Re: 2
Posted: Sun Nov 16, 2008 2:01 pm
by Softanics
benben2301 wrote:What "BTW" is?
"By the way"
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!
Posted: Mon Nov 17, 2008 4:07 am
by benben2301
Thank you ! I will try..
Posted: Tue Nov 18, 2008 4:20 am
by benben2301
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!
Posted: Tue Nov 18, 2008 7:43 pm
by Softanics
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.
Posted: Thu Nov 20, 2008 4:55 am
by benben2301
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!
Posted: Thu Nov 20, 2008 8:40 am
by Softanics
benben2301 wrote::shock:
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.
Posted: Fri Nov 21, 2008 3:34 am
by benben2301
haha
,
Yes,that sample don't have "IrisSkin"
ok ,I know ,Thanks for your answer,good luck!~