It's a exception after I close a form!

.NET Edition of the F-IN-BOX
benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

It's a exception after I close a form!

Postby benben2301 » Fri Nov 14, 2008 9:22 am

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

benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

My English is not good,是不&a

Postby benben2301 » Fri Nov 14, 2008 2:12 pm

you don't Understand me?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Fri Nov 14, 2008 2:35 pm

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

benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

code

Postby benben2301 » Sat Nov 15, 2008 2:15 am

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);"

benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

e

Postby benben2301 » Sat Nov 15, 2008 1:44 pm

This question puzzles me a long time .

Look forward to your reply!

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sat Nov 15, 2008 5:00 pm

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sat Nov 15, 2008 5:01 pm

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

benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

2

Postby benben2301 » Sun Nov 16, 2008 4:32 am

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.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: 2

Postby Softanics » Sun Nov 16, 2008 2:01 pm

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

benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

Postby benben2301 » Mon Nov 17, 2008 4:07 am

Thank you ! I will try.. :o

benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

Postby benben2301 » Tue Nov 18, 2008 4:20 am

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!

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Tue Nov 18, 2008 7:43 pm

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

benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

Postby benben2301 » Thu Nov 20, 2008 4:55 am

:shock:

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!

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Nov 20, 2008 8:40 am

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.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

benben2301
Posts: 12
Joined: Fri Nov 14, 2008 9:04 am

Postby benben2301 » Fri Nov 21, 2008 3:34 am

haha :lol: ,
Yes,that sample don't have "IrisSkin"

ok ,I know ,Thanks for your answer,good luck!~


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 14 guests

cron