Chris M11 1.Jul.11 04:36 AM a Web browser
General All Releases Windows Vista; Windows 2003; Windows 2000; Windows XP
Been trying for a couple days to get this working and have exhausted both the C API reference and Google !! Can anyone see anything wrong with this ?
It uses the C API and basically I'm trying to get progress stats while replicating. On the third call it always crashes the program.
First Time Called
State = 0 (0 = PROGRESS_SIGNAL_BEGIN)
Data1 = undefined
Data2 = Text containing the database location
Second Time Called
State = 3 (3 = PROGRESS_SIGNAL_SETTEXT)
Data1 = "Pulling *location of local file* from *name of server*
Data2 = undefined
Third Time Called
Here is the relevant code.
ProgressProc = OSSetSignalHandler(OS_SIGNAL_PROGRESS, (OSSIGPROC) ReplicationHandler);
ReplicateWithServer(NULL, Server, Options, 1, FileName, NULL);
void ReplicationHandler(WORD State, char * Data1, char * Data2)
// the third time this is called by OS_SIGNAL_PROGRESS it crashes :(
Thanks for any assistance.
OSSetSignalHandler C API (Chris M11 1.Jul.11)
. . RE: OSSetSignalHandler C API (Timothy B Nicho... 20.Jul.11)