|
Don't cross post. You've already been answered in the C# forum.
No, there is NOTHING in the .NET Framework or Garbage Collector that can compensate for a memory leak in an unmanaged code component.
|
|
|
|
|
Dave Kreskowiak wrote: Don't cross post. You've already been answered in the C# forum.
Ho-hum, another one of those
"too much daily WTF for someone..." - Anton Afanasyev
|
|
|
|
|
I know. It does get boring, doesn't it.
|
|
|
|
|
Dave Kreskowiak wrote: I know. It does get boring, doesn't it.
On one hand, yes. On the other, it's rather entertaining
"You will see a delete button on each of your posts. Press it." - Colin Angus Mackay
|
|
|
|
|
|
No. There is no version of the VB6 runtime for PocketPC, that I know of anyway.
|
|
|
|
|
I have installed .NET CF v2 but when I create new project I`m unable to find SqlClient in System.Data ? Can anyone help me.
Ivan,
Cheers.
|
|
|
|
|
|
Hi,
I used to have an application which used TTS. The application was working fine for about a year.
Recently (After Installing .NET 3.0? - I'm not sure) I'm unable to run this application any more.
Uhenever I use the SpVoice.Speak(textToSpeak, speechflags) I get the following error:
{"Exception from HRESULT: 0x8004503A"}<br />
Data - {System.Collections.ListDictionaryInternal} -{System.Collections.ListDictionaryInternal} Count - 0<br />
Source - "Interop.SpeechLib"
I beleve that this is a marshaling problem because when I re-build my project I get lots of warning such as:
Warning 1 At least one of the arguments for 'SpObjectTokenCategory.GetStringValue' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.
I've made no changes in my code whatsoever.
Any help is appreciated
Tnx
Roy
|
|
|
|
|
I have an app set up as a remoting server. It's all tested and working as long as I use Singleton server-activation.
I've changed the code to use client-activation. I've tried Activator.CreateInstance(...) and RegisterActivatedClientType(...) / new and both show the same problem:
The initial connection succeeds and I get a transparent proxy but the first call to the server hangs and never returns. I have even tried creating my own sponsor but the call to Register hangs, too.
This is all using a TCP channel and running on Vista.
Please suggest what might be wrong or what I should try next.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Dear All,
I am looking for a way to monitor network traffic, such as total number of bytes have been upload / download.
Could anybody give me some clues of doing this? Either using SDK (C++) or .NET Class (C#) would be nice.
Many Appreciates!
Best regards,
Chris G.
|
|
|
|
|
|
|
Is there a memory allocation limit in .net?
As I recall, in Turbo Pascal no individual allocated block of memory can exceed 64K.
I still see that when I use C (and Borland's compiler).
But it seems .net doesn't have that limit, I've created arrays larger than that and they seem to work fine, until I run out of memory:
byte[] x = new byte [ 0x597FEFCCUL ] ; // Succeeds
but
byte[] x = new byte [ 0x597FEFCDUL ] ; // Throws System.OutOfMemoryException
byte[] x = new byte [ 0x7FFFFFFFUL ] ; // Throws System.OutOfMemoryException
and
byte[] x = new byte [ 0x80000000UL ] ; // Throws "Arithmetic operation resulted in an overflow."
So it appears it's limited to available memory, but no more than 2GB?
Is this documented anywhere?
Don't get me wrong, I'm not complaining, just curious.
|
|
|
|
|
|
What's that got to do with .net?
|
|
|
|
|
Yeah, Satips hasn't been hitting the mark with a lot of his answers. From what I've seen, he's missing the target entirely.
Every process under 32-bit Windows gets it's own 4GB virtual address space, divided into 2GB for user-mode code/data and 2GB for kernel-mode. This built-in limit is what you're bouncing up against.
You CAN change this limit in the systems boot.ini file to give the user-mode space a 3GB limit, but that's all, no more. The kernel-mode space will get limited to 1GB. There ARE consequences to doing this! Read all the links here[^].
The .NET Framework will support the larger user-mode virtual address space, but it's not recommended on all platforms. I can't seem to find that supported list right now though.
|
|
|
|
|
Ah, now that's an answer. If only the books I have would at least happen to mention it in passing.
|
|
|
|
|
PIEBALDconsult wrote: Ah, now that's an answer.
|
|
|
|
|
I have a regular expression that isn't matching the text into a capture group
as expected. What makes this odd is that it works fine in Expresso, but not
at run-time in the application.
The problem is that the "ErrorMessage" capture has a value of "Error
processing" at run-time; however, in Expresso it has "Error processing
CallRaisesError" which is what I expect.
What am I missing here?
Regular Expression:
\A\d{2}[\s\t]+(?<ErrorMessage>.[^\t]*)[\s\t]+(?:.[^,]*,[\s\t])*(?:.[^;]*;)[\s\t](?<ErrorNumber>\d*)[;][\s\t]+{DONE}\z
Test data:
01\tError processing CallRaisesError\t; 10000; {DONE}
Options:
RegexOptions.Compiled | RegexOptions.CultureInvariant | <br />
RegexOptions.IgnoreCase | RegexOptions.Multiline
|
|
|
|
|
I don't know, I'm fairly new to regular expressions as well.
But it doesn't help that the post has an unfortunate smiley in it. You may want to modify the post with the code within a pre block (or whatever the proper term is).
Also, be sure that things like \t are understood by the processor,
you may need to use a literal string (preceeded by an @ sign): "abc\tdef" will be different from @"abc\tdef" and "abc\\tdef".
|
|
|
|
|
Neither the pre or code blocks do anything about the smiley. Apparently, you're stuck with it. I figured it would be easy to ascertain that the winking smiley is a "; )" (just remove the space). The \t is a tab character in C# and is used there as such to illustrate the delimiter in the output.
|
|
|
|
|
tgrt wrote: I figured it would be easy to ascertain that the winking smiley is a "; )"
I didn't know whether or not it was safe to do so.
tgrt wrote: The \t is a tab character
Yes, but do you want the regex to contain a TAB character or the literal \t ?
If the latter (as I expect), then you need to either use a literal string or escape the backslash (\\t ).
|
|
|
|
|
PIEBALDconsult wrote: Yes, but do you want the regex to contain a TAB character or the literal \t?
If the latter (as I expect), then you need to either use a literal string or escape the backslash (\\t).
The purpose of the \t in the regular expression is to match a tab character and the \t in the test data is the illustration of there actually being a tab character (basically the string as you'd see it in the locals window for instance).
The tabs match in the expression without fail. The problem is that when ran as part of my application (exact same regular expression and options as noted) it doesn't match part of the message whereas in Espresso (a regular expression build/test application) it does.
|
|
|
|
|
Yes, I understand that.
Let's see...
Fact 1 : The text to be tested contains TAB characters that need to be matched.
Fact 2 : To match TAB characters with a regular expression you specify \t (not an actual TAB character).
Fact 3 : The string produced by the C# statement string s="\t"; will contain a TAB character, not the desired \t (even though the debugger may show it as \t ).
Fact 4 : To produce a string in C# that does contain the two-characters \t , use either string s=@"\t"; or string s="\\t";
If that's not the problem, then I don't know what is and I hope someone else steps up.
|
|
|
|