|
Thanks Senthil, great help.
Regards
Sam
|
|
|
|
|
Hi all,
I am working on Microsoft Installer project to create a setup for a software. The project is already existing and working. However now I have changed the folder hierarchy i.e. I have now changed the folders from where the files to be packaged are extracted. In the project, in Properties page there is an entry SourcePath which displays the path where the file is present. This entry is still showing the old path of the files. I can't change it's contents as it is read-only. So is there any other way to change the path? If so please inform me.
Thanking You.
Regards,
Harshad
|
|
|
|
|
No. The VS.NET Setup creation IDE is very limited and poorly designed. The only way to change the source files is to delete the existing ones from the setup project and add the new ones.
Robert
|
|
|
|
|
Dear all,
My .Net WinForms Application quietly closes off without a warning and I am unable to understand the root cause of the problem, as it happens sporadically.
I am working with .Net Framework 1.1 on Windows XP (tested on both SP 1 and 2).
I tried the following:
- Having a try/catch cover on all the important event handlers (OnPaint, OnMouse..., etc) and in the static Main() method (Application.Run(...))
- Set an UnhandledException handler for the present App domain.
- Earlier, I was creating and releasing a COM object in a method that was being called many times. Now, I moved the creation into the class constructor and the releasing into the Dispose().
Yet, none of these options have either stopped the crash or have given me a clue.
Is there a way in which I can get hold of any low level API's or tools that will be able to execute my application in a shell, which will give me a greater control on locating the cause of the crash.
Any ideas will be greatly appreciated.
Thanks for reading.
-Rajesh.
|
|
|
|
|
Put a try/catch inside your static void main so you can catch the error and get a stack trace.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Seems to me if he was getting an unhandled exception that was causing the application to 'crash' the he would be seeing some type of exception dialog box before the app 'closes off' though.
If this can be seen under some type of controlled circumstances perhaps running the app in the debugger a while might shed some light on things. At very least he might get to 'see' it happen and maybe get some debug info that way.
When chasing things like this I usually start by gathering some statistics as to what the application was doing at the time it 'goes away' so I can get a better idea where to instrument things a bit. I then add some debug print statements and run the app with something like debugview running to get an idea as to what code was being executed last when the error happened.
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
As i said in the beginning itself that i have a try catch block in main also, but that is of no use, when it crashes. It still crashs without informing anything...
And i have tried to monitor the crashing procedure, but there is no similarity among the different occurances. I could only suspect on the Out of Memory Exception, for which i have made sure from two memory profilers that all the objects which i create, am also disposing them when they go out of scope..
I think that the problem might be at some lower level(OS level) which iam not able to get it right!!
Thanks for your suggestions.
Regards,
Rajesh
|
|
|
|
|
Try hooking into the System.Windows.Forms.Application.ThreadException event. Other than that I have no idea . Normally at least an error dialog should be displayed.
|
|
|
|
|
RajeshGuptha wrote:
- Earlier, I was creating and releasing a COM object in a method that was being called many times. Now, I moved the creation into the class constructor and the releasing into the Dispose().
If this COM object, or any other Interop call you do, call the ExitProcess() API, you'll see the behavior you described: the program closes silently, without any exception. To try isolating the problem, try to remove the COM object and any interop call, even if your program does not work, and see if still closes. If it does not close anymore, try adding each interop call you do until you find what is the culprit.
I see dead pixels
Yes, even I am blogging now!
|
|
|
|
|
Hi,
I am new programmer in bluetooth technology.
I need to write sample code for searching bluetooth devices and print their name.
This has to be done in Pocket PC.
I have already sample code for this downloaded from internet.
Problem is that, there are two files Bthdef.h, and BluetoothAPI.h
I am not able to locate these files.
Can anybody tell version of SDK where these files are....
Regards,
Sagar
|
|
|
|
|
Can anyone tell me what the minimum required permissions are to be able to write to the Windows event log?
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Hello.. I am developer in C# (compact framework .net )and need get at hardware´s serial number of identification in a pocket pc with windows Mobile 2005.
Please help me with any source code do it.
Thanks..
Fer
|
|
|
|
|
What I wanna do is to be able to fill an ArrayList from my designer...
what I got is this
public class WebCustomControl1 : System.Web.UI.WebControls.WebControl
{
private ArrayList liste = new ArrayList();
.
.
public ArrayList Liste
{
set
{
foreach(string ele in value)
{
liste.Add(ele);
}
}
get
{
return liste;
}
}
....
If I fill the Array 'hardcode style' I can see the elements but I can't add new elements in the designer...
How terrible is wisdom when it brings no profit to the wise
|
|
|
|
|
public string Liste
{
set
{
liste.Clear();
char[] seps = { ';'};
String[] values = value.Split(seps);
liste.AddRange(values);
}
this seems to solve my problem but is there no other way?
How terrible is wisdom when it brings no profit to the wise
|
|
|
|
|
How i can close a form created in a local scope of function with new key word.
Form is a child of main mDI form.
Secondly How object of local scope like form object remain there as local objects of functions get destroyed with function scope
Thanks in advance
Iftikhar
|
|
|
|
|
I suggest you read up on Garbage Collection (GC). In .NET, reference types (Form is a reference type) are not destroyed when they leave the scope, instead there is something called a garbage collector that does the memory cleanup when it decides to, based on a variety of factors.
[EDIT] To answer your first question, just declare a member variable to hold the form, you can then Close whenever you please, on the member variable. [/EDIT]
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thanks for ur reply. but the problem is not as easy. I dont want to decalre variable that hold the form reference. i just want to know is there any child forms list which can be accceed through MDI form. So that I get my form through that list and do what ever i want to do with that.
Iftikhar
|
|
|
|
|
How I can raise events behind proxy or firewall. PLEASE suggest a soloution. Is it really a need to custom implement the sinks or we can by pass them. A piece of code on that will be really help full. I have problem related with this issue
Iftikhar
|
|
|
|
|
Hi All,
I just findout a special button control: AquaButton for .NET for my application. I think it's really cool.
http://www.econtechvn.com/en/aquabutton_detail.htm
But anyone tried this before?
I'm going to buy it and I need your comments.
Thanks,
NicVan
|
|
|
|
|
Give it a rest - fair dinkum.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hey all,
I'm writing a modular application which is essentially an application framework. I would like users to be able to select the modules they want to use AND I would like them to download new modules as they are developed. Any ideas how I can 'attach' code to my application?
|
|
|
|
|
Search for "plugin based architecture" here or in Google, you should get plenty of pointers.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi
Can anybody explain me the article "Administrate SQL Server2000 From Pocket PC" By "rasheed1979". How to create such an application? Guide me step by step as i m going to develop this type of application for the first time.
|
|
|
|
|
|
virgo* wrote:
Guide me step by step as i m going to develop this type of application for the first time.
Isn't that what the article is for ? Why not ask the author if it's not clear ?
Christian Graus - Microsoft MVP - C++
|
|
|
|