CDaoRecordset thread-safe Memory Access exception and For Loop 18000 records MFC

  • Thread starter Thread starter KeanHeng
  • Start date Start date
K

KeanHeng

Guest
Problem domain
Access SQL query Processing takes up too long.
For Loop = 18000++ records

So, I transferred below codes to spawn another thread in same class


// Thread tasks
CDaoDatabase dbData;
CDaoRecordset RecordSet(&dbData);

dbLot.Open(DATA_DB, FALSE); // ? Why Memory access violation here? Same code in main Class has no error.





Please suggest alternative for CDaoRecordset thread-safe?

And how can I speed up For Loop 18000 records in MFC? :(

Continue reading...
 
Back
Top