Recommended Posts

Hey Dark,

I got this error when I returned home from lunch today.

I have had the program running for at least 48 hours straight, but did not get this message until today.

It may have been because I left it in Radar mode.

Check out the attachment...

post-89511-1105467069_thumb.jpg

585274022[/snapback]

Yep, that's the divide by zero I mentioned earlier. You can see it is in "winmm.dll", that is what I use to play the sounds. But sounds have been around for a while without this problem. Argh!

Also, I have the CGI script working so that the error reports dont get cut off in the email, but rather they are sent to the webserver, but starting the email stopped working. The plan was to also have the user send what they were doing, and then there is a link to the error report. This also enabled me to reply to users that had crashes and let them know what's up. But I couldn't get it to work anymore.

I could call the exception handler manually in the program and sending the email would work, but if the exception handler was called to handle an exception I would get weird-ass error messages (all I was doing is basically running "mailto:...") such as file not found and one very odd one about finding an active process context. I did lots and lots of looking around but couldn't find help, but I did notice that if the program is not set to use the Single-Threaded Apartment model (STAThread) some things like drag and drop and process starting won't work. I really don't know anything about apartments but I know the Multithreaded one causes some issues. I looked at the debugger and saw that the exception handler, when called to handle an exception, wasn't running on the main program thread (which was STA) , but rather a new one. Sure enough, that thread was MTA. So now, to send the email, I have to manually start a new thread in the STA within the exception handler. Annoyingly, you can send parameters when starting threads so I have to make the text that I want to send a variable in the program. I spent many hours trying to figure out wtf was wrong there. :pinch:

Edited by darkmark327

I realize that this is in development still, but are you aware that WeathAlert.exe uses more than 20MB of memory? I opened up task manager today just to check something else and I was pretty surprised how much memory such a (seemingly) simple program like this uses....is this a glitch on my system or are there some leaks you are planning on patching up?

I realize that this is in development still, but are you aware that WeathAlert.exe uses more than 20MB of memory?? I opened up task manager today just to check something else and I was pretty surprised how much memory such a (seemingly) simple program like this uses....is this a glitch on my system or are there some leaks you are planning on patching up?

585277550[/snapback]

Please read this: http://www.dotnetmonster.com/Uwe/Forum.asp...ows-Service-Hog

Well here's an update:

Everything seems to work, except for the animated radar. I had changed the mechanism slightly to conform to "good practice", but now animated radar refuses to work. Static radar works fine, in fact they basically share the same mechanism and many of the same methods to function, but for some reason I get a null reference with the animated maps. I think it might be a bug in the framework. If I modify the static radar to, instead of returning one image, to return an array of 2 images, it fails (an array of one image works). If I modify the animated radar to return an array of one image, instead of more than one, it works. I won't bother going into detail but they use the same exact mechanism but if the array has > 1 element, I get a nullreference in one of the .net methods (debugging has assured me that nothing I've passed is null).

Alrighty, I fixed the above problem (I rearranged things a bit, and it showed me where the problem really was)...so, here's version 2.2.9.8 for testing.

If all goes well, this will become 2.3 (then I go back to adding more significant features).

Note: as I mentioned above, there may be new errors that occur because instead of blanketly catching everything, only expected errors are caught (otherwise problems may be masked) so if that occurs, please send the reports.

http://www.ic.sunysb.edu/stu/msowul/WeathAlert.zip

Enjoy.

Take a closer look at the settings.

Also: I received a very strange error report; researching it has pointed to McAfee / Nod32 screwing up .net framework sockets. Can anyone using McAfee confirm or deny any problems with the program?

post-11870-1105566880.png

Edited by darkmark327

Hey Dark,

I think I might have found another issue.

After awhile, if I right click on the temperature in the systray and highlight Location > ... nothing happens.

If I open up the program, I can switch the location normally.

Just thought I would let you know...

Also, I read through most of this thread, but is there a way yet to "force" current data? (i.e. not wait a 1/2 hour)?

Thanks!

Yes I have noticed that strange issue from time to time; it has defied my efforts to fix it (as you may have guessed, both menus are handled at the same time; why one works and the other does not is beyond me). I am trying another workaround; let me know whether it works or not.

As for your second question: you must navigate (in the registry) to HKCU\Software\Solsoft\WeathAlert\Program Options and create a new string value "EnableForcedUpdate" set to "true"...there will then be a menu entry under preferences; needless to say, don't screw up the registry and so forth (standard disclaimer :rolleyes:).

I have gone through each error report--every single one involved the radar in one form or another so I went through and rewrote/optimized each affected method. (A significant contributor to this is the fact that weather.com changed the radar lists at some point, which caused havoc as downloads were attempted on resources whose URLs had completely changed.)

Anyway, here is 2.2.9.9; weather.com's radar changes have merited it another bump, from .8 to .9.

2.3 will have to be released soon to the masses via autoupdate to fix weather.com's having broken the radar. Download and report any issues!

http://www.ic.sunysb.edu/stu/msowul/WeathAlert.zip

Edited by darkmark327

worked for me :) got mine to stop freezin alright! thanks :)

doh! crashed when i switched large radar to thunderstorm forecast

edit: either thunderstorm forcast, large or small radar

Crashed on:

100mile

Thunderstorm..

and now its not getting data again :(

worked for me :)? got mine to stop freezin alright!? thank:):)

doh! crashed when i switched large radar to thunderstorm forecast

edit: either thunderstorm forcast, large or small radar

Crashed on:

100mile

Thunderstorm..

and now its not getting data agai:(:(

585290129[/snapback]

What city? BTW they also seem to have broken NWS alerts by timing them out. That's why updating the data sometimes freezes.

Radar is now also broken because of their timeouts. For both the NWS alerts and the radar, they used <meta http-equiv...> redirects to redirect through about 3 URLs. Now they seem to block the last one if you access it directly; on the first one there are two 1x1 images that I assume they use to validate that you are actually coming from a browser (these features are not supported from the xml feed so I scrape their pages). For this reason, NWS alerts are timing out and so are the radar pages, thus the problem when downloading the data and the broken radar. I suppose they're cracking down on me :o

Edited by darkmark327

is it possible to get the zone of the image? like for example...my main radar for my area is here:

http://image.weather.com/looper/archive/us...rge_usen/6L.jpg

you could just have your program figure out the part past archive and i would assume the end would be the same for all (1L - 6L)

my small radar: http://image.weather.com/web/radar/us_dtw_...medium_usen.jpg

is it possible to get the zone of the image?? like for example...my main radar for my area is here:

http://image.weather.com/looper/archive/us...rge_usen/6L.jpg

you could just have your program figure out the part past archive and i would assume the end would be the same for all (1L - 6L)

my small radar: http://image.weather.com/web/radar/us_dtw_...medium_usen.jpg

585290705[/snapback]

That is precisely what I do. Now guess where the zone comes from.

Thankfully my hunch about those images has proven correct. If they change it again, I can't say whether I'll be able to handle it (who knows what they'll change), but for now everything works again. I have updated the download, so please redownload to regain functionality. My apologies for all the trouble.

(Now the part for those who simply read the end or things that stand out):WEATHER.COM CHANGED THEIR PAGES. PREVIOUS VERSIONS OF THE SOFTWARE NO LONGER WORK. PLEASE DOWNLOAD THE NEW ONE HERE. IT WILL BE RELEASED TO AUTOMATIC UPDATES ONCE IT HAS BEEN FURTHER TESTED>

http://www.ic.sunysb.edu/stu/msowul/WeathAlert.zip

Edited by darkmark327
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I disagree here sorry. The majority of their customers are corporations who are locked in to their eco system and have no choice. Private individuals don't contribute that much to their income.
    • Weekend PC Game Deals: Anno 117, Final Fantasy VII, Rematch, and more by Pulasthi Ariyasinghe Weekend PC Game Deals is where the hottest gaming deals from all over the internet are gathered into one place every week for your consumption. So kick back, relax, and hold on to your wallets. The Epic Games Store's mystery giveaways may have ended, but its regular freebies didn't miss a step this week. The double drop was for copies of Warhammer 40K Speed Freeks and The Ouroboros King. Speed Freeks lands for multiplayer racing fans, but with plenty of competitive shooting elements too. You will be piloting Ork buggies, tanks, and aircraft modeled after the popular tabletop miniatures while trying to complete objectives and pass finish lines. Next, Ouroboros King is a crossover between chess and tactical roguelikes, offering the chance to create your own army with special rules to beat incoming foes on the board. The double giveaway on the Epic Games Store will be available until June 11, and replacing it will be Citizen Sleeper and ROBOBEAT. The Humble Store brought a new charity bundle to check out this week too. Landing with the name The Complete Inkle Library, this is a large collection of interactive narrative puzzle games from the publisher Inkle. This begins with Heaven's Vault, four parts from the Sorcery series, 80 Days, Overboard, and Pendragon: Narrative Tactics within the starting tier for $9. Hopping up a step to the $12 tier gets you TR-49, Expelled, and A Highland Song for paying at least $12. If you go for the $20 tier, you get four e-books from the Heaven's Vault series. The bundle has almost three weeks on its counter before it goes away. Big Deals There is a larger than normal amount of weekend specials happening this time, including multiple publisher deals, franchise discounts, and indie gems to grab. With those and more, here's our hand-picked big deals list for the weekend: Anno 117: Pax Romana – $44.99 on Steam Clair Obscur: Expedition 33 – $39.99 on Steam Timberborn – $27.99 on Steam EARTH DEFENSE FORCE 6 – $26.39 on Steam Rust – $19.99 on Steam FINAL FANTASY VII REBIRTH – $19.99 on Steam Street Fighter 6 – $19.99 on Steam Returnal – $19.79 on Steam Shape of Dreams – $17.49 on Steam Far Cry 6 – $14.99 on Steam Assassin's Creed Valhalla – $14.99 on Steam Quarantine Zone: The Last Check – $14.99 on Steam REMATCH – $14.99 on Steam EA SPORTS FC 26 – $13.99 on Steam FINAL FANTASY VII REMAKE INTERGRADE – $13.99 on Steam Magicraft – $12.79 on Steam Cult of the Lamb – $12.49 on Steam Dying Light 2: Reloaded Edition – $11.99 on Steam Cuphead – $11.99 on Steam Assassin's Creed Odyssey – $11.99 on Steam Hunt: Showdown 1896 – $11.99 on Steam Sektori – $11.99 on Steam Just Shapes & Beats – $11.99 on Steam Gunfire Reborn – $10.99 on Steam 33 Immortals – $9.99 on Epic Store Baby Steps – $9.99 on Steam Sifu – $9.99 on Steam Hearts of Iron IV – $9.99 on Steam DREDGE – $9.99 on Steam DAVE THE DIVER – $9.99 on Steam Pacific Drive – $9.89 on Steam Mycopunk – $9.74 on Steam Sons Of The Forest – $8.99 on Steam Jotunnslayer: Hordes of Hel – $8.99 on Steam Nuclear Throne – $8.99 on Steam Mechabellum – $8.99 on Steam Deep Rock Galactic: Survivor – $8.44 on Steam TerraTech Legion – $7.99 on Steam Inscryption – $7.99 on Steam Assassin's Creed Unity – $7.49 on Steam Minishoot' Adventures – $7.49 on Steam The Stanley Parable – $7.49 on Steam Oxygen Not Included – $7.49 on Steam Megabonk – $6.99 on Steam Look Outside – $5.99 on Steam Vampire Hunters – $5.24 on Steam MOTHERGUNSHIP – $4.99 on Steam My Friend Pedro – $3.99 on Steam The Messenger – $3.99 on Steam Vampire Survivors – $3.74 on Steam Brotato – $2.99 on Steam Enter the Gungeon – $2.99 on Steam Loop Hero – $2.99 on Steam GRIS – $2.99 on Steam Exit the Gungeon – $2.49 on Steam Hitman: Absolution – $1.99 on Steam CARRION – $1.99 on Steam Don't Starve Together – $1.49 on Steam Golf With Your Friends – $1.49 on Steam Hotline Miami – $0.99 on Steam The Ouroboros King – $0 on Epic Store Warhammer 40K Speed Freeks – $0 on Epic Store DRM-free Specials Hopping over to the DRM-free deals, the GOG store has plenty of discounts running this weekend too. Here are some highlights: Fallout 4: Game of the Year Edition - $15.99 on GOG Fallout: New Vegas Ultimate Edition - $9.99 on GOG Disco Elysium - The Final Cut - $9.99 on GOG Crysis - $9.99 on GOG Tyranny - Standard Edition - $7.49 on GOG Frostpunk: Game of the Year Edition - $7.35 on GOG Banished - $6.79 on GOG Fallout 3: Game of the Year Edition - $6.59 on GOG The Forgotten City - $6.25 on GOG The Age of Decadence - $5.99 on GOG SimCity 3000 Unlimited - $4.99 on GOG Assassin's Creed: Director's Cut - $4.99 on GOG SimCity 4 Deluxe Edition - $3.99 on GOG Vampyr - $3.99 on GOG Torchlight II - $3.99 on GOG Deus Ex GOTY Edition - $3.49 on GOG Primordia - $3.09 on GOG Theme Hospital - $2.99 on GOG SimCity 2000 Special Edition - $2.99 on GOG Total Annihilation: Kingdoms + Iron Plague - $2.99 on GOG Deus Ex: Human Revolution - Director’s Cut - $2.99 on GOG Master of Orion 1+2 - $2.39 on GOG Prince of Persia: The Sands of Time - $1.99 on GOG Prince of Persia: Warrior Within - $1.99 on GOG EVERSPACE - $1.99 on GOG Total Annihilation: Commander Pack - $0.99 on GOG Keep in mind that availability and pricing for some deals could vary depending on the region. That's it for our pick of this weekend's PC game deals, and hopefully, some of you have enough self-restraint not to keep adding to your ever-growing backlogs. As always, there are an enormous number of other deals ready and waiting all over the interwebs, as well as on services you may already subscribe to if you comb through them, so keep your eyes open for those, and have a great weekend.
    • When will the Photos app be updated to remember the window size and position when reopened? They addressed this issue in a 2024 version of the app (though I can't recall the build number). Unfortunately, after that specific version, the problem persists! Please prioritise this fix in your K2 schedule. Additionally, the Snipping Tool has lost the ability to capture the Windows Taskbar starting from the 2024 version!
    • Same, never saw it on Android or iOS. Guess only some people got it *shrugs*
  • Recent Achievements

    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
    • Rookie
      Rimplesnort went up a rank
      Rookie
    • One Year In
      Markus94287 earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      486
    2. 2
      +Edouard
      173
    3. 3
      PsYcHoKiLLa
      139
    4. 4
      ATLien_0
      94
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!