Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mav northwind

@mav northwind
About
Posts
1.4k
Topics
75
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Very strange exception when accessing the configuration system with .NET 4.6.1
    M mav northwind

    Thanks for the reply, Richard! I also had taken a look at the code in System.Xml.dll from 4.5.2 and from 4.6.1 using ILSpy, but couldn't find any significant difference. Both versions had the "XmlCharType.bin" resource embedded inside the assembly. When our addon is being loaded, it's creating a separate AppDomain to avoid any side effects the host application might have, so I have no idea what they could actually do to make our addon fail so miserably. I even looked at the assemblies loaded into our AppDomain when initializing the configuration system fails and System.Xml.dll is already loaded at the very beginning, so I really cannot see what could keep the assembly from finding its own embedded resource... To my understanding, even fiddling with CAS cannot influence access to an assembly when it's already loaded, can it?

    Regards, mav -- Black holes are the places where God divided by 0...

    C# workspace csharp data-structures sales xml

  • Very strange exception when accessing the configuration system with .NET 4.6.1
    M mav northwind

    Hi community! I got a situation that's driving me insane: In order to work together with a third-party suite of applications, we have created a kind of addon. This addon is being loaded without any problems into several third-party applications as well as into a MS Word addon the other party wrote. Our addon creates its own AppDomain, so that there should be no interference with the host application. All of this works nicely when using .NET 4.0 up to .NET 4.5.2. Recently, a customer tried running the same setup with .NET 4.6.1 and all of a sudden, the addon crashes when it's being loaded into the Winword-Addon. The crash happens as soon as our addon tries to access ConfigurationManager.AppSettings. The call stack shows that there's a NullReferenceException at System.Xml.XmlCharType.get_Instance() that's happening while the configuration system is being initialized. It only happens there and only with .NET 4.6.1. I'm out of ideas, can anyone help?

    Regards, mav -- Black holes are the places where God divided by 0...

    C# workspace csharp data-structures sales xml

  • That's what you get when you don't perform code reviews
    M mav northwind

    It's the only constructor and none of the parameters are optional... Oh, and did I mention that the whole class has exactly 0 comments?

    Regards, mav -- Black holes are the places where God divided by 0...

    The Weird and The Wonderful css tutorial

  • That's what you get when you don't perform code reviews
    M mav northwind

    A former employee of ours left some really wonderful smells in our code, for example a class with no less than 8 constructor parameters. And right now I stumbled across a method named TryGetUsergroupByNameOrTostringDss(). Thanks BH, you know who you are... I guess it's my fault as well - now I can see how important code reviews for every code would have been. But it's too late to mourn now and I have to clean out the manure on my own :(

    Regards, mav -- Black holes are the places where God divided by 0...

    The Weird and The Wonderful css tutorial

  • That really makes a difference
    M mav northwind

    Just found this gem in the .NET BCL documentation on Process.WaitForExit(Int32): In the .NET Framework version 3.5 and earlier versions, if milliseconds was -1, the WaitForExit(Int32) overload waited for MaxValue milliseconds (approximately 24 days), not indefinitely.

    Regards, mav -- Black holes are the places where God divided by 0...

    The Weird and The Wonderful csharp ruby dotnet announcement

  • Is the glass half empty or half full?
    M mav northwind

    The glass is twice the size needed. I've used such constructs in the past, but meanwhile mostly avoid catching all exceptions and just returning true/false because in order to fix the problem you usually need to know what the exception was. Otherwise you can only say "something went wrong", without any further information about the where and why.

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge help question

  • So what is bad about beer?
    M mav northwind

    Beer contains female hormone: Drink a few and you cannot drive anymore ;P Another 5$ into the chauvinist jar...

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge question csharp com

  • Agile v Waterfall
    M mav northwind

    Hi! This cartoon originates from Geek And Poke[^]

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge com business question

  • Mail to Santa
    M mav northwind

    I think you should give credit where it's due: Geek and poke[^]

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge html com

  • Windows Security Forced down developers troaths.
    M mav northwind

    Hi! As others have mentioned, there are many resources on the net discussing the security model in detail and telling you what to do if you don't need/want the default settings. If you haven't been able to read and understand these options in almost 5 years now then you're really way behind.

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge business question sysadmin windows-admin linux

  • To all those who build sites thinking your country is the only one in the World
    M mav northwind

    Yep. Add Apple to the list. I wanted to change my credit card valid-thru date on my iTunes account because I had gotten a new credit card. So I punched in the new date and clicked "Save" only to be told that "some data was invalid" (they didn't even tell me what data was wrong!) After evaluating everything I saw on-screen several times, I tried modifying each of the fields. Turned out that I could only delete characters from my phone number but not add them again! Yes, for Apple phone numbers have 8 characters at most, because in USA that's the maximum length. Strange enough, I was able to enter the 9 character phone number initially and the complete number was being displayed on the page, the f*ing system just wouldn't let me save this data again :mad:

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge c++ architecture

  • An Alogorithm's running time.
    M mav northwind

    Hi! Even though the Lounge may not be the perfect place for this question, it's pretty easy to answer. With O(log n) your running time grows with the logarithm of input values. I.e. when the algorithm takes 1s for 10 inputs, it'll take 2s for 100 inputs, 3s for 1000 inputs and so on.

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge question

  • Installing Windows 8 .iso from DVD
    M mav northwind

    Hi! Do you really want to install Win8 Preview on a real machine? Using a virtual machine for this will give you a lot less headache. Yesterday I installed the preview with (a not up to date version of) VirtualBox and it worked (after switching from an emulated SATA disk to IDE). Most virtualization solutions let you mount an iso image as DVD, so no need to actually burn a DVD. The big advantage: You host system is untouched and you can delete the VM once you're done.

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge html com question

  • Street riots spreading from UK to Switzerland
    M mav northwind

    London street riots have crossed the channel and are leaving Bern in ruins: Street riot in Bern, Switzerland[^] I really wonder what these people are thinking?!

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge com question

  • BJOTD [modified]
    M mav northwind

    Great! But what happened to 19 and 22?

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge question

  • UdpClient.Send() hangs
    M mav northwind

    Hi guys! In one of my applications I use UDP multicast to broadcast event notifications to an arbitrary number of clients. This works nicely, except for one system where the application is running on Windows Server 2008R2. On this machine, the call to Send() for a newly created UdpClient hangs. I'm trying to send around 2K of data, well below the maximum size of 16K for UDP packages. The process of sending is quite straightforward (at least from my point of view): - Create a UdpClient - Join the corresponding multicast group - Serialize the event data - Send this data (in row to several destination ports, if this makes any difference) - Leave the multicast group I couldn't find anything about Send() hanging so far, but perhaps someone here has an explanation?

    Regards, mav -- Black holes are the places where God divided by 0...

    C# sysadmin windows-admin question

  • Bye-bye polygons - the next step in CG
    M mav northwind

    Take a look at this impressive video: Unlimited detail realtime rendering[^] It definitely blew off my socks...

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge com question

  • Old news but worth noting Graphics.FromHwnd and Spy++
    M mav northwind

    What does this have to do in the lounge?

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge graphics help announcement

  • might be a old one but still funny
    M mav northwind

    Nice, but reality has caught up: Durex Performa[^]

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge learning

  • Looking For A Product
    M mav northwind

    Hi! I think Nuance PaperPort can do this.

    Regards, mav -- Black holes are the places where God divided by 0...

    The Lounge json tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups