I've been working on the new Managed Switch Port Mapping Tool v2 quite a bit lately and ran into a strange problem: one function in the program (saving to an XML file) was causing it to hang up in Release mode, but never in Debug mode. The program imported three static libraries, one is the BCGSoft 18 library (cool stuff), another is the CodeProject Ultimate Grid (I'm the KVT in the source code notes) and the last is the CodeProject Ultimate Toolbox. Of the three, the BCGSoft libary is the most recent addition. This problem never happened in 1.99.9.8 and it doesn't use the BCGSoft library.
The first thing I did was convert the Release version code for all of them so that it included Debug info. That was a bit tedious, but went OK. Then I was able to press the Save button and step through to see where it was hanging up. That didn't go so well. It would hang up in different places. It seemed to be a stack or memory issue. I tried increasing stack and heap in the main executable, but it didn't help.
Finally after 5 hours, I decided to look and see just how much of the Ultimate Toolbox library I was actually using. It turns out I was only using the OXParser and OXRegistryItem. By moving them and their supporting files (roughly 6 other cpp and h) into the main executable, I was able to remove the linkage to the UTlibStaticR. I suspect that the BCGSoft library has some functions with the same name as Ultimate Toolbox, but I wasn't going to look through pages and pages of import listings to see wheich ones. Eliminating the library was simpler. And, yes, I put back the normal release settings to remove debugging from the release version and it works fine now.
A look at all things to do with NetScanTools® Products. Inside you will find tips and comments about using our programs and even off topic comments.
Wednesday, September 26, 2012
Release != Debug: strange C++ problem
Thursday, September 20, 2012
Managed Switch Port Mapping Tool v1.99.9.8 Released
Yes, one more release of Managed Switch Port Mapping Tool v1.99.9.X. Since v2.0 is in beta I didn't really want to put out another release, but this was necessary. In fact, it was a beta tester who pointed out this problem and existed in both versions. It's actually not a bug, but more of a misinterpretation of the local network.
By default we activate the Ping Sweep function and prepopulate the Ping Sweep target table based on the computer's IPv4 address and subnet mask. That's all well and good if it's a 255.255.255.0 mask, but if it's a 255.255.0.0 mask as would happen in a 10.x.x.x private network, it creates a massive range of IPs that take forever to ping. The program doesn't hang, but it just takes a long time to deal with the range of IPs.
Now in v1.99.9.8 when you start a switch mapping, if it sees a large IP target range, you are given the opportunity to skip doing the ping sweep and continue on. You can always disable Ping Sweep or go in and change the target IP range.
Enjoy the new version:
http://www.SwitchPortMapper.com/
Kirk
By default we activate the Ping Sweep function and prepopulate the Ping Sweep target table based on the computer's IPv4 address and subnet mask. That's all well and good if it's a 255.255.255.0 mask, but if it's a 255.255.0.0 mask as would happen in a 10.x.x.x private network, it creates a massive range of IPs that take forever to ping. The program doesn't hang, but it just takes a long time to deal with the range of IPs.
Now in v1.99.9.8 when you start a switch mapping, if it sees a large IP target range, you are given the opportunity to skip doing the ping sweep and continue on. You can always disable Ping Sweep or go in and change the target IP range.
Enjoy the new version:
http://www.SwitchPortMapper.com/
Kirk
Friday, September 7, 2012
ipPulse 1.83 Released
ipPulse was updated yesterday with a new minor version release 1.83.
This version adds results column sorting by clicking on the headers when the scanner is not in Run mode. It also adds the ability to drag and drop results headers so that you can reorder them - however, when you exit the program they go back to their original order. Another visible change is to the column 'autosizing'. There are now two right click options, one to autosize the visible columns and another to autosize and make visible all columns. Note that you can control which columns are visible in Settings.
Please visit http://www.nwpsw.com/ippulsemain.html
Kirk
This version adds results column sorting by clicking on the headers when the scanner is not in Run mode. It also adds the ability to drag and drop results headers so that you can reorder them - however, when you exit the program they go back to their original order. Another visible change is to the column 'autosizing'. There are now two right click options, one to autosize the visible columns and another to autosize and make visible all columns. Note that you can control which columns are visible in Settings.
Please visit http://www.nwpsw.com/ippulsemain.html
Kirk
Friday, August 17, 2012
Windows 8 RTM first impressions
Let's just say that trying to use the new interface (AKA the interface formerly known as Metro) on a desktop machine will only cause legacy desktop and laptop users to flee in droves to a Mac. At least Mountain Lion doesn't pretend to be a mobile OS on a fixed machine. At least on the Mac there is no huge learning curve coming from XP or 7. I've used Windows since 3.0 back in the early 90's and this is the most radical design departure I've ever seen. Will MS break the every other major version is a dud pattern with this?
My Installation Experience
I started by installing Windows 8 x86 Enterprise RTM (32 bit) in a Oracle VirtualBox VM. Simple enough in theory - well there were two install choices and neither of the clearly said install a new OS, but I finally figured out you select the lower one, not the upper one.
Got through to the point of selecting a login. I decided to go with the email address login instead of a local login. When I install the x64 version, it's going to have a local login. I presume you can add a local login somehow if you can find where they buried it. Suppose you have no local login and your internet is down - can you login? something I'm going to have to try.
After I finally got to the first screen, I saw it all looked very similar to the Windows 8 consumer preview, so I at least knew what to do. It requires a mouse click and move to drag the Space Needle and Mt Rainier picture up. Now here's my first complaint: I design my programs to be Section 508 compliant. How is click and drag compliant? a disabled person with a desktop or laptop PC who can't use a mouse is hosed. I've actually talked with people who can't use a mouse and use the tab key. For me it's not intuitive how they get past that first screen. So I tried the 'any' key and it worked to get to the login screen. Then I could login.
Problems with entering a Product Key in Windows 8 Enterprise
So right away I switched to the desktop, then moved my cursor to the lower right, selected Settings, then Control Panel (there must be a way to do this with using the mouse). I saw the usual things in Control Panel so I selected System and went to change the Product Key to match the one I was given in MSDN (I had thought it strange that I wasn't asked for one during install, but remember this is a Enterprise). I couldn't find the usual change product key selection, so I tried activating it. Oops. Got an 0x8007007B error code.
A quick search found a site called windows7hacker.com that had the answer. And I learned a couple new things there too. First was that you have to get to the Command Prompt. Sounds simple enough. Every NT kernel OS since NT 3.1 had an easy way, usually found in accessories. Guess what? no start button, no accessories, no command prompt...grrr...I take no credit for the following section, windows7hacker came up with this but it's in my own words.
How to get to an Administrative Privileges Command Prompt
1. If on the desktop, move your cursor to the lower right, a control bar for lack of a better description will pop out from the right, select Start. Back you go to the Start screen with all the humongous icons.
2. Here's the wierd part: just start typing command or cmd and the search menu automatically appears on the right with Apps listed on the left. At the top was command prompt.
3. Here is the tricky part RIGHT CLICK on the Command Prompt and a new control bar slides up from the bottom with five options, one of which is Run as administrator (I never would have guessed) - click on it, answer the UAC message with Yes and you're there. Something recognizable!
How to enter your Product Key from a Command Prompt
1. Do the steps above.
2. put in this command and press Enter: slmgr.vbs -ipk YOUR-ENTRPRISE-KEY-HERE
3. You will get an acknowledgement popup window.
How to Activate from a Command Prompt
1. from the same admin command prompt, enter: slmgr.vbs -ato
Restart Windows 8 and that part is done - you can use it now - well at least sort of use it depending on your experience with this interface.
So that's where things stand today. I'll be testing NetScanTools Pro and Wireshark on it soon. Remember you have to start those installers using Run as administrator or the WinPcap driver won't install.
Kirk
My Installation Experience
I started by installing Windows 8 x86 Enterprise RTM (32 bit) in a Oracle VirtualBox VM. Simple enough in theory - well there were two install choices and neither of the clearly said install a new OS, but I finally figured out you select the lower one, not the upper one.
Got through to the point of selecting a login. I decided to go with the email address login instead of a local login. When I install the x64 version, it's going to have a local login. I presume you can add a local login somehow if you can find where they buried it. Suppose you have no local login and your internet is down - can you login? something I'm going to have to try.
After I finally got to the first screen, I saw it all looked very similar to the Windows 8 consumer preview, so I at least knew what to do. It requires a mouse click and move to drag the Space Needle and Mt Rainier picture up. Now here's my first complaint: I design my programs to be Section 508 compliant. How is click and drag compliant? a disabled person with a desktop or laptop PC who can't use a mouse is hosed. I've actually talked with people who can't use a mouse and use the tab key. For me it's not intuitive how they get past that first screen. So I tried the 'any' key and it worked to get to the login screen. Then I could login.
Problems with entering a Product Key in Windows 8 Enterprise
So right away I switched to the desktop, then moved my cursor to the lower right, selected Settings, then Control Panel (there must be a way to do this with using the mouse). I saw the usual things in Control Panel so I selected System and went to change the Product Key to match the one I was given in MSDN (I had thought it strange that I wasn't asked for one during install, but remember this is a Enterprise). I couldn't find the usual change product key selection, so I tried activating it. Oops. Got an 0x8007007B error code.
A quick search found a site called windows7hacker.com that had the answer. And I learned a couple new things there too. First was that you have to get to the Command Prompt. Sounds simple enough. Every NT kernel OS since NT 3.1 had an easy way, usually found in accessories. Guess what? no start button, no accessories, no command prompt...grrr...I take no credit for the following section, windows7hacker came up with this but it's in my own words.
How to get to an Administrative Privileges Command Prompt
1. If on the desktop, move your cursor to the lower right, a control bar for lack of a better description will pop out from the right, select Start. Back you go to the Start screen with all the humongous icons.
2. Here's the wierd part: just start typing command or cmd and the search menu automatically appears on the right with Apps listed on the left. At the top was command prompt.
3. Here is the tricky part RIGHT CLICK on the Command Prompt and a new control bar slides up from the bottom with five options, one of which is Run as administrator (I never would have guessed) - click on it, answer the UAC message with Yes and you're there. Something recognizable!
How to enter your Product Key from a Command Prompt
1. Do the steps above.
2. put in this command and press Enter: slmgr.vbs -ipk YOUR-ENTRPRISE-KEY-HERE
3. You will get an acknowledgement popup window.
How to Activate from a Command Prompt
1. from the same admin command prompt, enter: slmgr.vbs -ato
Restart Windows 8 and that part is done - you can use it now - well at least sort of use it depending on your experience with this interface.
So that's where things stand today. I'll be testing NetScanTools Pro and Wireshark on it soon. Remember you have to start those installers using Run as administrator or the WinPcap driver won't install.
Kirk
Friday, July 27, 2012
Memory Failure
No, not my own personal memory, although that's up for debate - a bank of memory failed in the old Dell Precision 670 that we kind of depend on daily to do mundane things like accounting. It happened shortly after morning startup, so nothing of importance was going on.
Here's what happened. I was starting all the programs and looking at email, then suddenly BSOD with a message I had never seen before:
Hardware Malfunction
Call your hardware vendor for support
This system has halted
Always a nice way to start your day. So I rebooted and got 1-3-2 beeps and the 4 lights on the front were G-Y-G-Y (or maybe Y-G-Y-G). Anyway, looking online I found that the problem was memory not recognized. Uh oh. At least it wasn't a CPU or power supply in that old computer or I'd be out buying new computer right now.
I pulled the computer and took it outside for a major dusting. I used canned air and blew out lots of dust. Sequim is a dusty place. Then I removed the memory and put them all back. The motherboard has 6 slots with 4 populated by 512M DDR2s (laugh if you must). Problem was still there.
I pulled the two in the middle two slots then powered up again with the same problem. Then I put the two I pulled in the top two slots. Powered up fine except now Windows 7 only has 1 Gig. It seems that the original two memory sticks went bad. Which one I don't know and I don't care. Ordered 4 new 1G from Newegg to be delivered on Monday (I hope). Now the old 670 will have 4 or 5 G depending on compatibility with the old memory and I should get another year or so out of it. Time to think about replacing that computer.
-Kirk
Here's what happened. I was starting all the programs and looking at email, then suddenly BSOD with a message I had never seen before:
Hardware Malfunction
Call your hardware vendor for support
This system has halted
Always a nice way to start your day. So I rebooted and got 1-3-2 beeps and the 4 lights on the front were G-Y-G-Y (or maybe Y-G-Y-G). Anyway, looking online I found that the problem was memory not recognized. Uh oh. At least it wasn't a CPU or power supply in that old computer or I'd be out buying new computer right now.
I pulled the computer and took it outside for a major dusting. I used canned air and blew out lots of dust. Sequim is a dusty place. Then I removed the memory and put them all back. The motherboard has 6 slots with 4 populated by 512M DDR2s (laugh if you must). Problem was still there.
I pulled the two in the middle two slots then powered up again with the same problem. Then I put the two I pulled in the top two slots. Powered up fine except now Windows 7 only has 1 Gig. It seems that the original two memory sticks went bad. Which one I don't know and I don't care. Ordered 4 new 1G from Newegg to be delivered on Monday (I hope). Now the old 670 will have 4 or 5 G depending on compatibility with the old memory and I should get another year or so out of it. Time to think about replacing that computer.
-Kirk
Tuesday, July 17, 2012
NetScanTools Pro v11.32 Released
This release is minor in that no new tools were added. We did add better error message reporting for both Ping and Traceroute in IPv6 mode plus some changes to reporting. In manual tools reports you can export the report data to a text file. The only problem was that there was no header telling you what the data was all about. That changed - it's there now. Another reporting change is in the web browser reports. For Port Scanning reports there is a new question asked of you that gives the option of showing or not showing non-responding port data. The SQLite dll was updated as were the databases.
If you have NetScanTools Pro installed or USB and an active maintenance plan, please click on Help/Check for New Version.
If you have NetScanTools Pro installed or USB and an active maintenance plan, please click on Help/Check for New Version.
Monday, July 9, 2012
NetScanTools Sponsors NMAP
NetScanTools.com is sponsoring NMAP for the month of July. NMAP is by far the best port scanning tool available.
Visit http://nmap.org/ to see our sponsorship.
Kirk
Visit http://nmap.org/ to see our sponsorship.
Kirk
Subscribe to:
Posts (Atom)