How to fix the problem of synchronization failure after using wince USB for a period of time

Source: Internet
Author: User

 

After using the USB synchronization function for a period of time, the wince system fails to synchronize data. A dialog box is displayed:


The content of the dialog box is "The ActiveSync version on your device cannot be verified.Program(For example, firewall) is preventing the use of the ActiveSync port to connect to the device, or you may need to upgrade to the PC to teach the new version of ActiveSync. "This problem has been encountered by many friends who use the wince system, currently, you can only find a solution to the problem:

 

1. Processing in the oeminit Function

When this problem occurs, you can perform the following operations to Solve the Problem upon restart, but this action is equivalent to replying to the factory settings.

// Check clean boot flag in BSP ARGs Area

//

{

// This is the global shared ARGs flag

Bool * bcleanbootflag = (bool *) oalargsquery (bsp_args_query_cleanboot );

 

If (* bcleanbootflag)

{

Oalmsg (1, (text ("OEM: force clean boot. \ r \ n ")));

 

// Clear the flag so that we don't get here in the next boot unless itis set again.

* Bcleanbootflag = false;

 

// Tell filesys.exe that we want a clean boot.

Nkforcecleanboot ();

 

// Also set the hive and storage clean flags if not already set

{

Bool * bhivecleanflag = (bool *) oalargsquery (bsp_args_query_hiveclean );

Bool * bformatpartflag = (bool *) oalargsquery (bsp_args_query_formatpart );

 

* Bhivecleanflag = true;

* Bformatpartflag = true;

}

}

}

 

2. delete default. Vol

 

Handle hpartition;

Hpartition = openpartition (openstore (_ T ("dsk2:"), _ T ("part00 "));

Dismountpartition (hpartition );

Mountpartition (hpartition );

If (deletefile (_ T ("\ sysdisk \ documentsand Settings \ default. Vol") = false)

{

MessageBox (_ T ("repairfail "));

}

Else

{

MessageBox (_ T ("repairsuccess "));

}

Closehandle (hpartition );

\ Documents and Settings \ default. the VOL file will become larger and larger. If the file cannot be synchronized normally, it is default. the VOL file has been changed abnormally. You need to delete the file value and then perform cold start. During Cold start, the system function will automatically generate a new (that is, after the system is refreshed) default. vol to solve this problem.

 

However, after a period of time, the problem may be reproduced. In this case, you only need to perform the same repair. Of course, the best way is to fundamentally eliminate this problem. If you know it, I 'd like to share it with you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.