Click here to Skip to main content
15,905,325 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Microsoft Enterprise Library Pin
Chris Richner18-Aug-06 7:25
Chris Richner18-Aug-06 7:25 
Questionwindows hook to find word menu create [modified] Pin
priyank_ldce9-Aug-06 10:03
priyank_ldce9-Aug-06 10:03 
QuestionVS pro 2003 and .NET 2.0 Pin
matthias s.9-Aug-06 3:01
matthias s.9-Aug-06 3:01 
AnswerRe: VS pro 2003 and .NET 2.0 Pin
Dan Neely9-Aug-06 3:15
Dan Neely9-Aug-06 3:15 
GeneralRe: VS pro 2003 and .NET 2.0 Pin
matthias s.9-Aug-06 3:34
matthias s.9-Aug-06 3:34 
AnswerRe: VS pro 2003 and .NET 2.0 Pin
Christian Graus9-Aug-06 12:36
protectorChristian Graus9-Aug-06 12:36 
QuestionHow to read files stored in the devicePath returned by SetupDiGetDeviceInterfaceDetail(hDevInfo, &devInterfaceData, devInterfaceDetailData, dSize, &requiredSize,&devInfoData); Pin
mmhu8-Aug-06 10:24
mmhu8-Aug-06 10:24 
QuestionRelease build optimizations Pin
Robert Rohde8-Aug-06 3:18
Robert Rohde8-Aug-06 3:18 
Hi,

I'm facing a weird issue on one of my applications on a customers machine. I cannot reproduce it on my machine but I'm trying to understand what might have happened according to the log.
Basically the following code is executed:
public override bool Modify(LabelProperties properties, object[] values)
{
   try 
   {
      if(values[0] == null)
         return false;

      int sourceIndex = Convert.ToInt32(((Key)values[0]).Value);

      //some other code but no further conversions			
   } 
   catch (Exception exc)
   {
      _log.Error("Modify - " + exc.Message, exc);
      try
      {
         _log.Info("Key Value: " + ((Key)values[0]).Value);
      } 
      catch {}
      return false;
   }
   return false;
}

The following information gets logged:
10:58:07 | Error | HiddenCategoryFeaturesLabelModifier::Modify - Die Eingabezeichenfolge hat das falsche Format.
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at DE.IVU.FilialInfo.Map.ThematicMaps.Modifiers.HiddenCategoryFeaturesLabelModifier.Modify(LabelProperties properties, Object[] values)


Two things seem weird to me:
1. Although I'm using Convert.ToInt32 only System.Number.ParseInt32 is logged with the call stack.
2. The log call in the exception handler isn't done, which is weird because the first exception occurs in the number conversion routine. Thus I assume the cast and the property getter Value are working fine. But why aren't they within the handler?

Basically my question is if this behavior can be explained with the optimizations happening in the optimized release build. Does optimization really replace higher level calls with lower level calls?

(Just as a note: _log is a log4net.ILog instance and I assume it is working correctly. At least I didn't have any issues with it till now).
AnswerRe: Release build optimizations Pin
Tim Paaschen8-Aug-06 20:50
Tim Paaschen8-Aug-06 20:50 
GeneralRe: Release build optimizations Pin
Robert Rohde8-Aug-06 21:14
Robert Rohde8-Aug-06 21:14 
AnswerRe: Release build optimizations Pin
Guffa8-Aug-06 23:07
Guffa8-Aug-06 23:07 
QuestionHow VS2005 runs without IIS Pin
Exelioindia8-Aug-06 0:04
Exelioindia8-Aug-06 0:04 
AnswerRe: How VS2005 runs without IIS Pin
Mike Dimmick8-Aug-06 3:04
Mike Dimmick8-Aug-06 3:04 
Question.NET Remoting Pin
di327-Aug-06 21:02
di327-Aug-06 21:02 
QuestionHow can i post only two special characters in textbox by using VB.net, Can u help plsssssss Pin
prasanna.mca7-Aug-06 20:53
prasanna.mca7-Aug-06 20:53 
AnswerRe: How can i post only two special characters in textbox by using VB.net, Can u help plsssssss Pin
Guffa8-Aug-06 7:37
Guffa8-Aug-06 7:37 
QuestionFAQ Pin
prasanna.mca7-Aug-06 20:38
prasanna.mca7-Aug-06 20:38 
AnswerRe: FAQ Pin
Leah_Garrett9-Aug-06 3:48
Leah_Garrett9-Aug-06 3:48 
Questionauto ftp client Pin
Captain Willard7-Aug-06 3:24
Captain Willard7-Aug-06 3:24 
AnswerRe: auto ftp client Pin
mr_lasseter7-Aug-06 15:41
mr_lasseter7-Aug-06 15:41 
GeneralRe: auto ftp client Pin
Captain Willard7-Aug-06 23:49
Captain Willard7-Aug-06 23:49 
Questionremoting a Win Form (.net remoting C#) Pin
di327-Aug-06 3:12
di327-Aug-06 3:12 
QuestionInstaller Pin
JacquesDP6-Aug-06 23:52
JacquesDP6-Aug-06 23:52 
AnswerRe: Installer [modified] Pin
Not Active7-Aug-06 14:20
mentorNot Active7-Aug-06 14:20 
QuestionCommerec server 2007application Pin
prgramya6-Aug-06 22:09
prgramya6-Aug-06 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.