|
Hi ,
I created a web application which have all features like caching and other stuffs.While running the project i am seeing nearly 40-50 exceptions in PREFMON tool in .Net CLR Exceptions Thrown Counter, i want to know how to read the exceptions which are thrown by my Applciation, The Perfmon tool is giving only the COunt of .Net CLR Exceptions thrown. i even dont know whther there are handled/Unhandled Exceptions..
My Application didnt get disturbed because of this Exceptions,so please help how to trace the Exceptions which are Shown as .Net Clr Exception in Perfmon Tool.
Best Regards
Arun Kumar
|
|
|
|
|
You'd know about them if your code wasn't written to eat them.
An example of this would be putting code in a Try/Catch block, and not doing anything with the exception in the Catch code. Reporting or logging it somehow would be nice, maybe even rethrowing it would help too.
|
|
|
|
|
My mobile device support only .net framework 1.0 and the application, how do i incorporate these into the VS enviroment? Advise.
Thanks
Samuel
|
|
|
|
|
Visual Studio 2005 does not support the 1.0 version of the Framework. The only version of Visual Studio that supports this is Visual Studio 2003 2002.
-- modified at 9:29 Wednesday 26th September, 2007
|
|
|
|
|
Actually it's visual studio 2002 that supports 1.0, 2003 supports 1.1
|
|
|
|
|
Yep, you're right. I've corrected my post as well. Thanks.
|
|
|
|
|
NP
Thankfully Visual Studio 2008 will include support 2.0, 3.0 and 3.5 so there will be less messing around and switching between IDE's.
|
|
|
|
|
originSH wrote: Thankfully Visual Studio 2008 will include support 2.0, 3.0 and 3.5 so there will be less messing around and switching between IDE's.
Yes, it's a great feature and will continue to improve with later versions of the framework.
|
|
|
|
|
I have an experimental speech recognition engine program I've been working on in vb.net. Anyways I wanted to use some code that uses directx to be able to talk directly to the program instead of having to save audio files in another program then open them in my program. Unfortunely the example programs are only in c++ and c#. So my question is what means are available that would allow me to use the c# code in my vb.net program? Also is there any way I could trigger an event in the c# code that would then make my vb.net code do something?
thanks for your help.
Mike
|
|
|
|
|
If you would prefer your source code to be in VB.NET and don't know how to convert it yourself, there are converters[^] that will do it for you.
If you don't want to convert the code, you could place your C# code in a separate project and compile it into a class library. You can then reference this library from a VB.NET project.
Paul
|
|
|
|
|
Thank you for your help Paul.
|
|
|
|
|
Hi everyone,
Hopefully anyone will take the trouble to give me an idea, i'm posting the problem i've been working around these two days.
I'm deploing a pocket pc application, using C# .NET Visual Stdudio 2003.
I send the data I want print to server using socket communicaton. After the data are printed i receive a message from the server by means of socket programming.
This is the method that catches the message from the server
public void OnDataReceived(IAsyncResult asyn)
{
//end receive...
string mesazhi = "";
int iRx = 0 ;
try
{
if(asyn != null)
iRx =s.EndReceive(asyn);
char[] chars = new char[iRx + 1];
System.Text.Decoder d = System.Text.Encoding.UTF8.GetDecoder();
int charLen = d.GetChars(m_DataBuffer, 0, iRx, chars, 0);
if(charLen != 0)
{
System.String szData = new System.String(chars);
if (szData == "Printed")
{ this.dataGrid.DataSource = this.dataTable;
this.dataGrid.TableStyles[0].MappingName= this.dataTable.TableName;
this.AddGridColumnStyles(false,"EMERTIMI","SASIA");
}
}
As you can see in the method, after i receive the message from the server i want to display some data in a datagrid, so i give to it a datatable as a datasource. At this point my application doesn't respond and i have to restart my pocket pc.
Please, someone help me!
|
|
|
|
|
Have you resolved this?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
yes, it's been a while since I solved this issue
(even I didn't get an answer from the forum here, msdn forum helped me)
Erisa
|
|
|
|
|
Hi all,
I connect to a mailserver through tcpClient ang get a netstream which has the details of the mails in a particular inbox. I was using ASCII encoding to read the netstream. But recently some mails containing german letter broke my code, since ASCII
doesn't include Umlaut characters.
The whole mail is not in german, so i cannot write Encoding.GetEncoding("iso-8859-1").GetString(
bytes).
so what i thought of doing is to convert the whole stream to ascii first.
Then find any occurance of fields starting with =? and ending with ?= to identify that field probably contains unicode and parse them as unicode.
but my problem is i am not able to transcode it back to unicode.
any pointers?? i am really stuck with this. pls help
thanks
|
|
|
|
|
I'm currently developing an application which communicates with a server through a webservice in order to upload files to the server, the problem is simple all files are uploading fine except those office 2007 files, I guess is the XML the problem, I was reading some articles and all they do is make a serialization prior to transmit the file and then on the server the inverse process, so I did it but still there are problems the file is transmited fine even the sizes are the same but when you trying to open the received file there is an error where Office need to recover the file, and it recover successfully but that's not good. Pleas eany idea will be great I'm don't know what else should I do. Thanks
|
|
|
|
|
Have you resolved this?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Yes the problem was solved, all the issue was caused by the method used to split the file into bytes, for some reason the way I was using work for all files except those office 2007 files, I changed the method and everything is working fine now
|
|
|
|
|
Cool deal.
Have a Happy New Year
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hello ,
I am creating a optional setup dll for my installation. I am not able to use this set up file with my Win CE CAB file. the setup.dll exporting following function :-
Install_Init
Install_Exit
Uninstall_Init
Uninstall_Exit.
can any body help me how to use this dll in my CAB file.
thanks,
Yudhisthira Attry
|
|
|
|
|
hi there
we are handling some CIL and need to parse the call instruction. we are following the specification ( http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-335.pdf p.375)
in our case we need to know how to convert a methodref (0x0A) metadata token into a Reflection.MethodInfo type... would be nice...
we were just hoping that system.reflection would contain method to do this...
|
|
|
|
|
try
(returns MethodBase) someModule.ResolveMethod( descriptor );
|
|
|
|
|
|
Steady on you two. Get a room;P
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O'Hanlon wrote: Steady on you two. Get a room
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|