Hello I have a C# application that uses several Libraries (Crystal ...). The application always runs well. Since a few days I focus the problem, that I can start my application only with the debugger (the Debug and the Release version). If I start the *.exe directly, the application crashes ... Most times an 'Out Of Memory' exception occurs. I added some debugging output and I see, that I enter the Main() but then it crashes ... The application also crashes, if I take an old (former running) *.exe file. Do you have any hint how I could handle it? Thanks and best regards, Martin
M 2000
Posts
-
Can not start C# application without VS2005 -
VS2005: Task List --> Show all?Hi Thanks for your reply - So the Task List is not really usefull to handle project wide tasks ... Best regards, Martin
-
VS2005: Task List --> Show all?Hello I use the task list in VS2005 and I also added some new Tokens. The entries are HACK, TODO, TODO_HIGH, ... My Task List does not show all tasks, which I have entered in my Code, e.g.:
//TODO: Database - Replace Connection-String
How can I view my complete Task-List with all tasks from all files? Thanks and best regards, Martin -
compress int to shorter char array (e.g. 12345 --> 3a2)Because it is a long number and I have to pass it manually, e.g. by telephone. So the main target of the algorithm I am looking for is to shorten the integer.
-
compress int to shorter char array (e.g. 12345 --> 3a2)Hello I want to reduce the length of an integer number to transmit the number. e.g. I have an number e.g. 123456789 and I want to compress it to something like 3a34z1 Is there a standard solution in C#/.net for that? Thanks and best regards, Martin
-
theForm.InvokeRequired or theElement.InvokeRequiredHello I call FORM elements from another thread. I use Invoke/BeginInvoke for that. I access a TextBox and a ProgressBar. Can I use
theForm.InvokeRequired ...
to access both elements or do I have to check if for each element:textBox.InvokeRequired ... progressBar.InvokeRequired
Thanks Martin -
How to detect ATX Power-Button EventHi I use Windows-XP/Embedded and I want to shut down my application properly if the user presses the Power-Button. The system is powered by an ATX power supply. I used the following code to test it:
using Microsoft.Win32; ... SystemEvents.PowerModeChanged +=new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged); ... private void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e) { System.Windows.Forms.MessageBox.Show("Power Off!!!!!!!!!!!!!!!!!!"); }
Unfortunately the message never appears if I click the main button. The only thing that happens is that the top most form/dialog is closed. Is here anything wrong or are there better solutions? Thanks and best regards, Martin -
On-Screen-Keyboard manipulatingHi I develop a mobile device with a Touch-Screen (1024*768) with XP-Embedded. The application should be region/language independet. The standard XP On-Screen-Keyboard is too small. Can I manipulate the size of the buttons programmatically? or Is there a way to program a multi-language keyboard myself? or Does anybody know a good 3rd-Party-Tool/Library programmed in C#? Thanks and best regards, Martin
-
VS2005 Beta2: Set Grid Header Color?Hi I am using VS2005 Beta2. Can I set the grid header colour in the form designer and/or programmatically?
E.g. : dataGridView1.ColumnHeadersDefaultCellStyle.BackColor = ...
Thanks -
MTAThread and AllowDrop?Hi I use a COM object which needs that I set my Threading-Model to Multi-Threaded-Apartment (MTAThread). If I do not set it to MTAThread I get System.InteropServices.COMException when I call COM-Functions. If I set it to MTAThread I get a 'System.InvalidOperationException:DragDrop registration failed' exception when opening a Windows-Form element with AllowDrop set to true. Is it not possible to enable DragDrop in a Multi-Threaded-Apartment? Thanks Martin
-
How to set expiry date for my softwareHi I have an additional question: Where should I store the
date of installation
? The user should not be able to delete or change it. Thanks. -- modified at 9:17 Wednesday 9th November, 2005 -
Set File Access (Read/ReadWrite/Write)I work with a file in my program. But I want to avoid that the file is modified outside of my application by another user. So I thought to make it write protected would be a solution. Do you have another recommendation? Thanks!
-
Set File Access (Read/ReadWrite/Write)Hi I want to set the File Access (e.g.
FileAccess.Read
) attribute in my C# program. I found theSystem.IO.File.SetAttributes()
Function but it seems not to be the right thing. I also do not want to use theFileStream
constructor. Is there another way? Thanks -
Application Settings File: Folder LocationOne solution is to read out the information with the GetFolderPath function:
string strFolderName = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData;
For details see: http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemEnvironmentSpecialFolderClassTopic.asp -
Application Settings File: Folder LocationHello Thanks for the reply! Can I read the Home-directory folder out of the system settings? Or how should I handle multi language installations (french, german, ...) which do not name the folder 'documents and settings' but 'dokumente und einstellungen' for instance? Greetings
-
Application Settings File: Folder LocationI have application settings (Configurations) which can be modified by the user at runtime. The settings are stored in a file or in a database. Where do I locate this file? E.g. the installation folder C:\Program Files\MyExampleProgram\Settings is write-protected for a normal user. The C# program is installed on Windows Systems post Win98SE.