| View previous topic :: View next topic |
| Author |
Message |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
Posted: Fri Nov 14, 2008 9:22 am Post subject: It's a exception after I close a form! |
|
|
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 |
|
 |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
Posted: Fri Nov 14, 2008 2:12 pm Post subject: My English is not good,是不&a |
|
|
| you don't Understand me? |
|
| Back to top |
|
 |
Softanics Site Admin
Joined: 18 Sep 2004 Posts: 1264 Location: Russia, St. Petersburg
|
Posted: Fri Nov 14, 2008 2:35 pm Post subject: |
|
|
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 |
|
 |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
|
| Back to top |
|
 |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
Posted: Sat Nov 15, 2008 1:44 pm Post subject: e |
|
|
This question puzzles me a long time .
Look forward to your reply! |
|
| Back to top |
|
 |
Softanics Site Admin
Joined: 18 Sep 2004 Posts: 1264 Location: Russia, St. Petersburg
|
Posted: Sat Nov 15, 2008 5:00 pm Post subject: |
|
|
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 |
|
 |
Softanics Site Admin
Joined: 18 Sep 2004 Posts: 1264 Location: Russia, St. Petersburg
|
Posted: Sat Nov 15, 2008 5:01 pm Post subject: |
|
|
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 |
|
 |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
Posted: Sun Nov 16, 2008 4:32 am Post subject: 2 |
|
|
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 |
|
 |
Softanics Site Admin
Joined: 18 Sep 2004 Posts: 1264 Location: Russia, St. Petersburg
|
Posted: Sun Nov 16, 2008 2:01 pm Post subject: Re: 2 |
|
|
| 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! _________________ Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html |
|
| Back to top |
|
 |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
Posted: Mon Nov 17, 2008 4:07 am Post subject: |
|
|
Thank you ! I will try..  |
|
| Back to top |
|
 |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
Posted: Tue Nov 18, 2008 4:20 am Post subject: |
|
|
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 |
|
 |
Softanics Site Admin
Joined: 18 Sep 2004 Posts: 1264 Location: Russia, St. Petersburg
|
Posted: Tue Nov 18, 2008 7:43 pm Post subject: |
|
|
| 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 |
|
 |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
Posted: Thu Nov 20, 2008 4:55 am Post subject: |
|
|
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 |
|
 |
Softanics Site Admin
Joined: 18 Sep 2004 Posts: 1264 Location: Russia, St. Petersburg
|
Posted: Thu Nov 20, 2008 8:40 am Post subject: |
|
|
| benben2301 wrote: |
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 |
|
 |
benben2301
Joined: 14 Nov 2008 Posts: 12
|
Posted: Fri Nov 21, 2008 3:34 am Post subject: |
|
|
haha ,
Yes,that sample don't have "IrisSkin"
ok ,I know ,Thanks for your answer,good luck!~ |
|
| Back to top |
|
 |
|