Home > Net >  On WINCE devices, multistage call interface, the close () lead to flash back problems
On WINCE devices, multistage call interface, the close () lead to flash back problems

Time:01-23

Environment: PDA based on the c # development, equipment use environment WINCE.
Situation: in the interface call interface B
 
B B=new B;
B.S howDialog ();

The same in the interface using the same method calls out B C interface,
 
C C=new C;
Mount=this;//the object B to C, B is used to turn off,
C.s. howDialog ();

But after interface C click on the button to turn off the C and B at the same time, to return to the interface of the first A,
 
this.Close(); Turn off//C
The biggest lose (); Turn off//B

At this time in the biggest lose (); This code under the simulation environment of Windows operation no problem, but the formal PDA WINCE environment will lead to equipment application flash back,

Temporary solution: in PDA WINCE environment runtime, the biggest lose () replace b.D ispose () can run normally, but at the same time, Windows emulator and begins to flash back,
Pray god to explain why this is, also have a better solution to the situation of both side is not compatible, thank you,
At present is to check the situation and the.net library of garbage collection, but I don't know much about, and it is recycling mechanism of the environment between different?

CodePudding user response:

The building Lord, do you have solve this problem? I also encountered this problem

CodePudding user response:

Try. Hide hidden form, rather than close close form,
  •  Tags:  
  • C#
  • Related