Memory Leak in System.Timers.Timer?
Hi,
I made a Windows Service in VS.Net 2003 with VB. I've included the main
code, there's some other code, but it's rem'ed out and essentially just a
timer running here. I'm trying to run something at 5:20 every day. I caught
a comment in a different thread about system.threads.timer perhaps being a
better way of handling the situation, but anyway...
When I start the service, I see that the memory usage in Task Manager is
7,124. In 30 minutes it's 7,232. 15 hours later it's 7,640 K. It's
leveling off, but I guess I am wondering why it's getting larger at all.
Perhaps a second question (related), is if this is the best way to run
something at a specific time.
Dim timerClean As New System.Timers.Timer
Protected Overrides Sub OnStart(ByVal args() As String)
' Add code here to start your service. This method should set things
' in motion so your service can do its work.
boolAlreadyRan = True
dateRunTime = TimeValue("5:20:00 pm")
' Set the timer to check every 5 minutes.
StartTimer(timerClean, 300000)
EventLog1.WriteEntry("In OnStart")
End Sub 'OnStart
Private Sub StartTimer(ByRef aTimer As System.Timers.Timer, ByVal
Interval As Integer)
AddHandler aTimer.Elapsed, AddressOf OnTimedEvent
aTimer.Interval = Interval
aTimer.Enabled = True
End Sub
Private Sub StopTimer(ByRef aTimer As System.Timers.Timer)
aTimer.Enabled = False
End Sub
Private Sub OnTimedEvent(ByVal source As Object, ByVal e As
ElapsedEventArgs)
If (boolAlreadyRan = False) And (TimeValue(Now) > dateRunTime) Then
'Timer Event Occurred.
boolAlreadyRan = True
End If
If (boolAlreadyRan = True) And (TimeValue(Now) > dateRunTime) And
(TimeValue(Now) < dateRunTime.AddMinutes(6)) Then
boolAlreadyRan = False
End If
End Sub 'OnTimedEvent Tag: GetTickCount call in Framework Tag: 92955
OpenFileDialog error when selecting more than 1 file on a Camera
Hello,
I get the infamous 'Too many files selected' error using the OpenFileDialog
with multiselect, only, I'm just selecting 2 files!!!!
These files are located on a digital camera connected through USB and a WIA
driver (not the MSC driver as this locks the camera). Windows explorer allows
me to select multiple files and copy or move them, but the .NET
openfiledialog chokes when I try to select more than 1! Note that my
application runs inside IE (it's a smartclient), but that the dll has full
trust and all permissions are asserted. Also everything works fine when
selecting files in a 'regular' folder, so its unlikely to be a security
problem...
OS is Windows XP SP2, .NET 1.1 SP1 Tag: GetTickCount call in Framework Tag: 92943
How do I serialize an Exception?
Hello,
I get an InvalidOperationException when I try to serialize an exception like
this:
System.Xml.Serialization.XmlSerializer x = new
System.Xml.Serialization.XmlSerializer(typeof(Exception));
System.IO.StringWriter sw = new System.IO.StringWriter();
x.Serialize(sw, new Exception("My Test"));
and I have read this on a newsgroup:
This is a "ByDesign" XmlSerializer behavior: we do not serialize classes
with members that have security demands on them. This will be changed in the
next version to allow the members with security attributes, and generate
code that use reflection instead of direct accessors.
Any ideas on how to do it?
Best regards
Henrik Skak Pedersen Tag: GetTickCount call in Framework Tag: 92937
vs.net installation problem on amd64
Hi , I am trying to install visual studio on my machine and my machine get
hang and installation fails everytime.
Can any body tell me are there any issues with vs.net 2003 and amd 64
Please it will really be helpfull
Cheers
atul Tag: GetTickCount call in Framework Tag: 92934
Registry Error "Access to the Registry Key HKEY_LOCAL..\. is denie
I am attempting to write an encrypted password to the Registry, from a VB
ASP.Net App and similarly read it in a Webservice .
I have tried the RegistryPermissions code etc from the MSDN help,
Dim f As New
RegistryPermission(RegistryPermissionAccess.AllAccess, _
"HKEY_LOCAL_MACHINE\SOFTWARE\")
f.Assert()
?? how does one tie this up to the RegistryKey class?? if at all.
but .. the error persists.
(
I am currently trying to develop this on my DevMachine, (Administrator
rights etc), though this will need to be deployed to a Windows 2000 server or
similar.
Lost (......yet again !) ..
Anybody...?
TIA
Code is as follows
Dim subkey As RegistryKey =
Registry.LocalMachine.CreateSubKey("SOFTWARE\UCT-SPLUS\DbPwd")
which is where the error occurs.. thereafter one assumes the setValue will
work.
subkey.SetValue("DBPwd", sPwdValue)
--
Neal Rogers
University of Cape Town Tag: GetTickCount call in Framework Tag: 92933
Memory use with RSA digital signatures
Hi,
I am attempting to write a library for encrypting image files. It all works
except for one section that creates a digital signature for the file using
RSA. The code itself works, but when called repeatedly in a loop, it uses
increasingly more memory, until where the physical free memory would be
zero, it suddenly clears the memory and after that doesn't have the same
problem. If it doesn't reach zero, the memory isn't reclaimed until the
program is terminated. I have tried calling the garbage collector
explicitly and this doesn't make any difference. The code causing the issue
is:
Private Function SignImage() As Boolean
Dim Signature() As Byte
Dim RSA As RSACryptoServiceProvider
Dim csp As New CspParameters
csp.Flags = CspProviderFlags.UseMachineKeyStore
csp.KeyContainerName = "Test"
RSA = New RSACryptoServiceProvider(csp)
Try
Signature = RSA.SignData(Image, "SHA1")
WriteString("<Signature>")
WriteBytes(Signature)
WriteString("</Signature>" & vbNewLine)
Signature = Nothing
Return True
Catch ex As Exception
Return False
Finally
Signature = Nothing
If Not RSA Is Nothing Then RSA.Clear()
RSA = Nothing
End Try
End Function
If I comment out the line
Signature = RSA.SignData(Image,"SHA1")
, then the problem doesn't occur. I know that the problem isn't caused by
the WriteBytes & WriteString subs (which just write data to a stream) as
these are used in many other places. 'Image' is just a memory stream
containing the image data (for my tests, this is around 1.5MB each time).
Can anyone suggest what is causing this and what I can do to avoid it?
Thanks for any help,
Chris Tag: GetTickCount call in Framework Tag: 92931
Exception in configuration section handler.
I am trying to configure trace listeners in my web config file for an
asp.net web service , but I seem
to be having a problem. I'm hoping someone will be able to spot what I'm
doing wrong...
It comes up with an error 'Exception in configuration section handler'
Line 38: </businessStream>
Line 39:
Line 40: <system.diagnostics>
Line 41: <switches>
Line 42: <add name="MainSwitch" value="4"/>
<system.diagnostics>
<switches>
<add name="MainSwitch" value="4"/>
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListenere" type="System.Diagnostics.TextWriterTraceListener"
initializeData="c:\myListener.log" />
</listeners>
</trace>
</system.diagnostics>
<system.web>
<compilation defaultLanguage="c#" debug="false" />
<trace enabled="false" requestLimit="10" pageOutput="true"
traceMode="SortByTime" localOnly="true" />
<customErrors mode="RemoteOnly" />
<authentication mode="Windows" />
<authorization>
<allow users="*" />
</authorization>
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
Cheers
Ollie Riches
http://www.phoneanalyser.net
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers. Tag: GetTickCount call in Framework Tag: 92928
Attaching a .NET event in vb6
Hi,
I have written a type library using .NET. I am using this library in VB6
and I need to know how to attach a procedure to an event.
Regards,
Joshua Tag: GetTickCount call in Framework Tag: 92927
Periodic problem in InitializeComponent of modal form with a forms.timer
Hi,
I have a periodic problem which I am having a real time trying to sort.
Background:
An MDI VB app with a DB on SQL 2000.
I have wrapped all the DB access into an object which spawns a thread to
access the database and then displays a modal dialog which allows the user
to cancel the task, if it is taking longer than they want, and shows them a
display of how long the query has been running so far.
I have been very careful (I think!) to make sure that the UI is only ever
updated from the main UI thread. I pass status info from the SQL therad to
the UI thread through a System.Threading.AutoResetEvent.
A system.windows.forms.timer runs in the Modal form to update a textbox with
the amount of time it has been there and to check the 'SQL finished' event
above.
Everything work fine 99.9% of the time BUT, very occasionally, I get an odd
situation in InitializeComponent in the modal form.
As far as I can ascertain (sorry, that should be, totally guess!), when the
timer is enabled, it does not 'see' the containing forms message loop and so
it instantiates one itself (?). This new message loop 'sees' messages in the
MDI's queue including the pending message currently being processed which
caused this whole event to occur (stay with me here!)
I think that this makes much more sense in the context of a real stack
trace:
Stack Trace: at System.Data.SqlClient.SqlCommand.ValidateCommand(String
method, Boolean executing)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteReader()
at Ideal.clsDBThread.SQLFetchThread()
Current Stack: at System.Environment.GetStackTrace(Exception e)
at System.Environment.GetStackTrace(Exception e)
at System.Environment.get_StackTrace()
at Ideal.basUtility.LogError(Exception e, String strUserMsg)
at Ideal.clsDatabase.SQLFetch(String strCommand)
at Ideal.clsDatabase.TryEditLock(Int32 iDealID)
5 at Ideal.frmDeal.cmdEdit_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
4 at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
3 at System.Windows.Forms.Timer.set_Enabled(Boolean value)
at System.Windows.Forms.Timer.set_Interval(Int32 value)
2 at Ideal.frmDBExec.InitializeComponent()
at Ideal.frmDBExec..ctor()
at Ideal.clsDatabase.SQLFetch(String strCommand)
at Ideal.clsDatabase.TryEditLock(Int32 iDealID)
1 at Ideal.frmDeal.cmdEdit_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Ideal.basMain.Main()
From the bottom.
Normal appication stack (I think) with a mouse click being processed
At point (1) the routine which handles the button click is called
This calls some SQL which causes the spawned thread/Modal dialog combination
and the modal dialog (Initialisation call can be seen at point 2)
Within this initialisation the timer interval gets set which in turn enables
the timer (point 3). All normal so far
Then:
At point (4), within the timer enable, there is a call to RunMessageLoop
which (I think) hooks onto the MDI's context and picks up the same mouse
click that we are currently processing and recalls the button click routine!
(point 5)
Any help or pointers to help would be VERY VERY apprieciated
Thanks in advance
Stephen Tag: GetTickCount call in Framework Tag: 92925
How to print to a PNG-file?
Hi!
A have developed a windows app in VB.NET that has some printing of charts
and such stuff. Is there an easy way to save the outprint in an PNG-file
instead? I want exactly the same look in the image as in the outprint.
--
Regards,
Lars Jönson Tag: GetTickCount call in Framework Tag: 92924
Error using System.Type as input argument to Web Service
(Type your message here)
I wrote a web service which takes an object of type System.type . I don't get any exceptions when building the application. But at the start page, which is the default page listing all the services,
I get the following error.
The property 'MemberType' on type 'System.Reflection.MemberInfo' cannot be serialized because it is decorated with declarative security permission attributes. Consider using imperative asserts or demands in the property accessors.
Can anyone tell me how to solve this problem?
--------------------------------
From: Gayan Sanjeewa
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>q+EUgBvLw0iikgoYEO1ECA==</Id> Tag: GetTickCount call in Framework Tag: 92922
.NET PDF Class
Hi
Anyone know where I can find a .NET PDF class or sdk? I need to create PDF
documents from ASP.NET but don't have the money to buy off-the-shelf
products.
TIA Tag: GetTickCount call in Framework Tag: 92919
Fully qualifiying a directory on a domain to upload files
I want to upload files and have designed a form that does the job
nicely, it currently works uploading to "c:\temp" folder. However if i
place this on the web server, how do I qualify a folder on my domain?
My domain is www.paulcustance.com
Many thanks
Paul Custance Tag: GetTickCount call in Framework Tag: 92916
Fulyl qualifiying a directory on a domain to upload files
I want to upload files and have designed a form that does the job
nicely, it currently works uploading to "c:\temp" folder. However if i
place this on the web server, how do I qualify a folder on my domain?
My domain is www.paulcustance.com
Many thanks
Paul Custance Tag: GetTickCount call in Framework Tag: 92915
reports
Hi,
I'm developing a web application for a company. We are using asp.net and sql
server 2000.
Can someone tell me how to create a nice report? The user of the application
can fill in some choice on the web page and from the choice we want to make a
database question and then create the report.
Is it possible to create a word document?
Thanks a lot! Tag: GetTickCount call in Framework Tag: 92914
system.arithmeticexception overflow/underrun error
Hi,
I need help with my .net framework/visual studio.net. I have recently
reinstalled windows, and despite this, all my .net framework exe files refuse
to run due to an error in system.drawing.dll in the windows generated code.
My research tells me that sometime is changing the FPU registers from the
default value. Is there a way to fix this error and prevent the exception
without adding extra code to my exe files? (the error affects 3rd party
developed exe that utilise .net) I have extensively searched my pc for
adware/malware, and it doesn't appear to be the cause of my issue. can anyone
help me please? Tag: GetTickCount call in Framework Tag: 92905
Retrieve list of roles and users from Active Directory...
Hi There,
I'm a complete newbie. I'm wondering if it's possible in C# to
retrieve the complete list of roles in Active Directory and also a
complete list of all users from active directory. I've looked in the
Enterprise Library of Security Block but couldn't find any code that
does this (it just gets the list of roles of a specified user).. Can
someone point me into the right direction?
Thanks
Sharon Tag: GetTickCount call in Framework Tag: 92904
Shutting down child processes started using System.Diagnostic.Process
I have searched extensively and not found anything on how to do=
this=2E
The prolem is as follows=2E I have a console application that=
launches some command line utilities using the=
System=2EDiagnostic=2EProcess class=2E Basically I want to just kill=
any of these child processes if the parent/controlling app dies=2E=
I have tried everything suggested including things like=
implementing the IDisposable interface but nothing seems to work=
basically i need to terminate all child processes as soon as the=
parent dies=2E Any suggestions?
--------------------------------
From: Lloyd Gomes
-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)
<Id>qrRvd3FfvkGiESKUyPS9OQ=3D=3D</Id> Tag: GetTickCount call in Framework Tag: 92903
where is ildasm?
I've got Visual C# 2005 express edition (beta) does anyone know where (or
if) ildasm and dotfuscator are on the CD?
If they're not on the CD where can I get them from, please don't suggest a
full SDK download as I'm on dial-up.
Thanks in advance
Alan Tag: GetTickCount call in Framework Tag: 92898
Running .NET 2.0 applications on .NET 1.1. Is it possible?
It's possible to run applications generated for .NET 1.1 on .NET 1.0
by using the <supportedRuntime> and <assemblyBinding> tags. When I
try to use a similar technique to run an application generated for
.NET 2.0 on .NET 1.1, I get a BadImageFormatException. Is there some
other way to do this?
Thanks for yor help.
lpoppan Tag: GetTickCount call in Framework Tag: 92887
.NET-BroadcastEventwindow.1.0.5000.0.3:-Application Error
(Type your message here)
--------------------------------
From: Ravi Jammalamadaka
Hi,
I have been getting the following error lately an a VB=2ENET=
application I have been working on for almost 4-5 months=2E
"=2ENET-BroadcastEventwindow=2E1=2E0=2E5000=2E0=2E3:-Application Error" and=
it further says memory could not be read from somewhere=2E
Any help on this would be great=2E As I said the application is in=
VB=2ENET, it is multi-threaded and uses COM components=2E This one=
is a very recent error=2E I currently have XP SP2 and =2ENET 2003=
SP1=2E I have had earlier versions of this application working on=
the same environment without any problem=2E
All I can confirm about this error is, it pops up only after the=
application exits from the Main method=2E And it happens randomly=
(without any pattern) and very infrequently=2E
-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)
<Id>J0UgwcRTk0GWDx33F9LO/A=3D=3D</Id> Tag: GetTickCount call in Framework Tag: 92886
exporting web-based reports
I have dopdownlists to let the user select entries. The results are displayed in a datagrid. Additionally a crystal report shall be exported to PDF if user wants it, based on the selected items in the lists. I don't manage to solve the following problem:
"CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Invalid file name."
crReportDocument.Export() (marked red)
Can anybody help?
Robert
--------------------------------
From: Robert Gregory
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>gV6jik42Y063Fzpf6L8U8A==</Id> Tag: GetTickCount call in Framework Tag: 92885
code being truncated
Hi All,
Anybody come across this problem before, and if so, know what the cause is:
50% of the time, when I go to save my .aspx and code-behind pages, even .config files,
I get a message saying "Operation cannot be completed" (or "cannot save" in case of the .config file).
It brings up the "save" dialog box, and at this point, usually lets me save.
Now the issue is that when I re-open to the page, I see that it has been truncated at a randon line.
So I loose work from that line on, because it just gone...
Does anyone know if this this is network related, since the files reside on a seperate server to vs.net
or some other .net thing.
Thanks people.
--------------------------------
From: wajeeh shah
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>ftnNNkZsvUeEQXa6dJfSzQ==</Id> Tag: GetTickCount call in Framework Tag: 92884
<codeBase> question
I have a few questions I was hoping someone can give me insight=
into=2E When using the <codeBase> element and specifying a dll on=
my local intranet, does the framework create a shadow copy of=
that dll on the local machine? I believe it does because I can=
overwrite the shared dll located on the intranet, but does it=
create a shadow copy everytime? When the Application restarts a=
second time does it recopy the dll locally or does it just check=
to see if the versions are the same and if they are the same=
then it uses the previous shadow copy?
Can anyone tell me how this works?
thanks,
--------------------------------
From: Greg O
-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)
<Id>paEZvn52VkCahjvk9YngyQ=3D=3D</Id> Tag: GetTickCount call in Framework Tag: 92883
c# checking if Time in time interval
Hi
I am reading string time values from text file example:
"08:09"
"8:44"
What is the correct way to handle (convent from string to Time) time objects
in c#?
And how do I check if the time object is in a specified range?
Example
If ( myTime > "9:00" && myTime < "11:00")
Thank you very much
Sharon.G Tag: GetTickCount call in Framework Tag: 92879
Wrong datatype returned - possible bug?
I have recently experienced a rather strange occurrence in one of my VB.Net
applications. When extracting values from an oracle database (oracle
9.2.0.4.0) some oracle 'NUMBER' variables are returned as decimal as expected
but others are being returned as double. This causes the
datareader.getDecimal(0) method to fail with an invalid cast exception. The
strange thing is that this code works against other databases running
different versions of Oracle. Has anyone seen this before? Tag: GetTickCount call in Framework Tag: 92877
Test if framework is installed
Hi,
i deploy a installation for our new product which is written in
dotnet. My question is now, how can i find out if dot net allready is
installed?
An other question which is not topic of this forum i think, but
perhaps somebody have an anwser anyway: How to handle this with
install shield developer 7.
greetings
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com Tag: GetTickCount call in Framework Tag: 92874
Hooking UnhandledException in .NET module invoked in classic ASP
I posted this question in microsoft.public.dotnet.framework.interop but got
zero replies in 5 days so I'm reposting in the general framework group hoping
someone's got some insight:
We have a large IIS/SQL classic ASP site that we are converting to .NET by
abstracting functionality into .NET components/methods which are also
installed/registered as COM objects so they can by invoked by new ASPX pages
as well as by our current ASP pages (Set xxx = Server.CreateObject)
My question is how do I hook a handler into the UnhandledException chain for
my ASP page invoked components via (Set ThisObj =
Server.CreateObject("MyLib:MyObj")?
The section of my code where I hook the chain is:
If System.Web.HttpContext.Current Is Nothing Then
'Instantiated in the classic ASP environment
' ??? What goes here ???
Else
'Instantiated in the ASPX environment
Dim HttpApplication As System.Web.HttpApplication =
System.Web.HttpContext.Current.ApplicationInstance
AddHandler HttpApplication.Error, AddressOf HandleHttpExceptions
' This works fine to catch exceptions in the .NET assembly on
ASPX pages
End If
I've tried the standard console application hooking:
Dim CurrentDomain As AppDomain = System.AppDomain.CurrentDomain
AddHandler CurrentDomain.UnhandledException, AddressOf
HandleUnhandledExceptions
but that doesn't seem to work across the interop/COM boundaries.
Anybody got any light to shed on where the UnhandledException event chain
lives when the .NET assembly is registered as a COM object and invoked by
IIS's object structure? Tag: GetTickCount call in Framework Tag: 92872
Enabling JIT Debugger
I have a wierd problem with the 1.1 framework.
During some early development I was getting an invalid cast exception
that was displaying the JIT debugger dialog, indicting how I could
enable the JIT debugger. This is on a system with the full Visual Studio
installed, by the way.
I created a file named MyApp.exe.config and placed a copy on the
Bin\Debug directory, as instructed the file contained the following lines:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When I ran my program in debug mode, the problem was unchanged (the same
dialog appeared) and when I checked, the config file had been deleted.
What is going on here?
-Ken Tag: GetTickCount call in Framework Tag: 92869
Tough..Accessing Scripts with params from DGrid, for Dialogs
Hi
I can access a script from a button click event, to show a Dialog box but..
I need to (from the DGrids) Item Command, so I can trap the cell and correct
master data, then call a script to show a Dialog/Modal window, to display the
Detailed /"Child" data of that data selected from a Grids Cell.
From a Button Click, dynamically created from Page Load I provide a scipt a
which fires when the control button is clicked,.. but to take it further...???
eg
If (Not Page.IsClientScriptBlockRegistered("btnModal_click")) Then
Dim strClientScript As String
strClientScript = "<script language=""javascript"">" & vbCrLf & _
"function btnModal_click() {" & vbCrLf & _
"var x =
window.showModalDialog(""testModal.aspx"",""Args"",""dialogHeight: 250px;
dialogWidth: 500px; dialogTop: 300px; dialogLeft: 300px; edge: Raised;
center: Yes; resizable: Yes; help: No; status: Yes;"");" & vbCrLf & _
"}" & vbCrLf & _
"</script>"
Page.RegisterClientScriptBlock("btnModal", strClientScript)
End If
btnModal.Attributes("onclick") = "Javascript:btnModal_click()"
????
TIA
Neal
--
Neal Rogers
University of Cape Town Tag: GetTickCount call in Framework Tag: 92864
File Compression?
Hi,
I wanted to ask whether there is a file compression mechanism in the
existing .Net framework or if something to implement file & string
compression-decompression will be available in future versions.
There are many freely available file compression components XZip & GZip come
to mind, but it would be great if it was built-in to the framework.
Thanks in advance Tag: GetTickCount call in Framework Tag: 92862
Tough one: Accessing Script from webforms (vb.net), passing parame
Hi
I am trying to access a script to show a Modal dialog, from a DataGrids
ItemCommand (ie When a particular cell is clicked/selected (actually the item
in a listbox in a template control in a DataGrids Cell)..though with
FindControl that is not the problem)..
I need to invoke the script, and pass parameters to the Dialog (to retrieve
data/detail about what was selected in a cell of a datagrid).
I have managed only to create a script which reacts to a buttonclick event
ie
If (Not Page.IsClientScriptBlockRegistered("btnModal_click")) Then
Dim strClientScript As String
strClientScript = "<script language=""javascript"">" & vbCrLf & _
"function btnModal_click() {" & vbCrLf & _
"var x =
window.showModalDialog(""testModal.aspx"",""Args"",""dialogHeight: 250px;
dialogWidth: 500px; dialogTop: 300px; dialogLeft: 300px; edge: Raised;
center: Yes; resizable: Yes; help: No; status: Yes;"");" & vbCrLf & _
"}" & vbCrLf & _
"</script>"
Page.RegisterClientScriptBlock("btnModal", strClientScript)
End If
btnModal.Attributes("onclick") = "Javascript:btnModal_click()"
...which at this point does'nt help me vastly.
I need to call this script from within the grids Item Command and then
Provide the required parameters for the Dialog to load the requisite "Child"
detail,
Any Ideas, Any Guru
TIA
--
Neal Rogers
University of Cape Town Tag: GetTickCount call in Framework Tag: 92861
Install/Uninstall .Net Framework --> Internal Error 2711. S867460
hello NG.
on my windows 2000 advanced server i cannot uninstall (or install) the .net
framework. there is a message box (title: 'Microsoft .NET Framework 1.1
Setup') with a text: 'Internal Error 2711. S867460'.
i can press 'OK'
help!
i cannot install the servicpack for .NET Framework too.
karo Tag: GetTickCount call in Framework Tag: 92859
Acessing Internet Explorer document from contained vb Activex
Can someone tell me how to access the Internet Explorer
Document from a vb.net usercontrol hosted in this
document ?
Me.parent, parentform, findform don't seem to work.
Thanks
. Tag: GetTickCount call in Framework Tag: 92856
Alternatives to RealProxy
This is a multi-part message in MIME format.
--------------030705080200040303030101
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I'm wondering what alternatives, if any, there are to realproxy for
intercepting methods on objects. I'm trying to create code which can at
run time change what methods do what. So far, the only way I know of
doing this is with a RealProxy which parses the IMessage to call a
desired function.
I'm particularly concerned about performance, and it seems that the
TransparentProxy consumes vast amounts of resources, two orders of
magnitude, even if my RealProxy does nothing.
I made a small trivial performance suite to test different invocation
methods and interception techniques. It adds 1 to 40 as many times as
it can in 5 seconds. Results are as follows;
Direct: 66292785 counts
Direct MarshalByRefObj: 54974002
MethodInfo: 4242595
InvokeMethod: 3425953
Fake RealProxy: 581618
RealProxy: 266322
-Fake RealProxy is a InvokeMethod which calls a static test instance &
returns a pre-existing ReturnMessage. It does no thinking, just runs on
any InvokeMessage.
-Real Proxy calls RemotingServices.ExecuteMessage.
-I'm not sure if this will actually work, but i've included the sample.
Anyways, I'm wondering what alternatives are available.
I think IDynamicProperty/IDynamicMessageSink might have some similar
capabilities. I dont really understand either of these at all, and
havent found good docs either.
The other thing I was thinking of was generating wrapper assemblies.
Use reflection to parse in the entirity of a user's assembly, and emit a
wrapped version, and have the user's app read from the wrapped assembly.
I'm not sure how assemblies parallel to DLL's, but it follows the same
idea. The immediate problem I see with this is that anything within the
assembly wont be accessing the wrapped versions. If one class has an
instance of another class, it'll be the unwrapped version. Is there any
way around this? This is really my ideal solution.
Thanks
Myren
--------------030705080200040303030101
Content-Type: text/plain;
name="test.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="test.cs"
using System;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.Runtime.Remoting;
using System.Collections;
using System.Timers;
using System.Reflection;
namespace Test
{
public class RunTest
{
static Timer timer;
static int time;
static public int Main (string[] args)
{
long c;
sampleTest sample1 = new sampleTest();
MethodInfo[] ms = sample1.GetType().GetMethods();
for(int i=0;i<ms.Length;i++)
{
Console.WriteLine("Name of the Method is: |"+ms[i].Name+"|");
}
c = 0;
startTime();
while(time > 0)
{
sample1.doTest();
c++;
}
Console.WriteLine("Raw: {0}", c);
sampleTest sample2 = new sampleTest ();
MethodInfo m = sample2.GetType().GetMethod("doTest");
c = 0;
startTime();
while(time > 0)
{
m.Invoke(sample2, new object [] {});
c++;
}
Console.WriteLine("MethodInfo: {0}", c);
sampleTest sample3= new sampleTest();
Type t = typeof(sampleTest);
c = 0;
startTime();
while(time > 0)
{
t.InvokeMember("doTest", BindingFlags.Public | BindingFlags.InvokeMethod | BindingFlags.Instance, null, sample3, new object[] {});
c++;
}
Console.WriteLine("InvokeMethod: {0}", c);
sampleTestMarshal sample4 = new sampleTestMarshal ();
c = 0;
startTime();
while(time > 0)
{
sample4.doTest();
c++;
}
Console.WriteLine("Marshal: {0}", c);
DumpProxy proxy5 = new DumpProxy(typeof(sampleTestMarshal));
sampleTestMarshal sample5 = (sampleTestMarshal) proxy5.GetTransparentProxy();
c = 0;
startTime();
while (time > 0)
{
sample5.doTest();
c++;
}
Console.WriteLine("DeadProxy: {0}", c);
EmptyProxy proxy6 = new EmptyProxy(typeof(sampleTestMarshal));
sampleTestMarshal sample6 = (sampleTestMarshal) proxy6.GetTransparentProxy();
c = 0;
startTime();
while (time > 0)
{
sample6.doTest();
c++;
}
Console.WriteLine("EmptyProxy: {0}", c);
ExecProxy proxy7 = new ExecProxy(typeof(sampleTestMarshal));
sampleTestMarshal sample7 = (sampleTestMarshal) proxy7.GetTransparentProxy();
c = 0;
startTime();
while (time > 0)
{
sample7.doTest();
c++;
}
Console.WriteLine("ExecProxy: {0}", c);
TcpChannel chan = new TcpChannel(42090);
ChannelServices.RegisterChannel(chan);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(sampleTestMarshal), "test", WellKnownObjectMode.Singleton);
sampleTestMarshal sample8 = (sampleTestMarshal) Activator.GetObject(
typeof(sampleTestMarshal),
"tcp://localhost:42090/test");
if (sample8 == null)
Console.WriteLine("cannot locate server");
else
{
c = 0;
startTime();
while(time > 0)
{
sample8.doTest();
c++;
}
Console.WriteLine("TcpProxy: {0}", c);
}
sampleTest sample9;
c = 0;
startTime();
while(time > 0)
{
sample9 = new sampleTest();
sample9.doTest();
c++;
}
Console.WriteLine("New Sample: {0}", c);
Console.ReadLine();
return 0;
}
static public void timeInterval(object source, ElapsedEventArgs e)
{
if(time > 0)
time--;
else
timer.Enabled = false;
}
static public void startTime()
{
time = 5;
if(timer == null)
{
timer = new System.Timers.Timer();
timer.Elapsed += new ElapsedEventHandler(timeInterval);
}
timer.Interval = 1000;
timer.Enabled = true;
}
}
public class sampleTest
{
public sampleTest() {}
public void doTest()
{
int f= 0;
for(int i = 0; i < 40; ++i)
f += i;
}
}
public class sampleTestMarshal : MarshalByRefObject
{
public sampleTestMarshal() {}
public void doTest()
{
int f= 0;
for(int i = 0; i < 40; ++i)
f += i;
}
}
public class EmptyProxy : RealProxy
{
static sampleTest st;
public EmptyProxy (Type type)
: base(type)
{
st = new sampleTest ();
}
public override IMessage Invoke(IMessage msg)
{
st.doTest();
return new ReturnMessage(null, new object[] {}, 0, (LogicalCallContext)msg.Properties["__CallContext"], (IMethodCallMessage)msg);
}
}
public class DumpProxy : RealProxy
{
static sampleTest st;
static ReturnMessage rm;
public DumpProxy (Type type)
: base(type)
{
st = new sampleTest ();
}
public override IMessage Invoke(IMessage msg)
{
st.doTest();
if(rm == null)
rm = new ReturnMessage(null, new object[] {}, 0, (LogicalCallContext)msg.Properties["__CallContext"], (IMethodCallMessage)msg);
return rm;
}
}
public class ExecProxy : RealProxy
{
static sampleTestMarshal st;
public ExecProxy (Type type)
: base(type)
{
st = new sampleTestMarshal ();
}
public override IMessage Invoke(IMessage msg)
{
IMethodCallMessage myCallMessage = (IMethodCallMessage)msg;
IMethodReturnMessage myIMethodReturnMessage =
RemotingServices.ExecuteMessage(st, myCallMessage);
return myIMethodReturnMessage;
}
}
}
--------------030705080200040303030101-- Tag: GetTickCount call in Framework Tag: 92853
IsDate flaw/bug ?
In my project I'm using trying to use the IsDate function to check if the
user correctly formated the date in a textbox. The amount of time it takes
for the function to return a value initially is over 3 seconds.all
subsequent calls to the function take a fraction of a second. Does anyone
have an idea what might be going on? I supply some testing code i created
with the output below:
Dim t1, t2 as Long
t1 = Now.Ticks
If IsDate("12/50") Then Debug.WriteLine("this doesnt happen")
t2 = Now.Ticks
Debug.WriteLine("elapsed: " & ((t2 - t1) / Math.Pow(10, 7)))
t1 = Now.Ticks
If IsDate("12/50") Then Debug.WriteLine("this also doesnt happen")
t2 = Now.Ticks
Debug.WriteLine("elapsed: " & ((t2 - t1) / Math.Pow(10, 7)))
------------------------------------------------------------------------------
Output is:
elapsed: 3.296875
elapsed: 0
Any clarification would be greatly appreciated
-Alex Tag: GetTickCount call in Framework Tag: 92850
Bluetooth
Hi There,
I want to create an application that will communicate using bluetooth. Can
anyone direct me in to some documents regarding bluetooth programming in
.NET?
Josh Tag: GetTickCount call in Framework Tag: 92837
.NET Framework 2.0
I couldn't spot a better forum to post this. If there is one, then please
set me straight.
Can anyone point me at a good description of what's new in V2.0 of the
framework. There's assorted stuff around about changes to ASP and Visual
Studio, but I haven't seen a lot about the new framework itself, apart from
some on MSDN about generics. I also heard about improvements in Remoting
and Web Services.
Clearly this may change, but based upon beta 1 and recent CTP releases it
must be firming up.
Thanks
Tim Tag: GetTickCount call in Framework Tag: 92833
how to allow edit property in PropertyGrid with only Set method
Hi!
Within my class (say class A) I have read-only property returning reference
to object of type B (since I do not want other to assign another reference
to this property).
I have created a TypeConverter for class B and I want to allow users to
edit properties exposed by object B. And with subproperties its works fine,
but property within object A is still "grayed", so User cannot write string
value in this field. My GetCreateInstanceSupported() returs false, since I
do not want to create any new instance (thats why my B b {get;} has only Get
method), but I still want to allow users to edit properties of this object.
How to accomplish this functionality?
Thanks for any help!
GRTX,
Paul
<code>
public class A
{
B _b = new B();
public B b
{
get {return _b;} // Read Only, but I want users to edit _b properties
within PropertyGrid using TypeConverter
}
}
[TypeConverter(BTypeConverter)]
public class B
{
public int SomeProperty {get;set;}
}
</code> Tag: GetTickCount call in Framework Tag: 92830
A design pattern for managing the activation and deactivation of menus and buttons etc in an application
Hi all,
Does anyone know of a design pattern to deal with the issue of making UI
controls active and inactive according to the context of what the user is
doing?
I've been thinking about the best way to handle this but the only way I can
really think to do it would likely be very messy - trying to deal with it
in event handlers. I can imagine that trying to disable and enable buttons
and menu items and toolbars for a whole host of ui elements for a whole host
of different application contexts could be very messy.
Are there any particular approaches that i should be looking at to manage
the problem a bit better?
Thanks everyone
Simon Tag: GetTickCount call in Framework Tag: 92820
wierd exception Access to the path denied
hi,I get some marvelous error from my c# program again & again
:roll: , i guess it is a security exception error, so i disable
security with caspol -s off, give it full trust, copy it to hard
drive, copy it to cd drive, sign it with public/private key, in all
these cases i got the same exception, i use framework 1.1.4322. and
just want to read the file, not write to it, also i am admin of my
computer! and it is in the same directory. why i got this error?
below you can see the exception text.
access to the path "g:\saving document6.cad" is denied
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path "G:\saving
document6.cad" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at wordtraining.main.lessonup()
at wordtraining.main.lbxLesson_DoubleClick(Object sender, EventArgs
e)
at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
at System.Windows.Forms.ListBox.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&
m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&
m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
wordtraining
Assembly Version: 1.0.1249.40111
Win32 Version: 1.0.1249.40111
CodeBase:
file:///C:/Program%20Files/Rayan/wordtraining/wordtraining.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Management
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.management/1.0.5000.0__b03f5f7f11d50a3a/system.management.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
AxMP3PLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files/Rayan/wordtraining/AxMP3PLib.DLL
----------------------------------------
MP3PLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files/Rayan/wordtraining/MP3PLib.DLL
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com Tag: GetTickCount call in Framework Tag: 92816
Critical Bug Report in the JIT Engine of .NET Framework (v1.0/1.1/
This bug is not a common case and you might not have a chance to engage into
it. But when you're going to make an plus or minus operation with signed
integer, and the result is overflowed, there is a chance to crash into this
bug.
Please try this in C#:
Int32 i = Int32.MaxValue;
i += 10;
if (i < 0)
{
i = -i;
}
Console.WriteLine(i.ToString());
We expect the output to be a positive number. However, we got a negative
ones. In fact, the statement "if (i < 0)" failed and the statement "i = -i;"
wasn't executed at all! So the i remain negative still.
But when you use "Console.WriteLIne(i)" instead of "i.ToString()", the
program will just work correctly. So what happen?
I found that in the original code, the JIT will translate il "bge.s" to
native code "jge". When you use "Console.Writeline(i)" instead of
"i.ToString()", the same il will be translated into "jns". Please see the two
snapshot if you got confused:
http://www.cnblogs.com/images/cnblogs_com/sumtec/TestJit_01.JPG
http://www.cnblogs.com/images/cnblogs_com/sumtec/TestJit_02.JPG
When overflowed, the instruction "jge" and "jns" will not perform the same
logic.
When you're adding two integer and get overflowed, and *immediately*
followed by a "< 0" comparison (attn, not comparing to an non-const
variable), you'll get a chance to see the bug. However, you will not get
burned, unless you use the reference of variable "i" in the same function,
eg: "i.ToString()" or "AnotherFunction(ref i)".
One of my friend said that, not only when you use the reference of variable
"i" will cause the failure, but also some other cases. I guess when this
function uses ils like "ldloca.s" will cause the problem.
There is another similar case:
int i = int.Minimum;
i -= 10;
if (i > 0) ...
There's no public KB in MS now. (At least, I can not find it) And here is my
suggestion to work around the bug:
1. Becareful about the side effects of unchecked mathematics operations in
C#. Especially, when a comparison between the result and a const zero is
needed. If you're sure the operation should not result in overflowed, please
write codes like this:
checked
{
i += 10;
}
if (i<0) ...
2. Or, if you need this side effects, for example, you're writing a hashing
algorithm, please use the following style instead:
i += 10;
int b = i;
if (b < 0) ...
Any questions, please send email to sumtec@gmail.com. (I usually don't use
news group)
And if you're fortunately enough -- you can read Chinese, here is the
original text, and replying anything here is welcome:
http://www.cnblogs.com/sumtec/archive/2005/03/06/113748.aspx Tag: GetTickCount call in Framework Tag: 92814
How do I get my Computers SubNetMask?
Does anyone know how to get the local computer's SubNetMask, without using
WMI?
My computer's subnet mask is: 255.255.255.224, how do I get this?
Thanks
Russell Mangel Tag: GetTickCount call in Framework Tag: 92811
.NET Framework 1.1 (Redistributable?)
Hi all. I plan on testing out C# soon, and I'd like to first try it
without the full retail version, so that means I need to download the
SDK, etc. to compile the code.
Anyway, I'm a little confused about what I do and don't have at this
point. Recently I download Microsoft .NET Framework 1.1 (plus Service
Pack 1 and a hotfix to the SP1) from Windows Update. Is this the same
thing as the redistributable Framework? Is it the same as the SDK? If I
have only what I downloaded from Windows Update, what more do I need to
download in order to use C# without C# .NET Standard, or VS .NET?
Thanks. Tag: GetTickCount call in Framework Tag: 92810
"\n" does not work inside a textbox control class
Hi,
i am about to burst!!! how can i make my string break inside a textbox?
i mean with a control charater like "\n", but it does not work!
i have a string and i must set the wrap manuall, not controled by the
wordwrap property of the textbox. as i alread said: "\n" does not work!
Language s C#
how can i solve this.
Best Regards
Kerem Gümrükcü Tag: GetTickCount call in Framework Tag: 92808
Joining Datasets
I have to join datasets, what is the quickest way?
eg
ds1 = [1,2,3,4,5]
ds2=[4,5,8,9,20]
jds = [4,5];
ie the data common to ds1 and ds2 is inserted into jds..
I know I can loop ds1 and test but this will be slow, and I am wondering if
it is better to create a stored procedure which checks, or insert into temp
tables and then check with an SQL query, eg a join
I am using two datasets as an example but it can be several. Tag: GetTickCount call in Framework Tag: 92799
Thread never wakes up again if Application does not have focus
I have had this issue before and a check around the groups shows a few other
people have had this problem too with no real resolution.
I have a class that performs actions. These actions are performed
multi-threaded via a ThreadStart in the Main Form.
The method that performs this is in a while loop that never exits unless the
form exits. It will sleep for 30 seconds after it has performed its action
and then it will cycle through the loop again.
This works fine and dandy but it seems that if the application does not have
focus after multiple executions the thread goes to sleep and never wakes up.
This randomly happens after about 30-60 minutes of running in the
background.
I am wondering if anybody else has ever experienced this problem and
whether there were any fixes that they had come up with. Tag: GetTickCount call in Framework Tag: 92779
Net Framework Security pak 1.1 ALWAYS Fails .. Suggestions?
Hello, if I need to post in a different group please let me know.
Update fails, I tried to remove and reinstall but it wants 1.0 .. 1.0 is not
on the web
that i can find.. so here is the current error message:
Application has generated and exception that could not be handled. this is
from SL5E8F.tmp
Process id=0xc88 (3208), Thread id=0xf60 (3936)
I am running XP Home/SP2 and windows update tries to install Net.framework
service pak
1.1 security and fails. I have tried to un-install and re-install but it
ask for original disks... wth? I have an OEM installed system so here is no
"Net" disk. Do I have to totally re-install from scratch? Tag: GetTickCount call in Framework Tag: 92777
Remote IP Address
Could anybody please provide vb.net sample code of how an application
can discover its remote IP address? Note Remote as opposed to local
(not 192.168 etc). Bascially would like my application to know when my
broadband modem dynamic IP address changes. If not possible, does
anyone know of a web service api I could hook into to return my own ip?
Thanks,
Paul. Tag: GetTickCount call in Framework Tag: 92775
Hi,
Could someone tell me if there is a version of the GetTickCount api in the
.NET framework?
You might want to take a look at DateTime.Now.Ticks
--
Richard Grier (Microsoft Visual Basic MVP)
See www.hardandsoftware.net for contact information.
Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.