|
Well, real-time applications are often cited as those for which managed environments are not suitable - due to the non-deterministic garbage collection. However, I don't have experience of real-time myself.
Having said that, Eiffel, which is also a GC-system has been used successfully in real-time environments - though Eiffel is a more sophisticated language than C# and .NET in this regard.
One thing you might get your company to look into is to port the app. to VC++ 2005 (C++/CLI). This will give you a managed environment, using the highest-performing language within a .NET context. Plus I believe it's the only managed language that will support deterministic GC, so that should handle the real-time aspects.
Another alternative is to stick with unmanaged code but port it to VC++ 7.1 or VC++ 2005 (Unmanaged) and make use of Boost smart pointers, etc., to take care of all your memory management issues.
Kevin
|
|
|
|
|
Hi All
We are using C# and VS.NET 2003. It is a mdi application. When
multiple child forms are opened then on the top right and left hand corner recursive
icons
are shown representing each form. There should be only one icon at a time.
Can any body have solution to this problem. Thanks in advance
imran
|
|
|
|
|
I have a List<t> of objects of type Extension. I want to search through the list looking for an Extension e where e.name = "<something>"
How do I do this in the .NET framework? I am confused on the proper syntax.
Thanks,
Lilli
|
|
|
|
|
Like this?
foreach (Extension ext in myList)
if (ext.Name == "SearchString")
Console.WriteLine("Found something!!!");
|
|
|
|
|
Hello,
I have a COM Type Library which contains two structures. One of the structure (STRUCTURE2) contains an fixed array of another structure (STRUCTURE1).
<br />
typedef struct STRUCTURE1<br />
{<br />
float x;<br />
float values[3];<br />
}<br />
RS_STRUCTURE1;<br />
<br />
typedef struct STRUCTURE2<br />
{<br />
STRUCTURE1 items[6];<br />
}<br />
STRUCTURE2;<br />
<br />
interface IrsLoadResults : IUnknown<br />
{<br />
HRESULT GetStructure2([out,retval]STRUCTURE2* pStructure);<br />
}<br />
In my VS.NET project I added reference to this type library and VS.NET generated an interop file. When I call interface method GetStructure2 I get OutOfMemoryException. In VB6 this work correct. I think this is caused by .NET COM marshaling but I don't know how to solve this problem. Does anybody have an idea?
Jirka
|
|
|
|
|
I have been working on a project where the aplication excutable
contains several resource files (text files.)
Now, it is required that the application will be installed at a client
location on 1 machine where the client will generate additional
resource txt files for the application. These files will need to be
packaged with the entire app and then the application will need be
deployed to several other machines.
We have been trying to figure out the best ways to do this.
Is there a way to add the newly generated resource files to a
pre-existing compiled exe? Is it possible?
Laura C
|
|
|
|
|
After an installation the shortcut points appearently not to my application (.exe) but starts the .msi again.
In the user desktop folder of VS the shortcut points to the primary output of the project.
see also this thead
Any ideas?
Thanks
Ariadne
|
|
|
|
|
I rewrote the whole setup-project: Now it works... It seems an internal error.
Then there is probably a minor bug: If I install a project as all users in the Software-install folder the icon is a yellow folder icon. If I install a project as single user the in the setup project selected icon appears.
Ariadne
|
|
|
|
|
Is there any tool that can generate these? For example, I can't find declarations for tool help library which I need to access from a service app, and since I'm a noob to .NET I really wouldn't know what's LPDWORD in .NET .. IntPtr?? Is there a table of equivalents somewhere??
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
http://sprd.12.forumer.com
Our forum features..err..nothing. You're welcome to contribute.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
|
Holy moly! That is freakin beatifull! Man, I really, really like CP community
Thanx a bunch!
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
http://sprd.12.forumer.com
Our forum features..err..nothing. You're welcome to contribute.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
I've recently put a .NET tool into public beta test. I would appreciate if anyone who is actively working with medium to large code bases, would participate in the beta and send me your comments to improve the product.
www.antair-chinchilla.com
The website is not the best right now, but it's being redesigned.
Cheers!
|
|
|
|
|
People I need help.
My Pocket PC application has to send emails. I used on of the SOCKET libraries found in inet and it worked with the local SMTP server. But when I tried to use it with the global SMTP server I obtained Socket Response error. This error is raised always. Has any one met with the same problem?
My application is developed using C#
I will appreciate any help.
Thank you in advance
I said that
|
|
|
|
|
Kirill Yatsenko wrote:
Has any one met with the same problem?
My application is developed using C#
Kirill: put this question tin the C#-forum. there is more traffic. Perhaps there is one, has the same problem.
Ariadne
|
|
|
|
|
If you are using system.web.mail try using innerexception to get a more detailed message reg the error. This wrapper has an ugly downside for throwing same error for many different problems that can be seen by using innerception prop on the exception object.
Good luck. /A
|
|
|
|
|
|
Hi,
could anyone tell me why when i draw any image in pocket pc or smartphone application the white color is transformed from 255,255,255 to 255,251,255 ( and many other colors are transformed to something different ). This is happen no matter what image format i'm using, what is the bpp and whether i'm testing on the emulator or the real device.
This problem appears only if i'm drawing images, if i'm drawing some graphic primitives such as rectangles etc. the colors are ok.
Please help!
|
|
|
|
|
"ApplicationName must be set before the DynamicBase can be set"
This is the message of the exception (MemberAccessException) returned when I try to load an assembly into the current domain of my application. The same code worked great in a smaller application I created to test the loading of
assemblies that I create dynamically and save to disk.
However, grafting it into my larger application results in the exception (above) and I'm uncertain why that is. I do recognize the property "ApplicationName" which can be found within the SetupInformation property of the AppDomain (System.AppDomainSetup) but I wouldn't know what to set it to.
Does anyone know why this exception might appear in one instance yet
not in another? The only relative difference between the two apps is one is a simple single assembly while the other is a more elaborate multi-assembly solution.
Thanks in advance,
Rein
|
|
|
|
|
hi,
i dave developed a .net component that is working fine in dot net projects but i want to add this component to a vb 6.0 project for that i have assigned strong name to the project but following problem is hindering
i am using some activex components (one of them is Microsoft.Scripting and other is thirdparty component) in my dotnet component, and i am not able to assign any string name to these components,
what should i do to make my component workable with vb 6.0
regards,
Arus
-- modified at 10:56 Monday 3rd October, 2005
|
|
|
|
|
I have a configuration class, FileMonitorConfig, that has a few string properties, and one ConnectionInfo property. The ConnectionInfo class in turn has a few string properties that describe a SQL Server connection.
When I write the FileMonitorConfig object, the inner ConnectionInfo object does not get serialized. It always appears a an empty tag in the config file.
Nothing in the literature indicates that only the top level of an object graph gets serialized, and the Serializable attribute on either class has no effect. Am I doing something wrong, or should I consider the provided Xml Serializer Transformer effectively useless and develop a custom transformer?
The DJ's took pills to stay awakwe and play for seven days. - Jim Morrison, Black Polished Chrome.
|
|
|
|
|
It seems that when the transaction of my C# Serviced Component times out the code still goes ahead and attempts another operation on that transaction. It then catches an exception. Is there not a way to be aware of the timeout event and abort processing before generating an exception?
The DJ's took pills to stay awakwe and play for seven days. - Jim Morrison, Black Polished Chrome.
|
|
|
|
|
Hi,
I am working on a fairly good sized .NET CF application (single process, multi-threaded) that runs on WinCE 5.0. The application is all C#, with a decent amount of p/invokes into OS calls and a 3rd party native DLL.
I have been trying to use the Remote Heap Walker to examine the applications heap and have run into the following issue:
When I use Remote Heap Walker I see my application and Heap Walker shows is as having 3 Heap regions. One of the heap regions HF32_DEFAULT flag set, the other 2 do not. I am able to examine the contents of the 2 heap regions that do not have the HF32_DEFAULT flag set, but when I try to examine the one that does have the flag, the Heap Walker application does the following:
Writes this to the debug output:
Data Abort: Thread=96b74da8 Proc=91ed8e40 'CEHWCLI.EXE'
AKY=00040001 PC=000117c4(CEHWCLI.EXE+0x000017c4) RA=001af000(CEHWCLI.EXE+0x0019f00) BVA=261b1000 FSR=00000007
And pops up a window to the display showing a fatal application Error.
My application is still running just fine and shows no ill effects. The reason I started using the Heap Walker is due to some random data aborts that pop up from time to time. Also, I am sometimes seeing the application gobble up all the memory on the WinCE device (when this occurs, I cannot even see my process using Heap Walker). Both of these occur sporadically, and not on all devices.
Does the Heap Walker tool throwing a data abort mean that the heap is corrupted (it happens every time, even just after applicaiton start up), or is there something incompatible with Heap Walker and large .NET CF applications?
Any insight is greatly appreciated.
Thanks.
|
|
|
|
|
I have a simple Windows Service. It is a timer loop, and when the timer expires it calls an external component to check if certain tasks need to be executed.
I noticed it was leaking memory. The Service itself does nothing but call a function in the external component, and it creates one reference to this component at startup and keeps this single reference to the component throughout the service lifetime.
At first I thought this might be a Timer problem, because it leaks memory every time the Elapse event expires.
But after a lot of experimentation, I determined that the memory leak actually occurs because of a call to write an entry in an EventLog. If I remove the EventLog entry write from the Timer_Elaspe event, the memory leak goes away.
I'm running Framework 1.1 on Win2K Service Pack 4.
Anyone else seen this problem??
|
|
|
|
|
I need to create a windows user account and add permissions for a specific folder. I have to code to create a auser, but how can I add permissions for this user on a specific folder?
|
|
|
|
|
Can someone suggest a tool to find the dependencies of a .NET assembly?
|
|
|
|