"Kelly Vernon" wrote in message
news:FB*****************@tornado.texas.rr.com...
: Good afternoon Roland,
Afternoon.
: Enjoying the our weather? :D
I think we have extra on my side of town.
: Towards the email, I only use it for this newsgroup, I don't check the
: actual email address. I have other accounts I use there. Thank you for the
: advice.
I have a few throw aways myself.
: As for the XML file. It gets broken down like so...
:
: <?xml version="1.0" ?>
: <Courselog>
: <Entry>
: <AICCNbr>999998</AICCNbr>
: <EmpID>99801</EmpID>
: <CourseIDNbr>00002</CourseIDNbr>
: <CourseName>Purchasing Systems Training</CourseName>
: <SessionNbr>0301</SessionNbr>
: <Day>Tue</Day>
: <Date>7/5/2005</Date>
: <StartTimeNbr>13:32:35</StartTimeNbr>
: <EndTimeNbr>14:23:52</EndTimeNbr>
: <CourseScoreNbr>87</CourseScoreNbr>
: </Entry>
: </Courselog>
:
: The log gets created in two parts...
:
: the first time someone takes a course, they create an entry and all but
the
: last two nodes (EndTimeNbr & CourseScoreNbr) are created as well.
:
: When they complete the test, it runs through a function and searches for
an
: AICCNbr match. When it finds the match it appends EndTimeNbr &
: CourseScoreNbr nodes to the associated Entry node.
:
: As one individual the file does great, but I wound up doing a stress test
: with 6 people in the group trying to submit their test information at the
: same time and the results were not pretty for two of them.
:
: I'm just trying to cover any gaps or possible bugs that could occur.
:
: I saw one idea from another post, the application lock. I'll have to
: research that one. Are there any other methods that might prove effective?
I use the Application.lock myself when tracking visitors to one of my sites.
Applications do allow you to thread the process but it takes a performance
hit. There is also a timeout, which is why I asked how long the process
takes but you cannot capture the error.
This will give you a little info on application.lock:
http://msdn.microsoft.com/library/de...0dc206b46a.asp
I have a version of my shopping cart that only uses XML files. I never
experience this issue because I never share files when they write to the
file. Each person has their own cart file, receipt file, etc. However,
they do share files when they read from them like with product files,
postalcode lookup files, shipping rates files, etc. but that should impose a
limitation since they're just being read.
Another possible solution would be to let each one write to their own XML
file and just have an app that would consolidate for reporting, etc.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp