Advertisement

02.19.2008 at 10:34AM PST, ID: 23175221
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Resolve Ms access unexpected crash, Possibel Error with Windows API RtlMoveMemory

Asked by kingjordan in Microsoft Access Database, Windows Programming, Access Coding/Macros

Tags: , , , ,

Hello, this is my first post so bear with me if it is too lengthy or incorrect in some other manner.

I have an Access XP (ADP) application that is connected to a MS SQL server (workgroup) over a Windows Small Business server (2003).  
This Access ADP collects sales data for the current month and groups it into invoices.  This ADP then connects to a third party DB/accounting software (Simply Accounting By Sage) and exports the invoices into Simply (usually 500 to 1000 invoices in total).  All data that is passed to Simply Accounting must be passed as byte data to Custom APIs (dll) supplied by Simply Accounting.  As a result I heavily use the following windows API to create the byte data:

Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
MY PROBLEM:
This ADP unexpectedly crashes at different points in the code that exports these invoices.  The following is the error given in the Application Event Log:
Faulting application msaccess.exe, version 12.0.6211.1000, stamp 46d4aa81, faulting module ntdll.dll, version 5.1.2600.2180, stamp 411096b4, debug? 0, fault address 0x0000316c.

I have found a terrible work around.  If I Pause the code every 20th invoice, this procedure will work 90% of the time.  I pause the code for 2 seconds with the following:
Sub Wait(dblSeconds As Double)
  For i = 1 To dblSeconds * 100
    DoEvents            ' handle events
    Sleep (10)          ' suspend process without CPU-Load
  Next
End Sub
However, 90% working is not good enough for deployment.  I need to fix this.
ATTEMPTED SOLUTIONS:
- I have tried inserting the office disk and repairing, that did not work.
-I have tried moving all files to a local machine, so the network is not involved  it still breaks,
- If I comment out all of the calls to the windows API CopyMemory,

Can you call APIs too quickly, or too often?  I am quite sure the issue is with the windows api RtlMoveMemory but I am not sure how to fix it.Start Free Trial
 
Loading Advertisement...
 
[+][-]02.19.2008 at 11:19AM PST, ID: 20931584

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Windows Programming, Access Coding/Macros
Tags: MICROSOFT, ACCESS, XP, ADP, Faulting application msaccess.exe, version 12.0.6211.1000, stamp 46d4aa81, faulting module ntdll.dll, version 5.1.2600.2180, stamp 411096b4, debug? 0, fault address 0x0000316c.
Sign Up Now!
Solution Provided By: LSMConsulting
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.19.2008 at 11:49AM PST, ID: 20931865

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.19.2008 at 01:27PM PST, ID: 20932775

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.19.2008 at 01:34PM PST, ID: 20932844

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.19.2008 at 01:45PM PST, ID: 20932949

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.25.2008 at 01:16PM PDT, ID: 21869456

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 07:00AM PDT, ID: 21894064

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628