Welcome, Guest. Please login or register.
May 26, 2024, 06:36:43 AM

Login with username, password and session length
* Home Help Arcade Login Register
.
+  Forum
|-+  Homebrew Player Tracking and EFT Systems.
| |-+  NLG Homebrew Player Tracking and EFT Systems.
| | |-+  Debug SAS DLL for testing
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: 1 [2] 3 4 5 Go Down Print
Author Topic: Debug SAS DLL for testing  (Read 60655 times)
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #25 on: March 10, 2011, 02:46:28 AM »

...., which now leads me to think you may not be running the latest dll!

Not sure if any paths are hard coded, but Bunker's screenshot shows it's not intalled in the default install folder. Notice the dll is in 'test app' folder.
« Last Edit: March 10, 2011, 02:55:49 AM by poppo » Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #26 on: March 10, 2011, 03:07:46 AM »

Well according to microsoft you are not allowed to redistribute debug libraries... so I will put the dlls up on my site here http://users.tpg.com.au/adslcmdn/SASEGMTest/debugdll/msvcr100d.dll just in case I need to use them to debug some stuff on a customer site.

I am pretty sure that you can just put it in the same directory as the dll, if not is c:\windows\system32
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #27 on: March 10, 2011, 03:13:42 AM »

I am pretty sure that you can just put it in the same directory as the dll,

That works. Program now runs and talks to the machine (but old version already did for me). Could Bunker's issue be related to the dll folder noted above?
Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #28 on: March 10, 2011, 03:22:39 AM »

I am pretty sure that you can just put it in the same directory as the dll,

That works. Program now runs and talks to the machine (but old version already did for me). Could Bunker's issue be related to the dll folder noted above?

most likely. New dll's need to go in the same folder as SASEGMTest.exe
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #29 on: March 10, 2011, 03:26:24 AM »

dbmon working too. Here is a small capture. What's up with line 4032 - 'Chirp from Poll Address: 0'.  Address 0?  Normal? I get those groups of chirps frequently, but only that one (for the short time I let it run) had address 0. All the other groups were all address 1.


4032:   Enter: CSerialPrinterPort::WriteCommBlock
4032:     Leave: ReadCommBlock
4032:     Bytes Read 0
4032:     Empty buffer!
4032:   Leave: CSerialPrinterPort::WriteCommBlock
4032:     Waiting on comm/shutdown events
4032:   Write General Poll
4032:   Enter: CSerialPrinterPort::WriteCommBlock
4032:   Leave: CSerialPrinterPort::WriteCommBlock
4032:     Comm signalled
4032:     Enter: ReadCommBlock
4032:       Parity Error
4032:       IO Pending
4032:     Leave: ReadCommBlock
4032:     Bytes Read 25
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 1
4032:     Chirp from Poll Address: 0
4032:     Waiting on comm/shutdown events
4032:     Comm signalled
4032:     Enter: ReadCommBlock
4032:       IO Pending
4032:   Retreive General Response
4032:   Enter: RetrieveResponse
4032:   Leave: RetrieveResponse
4032:   Write Sequence Poll
4032:   Enter: CSerialPrinterPort::WriteCommBlock
4032:   Leave: CSerialPrinterPort::WriteCommBlock
4032:   Write General Poll
4032:   Enter: CSerialPrinterPort::WriteCommBlock
4032:   Leave: CSerialPrinterPort::WriteCommBlock
4032:     Leave: ReadCommBlock
4032:     Bytes Read 1
« Last Edit: March 10, 2011, 03:36:59 AM by poppo » Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #30 on: March 10, 2011, 03:36:48 AM »

No, thats one of the problems with SAS and PC's, its not actually a chirp, its a no activity response from a general poll. The problem is, you can see that 25 bytes were in the buffer, and when you read them out there is no way to tell if the parity error is for one or all. If you could, all the chirps wouls show parity error (because the wakeup bit is set) and the response would show no parity error.

I will get the timing stuff sorted soon, and that should fix most of those little issues.
Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #31 on: March 10, 2011, 03:42:39 AM »

I am pretty sure that you can just put it in the same directory as the dll,

That works. Program now runs and talks to the machine (but old version already did for me). Could Bunker's issue be related to the dll folder noted above?

most likely. New dll's need to go in the same folder as SASEGMTest.exe

Okay,
I just stuck everything into the SASEGMTest.exe folder...
I'll go try it again.


ADD>>> No go Houston...Here's a screenshot...
Everything's in the same folder...>>>



* screenshot of stuck App.png (74.45 KB, 800x570 - viewed 359 times.)
« Last Edit: March 10, 2011, 03:53:24 AM by stayouttadabunker » Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #32 on: March 10, 2011, 04:03:43 AM »

ADD>>> No go Houston...Here's a screenshot...
Everything's in the same folder...>>>

Ok, are you sure that is the new dll? If it is you should have been getting the errors we were getting without the msvcr100d.dll. And I don't see that in there. If you go to details view of the folder, the dll file size should be about 279k vice 56k of the old one.
« Last Edit: March 10, 2011, 04:09:27 AM by poppo » Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #33 on: March 10, 2011, 04:08:50 AM »

I think so...it was larger in size if I recall...279kb
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #34 on: March 10, 2011, 04:11:37 AM »

I think so...it was larger in size if I recall...279kb

Never mind, I see it's highlighted and the size is shown. But are you running the SASEGMTest.exe from that directory too? Or using a shortcut pointing to a different one?

Maybe the solution is  POS Computer

 Tongue Out
« Last Edit: March 10, 2011, 04:17:39 AM by poppo » Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #35 on: March 10, 2011, 04:14:05 AM »

yup...same size as yours...lol
Below that is the "Properties" folder>>>


* size of file.png (68.79 KB, 800x600 - viewed 335 times.)

* properties folder.png (68.29 KB, 800x570 - viewed 314 times.)
Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #36 on: March 10, 2011, 04:21:58 AM »

I think so...it was larger in size if I recall...279kb

Never mind, I see it's highlighted and the size is shown. But are you running the SASEGMTest.exe from that directory too? Or using a shortcut pointing to a different one?

Maybe the solution is  POS Computer

 Tongue Out

Nope, I run it from the "Start" button on the left>>>


* SASTest start button.png (74.09 KB, 380x570 - viewed 353 times.)
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #37 on: March 10, 2011, 04:26:24 AM »

I don't know if you should have another copy in the properties directory???  And I put the msvcr100d.dll in the SAGEGMTest folder.

Try double clicking the SASEGMtest.exe right from within the folder.


* folders.jpg (191.46 KB, 606x599 - viewed 340 times.)
Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #38 on: March 10, 2011, 04:30:04 AM »

Yeah...I did but this pops up instead>>



* double clicking on sasegmtest.png (14.45 KB, 444x170 - viewed 320 times.)
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #39 on: March 10, 2011, 04:32:03 AM »

Yeah...I did but this pops up instead>>



That's good since that is what we were getting. Now move the msvcr100d.dll into the SAGEGMTest folder and try again (double clicking from within the folder).
Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #40 on: March 10, 2011, 04:39:14 AM »

okay,
I re-arranged my folders to look exactly like yours.>>>


* SASEGMTest Folder.png (67.14 KB, 800x570 - viewed 331 times.)

* Properties folder.png (53.71 KB, 800x570 - viewed 303 times.)
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #41 on: March 10, 2011, 04:43:27 AM »

okay,
I re-arranged my folders to look exactly like yours.>>>

Ok, now double click the program from within the folder and.....<drum roll>....
Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #42 on: March 10, 2011, 04:45:29 AM »

<Smash!> drums busts...lol


* clicking from msvcr.png (68.78 KB, 800x570 - viewed 326 times.)
Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #43 on: March 10, 2011, 04:46:08 AM »

good night Poppo...
you tried...
I gotta  zzzzzzz
I just verified that the serial cable is good because the Sim still works fine...

 You've Got Mail
« Last Edit: March 10, 2011, 04:52:34 AM by stayouttadabunker » Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #44 on: March 10, 2011, 04:54:23 AM »

Did you double click the SASEGMtest.exe or the msvcr100d.dll?  Scratch Head Should be clicking the SASEGMtest.exe

Oh well, tomorrow is another day. Wait...it is tomorrow.  wave
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #45 on: March 10, 2011, 11:01:21 AM »

Ok, after getting a good night's sleep knockout , the only other thing I noticed is that it looks like you are using all of the files from the original program and not the first updated one. AndyP will have to answer this, but maybe this dll will not work right with those other files. I am going by the file sizes and time/dates that your screenshot shows vs the ones on mine.

Once that is sorted out and if nothing else, the dbmon program should now work. The output of dbmon is pretty fast, so after you verify it is outputting something, you may want to close it and then run it like this for about 10 seconds:
dbmon >c:\dbmon.log
That will direct the output to the dbmon.log file which you can then attach for AndyP to look at. Note: you won't see any output on the screen when run tihis way, it's all going to the log file.
Logged
AndyP
NLG Member 101 to 500 Post
***

Total Karma Storms: 127
Offline Offline

Posts: 212



« Reply #46 on: March 10, 2011, 11:50:05 AM »

Ok, after getting a good night's sleep knockout , the only other thing I noticed is that it looks like you are using all of the files from the original program and not the first updated one. AndyP will have to answer this, but maybe this dll will not work right with those other files. I am going by the file sizes and time/dates that your screenshot shows vs the ones on mine.

Once that is sorted out and if nothing else, the dbmon program should now work. The output of dbmon is pretty fast, so after you verify it is outputting something, you may want to close it and then run it like this for about 10 seconds:
dbmon >c:\dbmon.log
That will direct the output to the dbmon.log file which you can then attach for AndyP to look at. Note: you won't see any output on the screen when run tihis way, it's all going to the log file.

Best way to work out version is by the build date and size. I am well overdue for sleep (midnight here) so will take a look in the morning.

Directing the dbmon output to file is the best way. All I need is the first couple off polls and maybe a request meters 10-15 then quit the app. The poll rate is pretty quick, so wont take long to make a huge file.
Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #47 on: March 10, 2011, 01:18:52 PM »

lol...Good day...
I've tried double clicking all kinds of ways to start the App.
I've even run it straight from the "run" commands and
still cannot get past the [01:] displayed.
After a fresh night's sleep, I'm ready to attack this again but
from a different computer....however with an S+ this time.
Last night it was my S2000.

I just sent an email to AndyP showing him screenshots of the working Sim from last nite.
There seems to be some problem with they way it's
downloading the TestApp during installation perhaps.
I'm going to try it again with this computer and run the DBMON and the other one.
I'm also going to re-arrange the file folders of the APP on this computer similar to yours.
Logged
poppo
Contributing Gold NLG Member
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 248
Offline Offline

Gender: Male
Posts: 3266



« Reply #48 on: March 10, 2011, 01:27:08 PM »

I'm also going to re-arrange the file folders of the APP on this computer similar to yours.


The main problem I see after your last screen-shot is the wrong versions of the support files. Not sure if that matters or not, but since the second version was not just a DLL change like this update, I would assume it does.

Sometimes having multiple copies of different versions will cause problems if the wrong files are being loaded. That is sort of why you were not getting the error message like you 'should' have after updating the dll.

I agree that you should try it on a S+. The meters button won't work for some SP chips (it calls for meters that don't exist on older SPs), but you should get door open/close messages.
« Last Edit: March 10, 2011, 02:06:46 PM by poppo » Logged
stayouttadabunker
Senior Full time Member.
Sr.Tech NLG Member 1000+ Post
*

Total Karma Storms: 1039
Offline Offline

Gender: Male
Posts: 13447



« Reply #49 on: March 10, 2011, 01:56:45 PM »

I agree totally with you.
I'm making up another harness like the first one
I made for the S+ Interface board  (J2 to the serial PC port)
as I still have a not-burned-out working S+ interface board one here...lol
Logged
Pages: 1 [2] 3 4 5 Go Up Print 
« previous next »
Jump to:  


If you find this site helpful, Please Consider Making a small donation to help defray the cost of hosting and bandwidth.



Newlifegames.com    Newlifegames.net    Newlifegames.org
   New Life Games    NewLifeGames  NLG  We Bring new Life to old Games    1-888-NLG-SLOTS
Are all Copyright and Trademarks of New Life Games LLC 1992 - 2021


FAIR USE NOTICE:

This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner.
We make such material available in an effort to advance awareness and understanding of the issues involved.
We believe this constitutes a fair use of any such copyrighted material as provided for in section 107 of the US Copyright Law.
In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those
who have expressed a prior interest in receiving the included information for research and educational purposes.

For more information please visit: http://www.law.cornell.edu/uscode/17/107.shtml.

If you wish to use copyrighted material from this site for purposes of your own that go beyond fair use,
you must obtain permission directly from the copyright owner.

NewLifeGames.net Web-Site is optimized for use with Fire-Fox and a minimum screen resolution of 1280x768 pixels.


Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Loon Designed by Mystica
Updated by Runic Warrior
Page created in 0.122 seconds with 18 queries.