Framework XP
Hi all,
Is anyboby can explain me which are the main systems updates when you
install Framework on a Windows XP Workstation (Environement variables,
Dll, others ...) ?
Thanks a lot
nicolas Tag: How to bind DependentProperty to current date Tag: 134227
AJAX Problem. JavaScript not working if i push it to Updatepanel's content.
Hi all,
I am trying something using ASP.NET AJAX.
Using postback i am adding a JavaScript snippet and a DIV inside a
panel in UPdatePanel.The HTML is shown. The Javascript is written too.
But JavaScript is not working.
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Path="FusionCharts.js" />
</Scripts>
</asp:ScriptManager>
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<script language="javascript" type="text/javascript">
var XML="<chart/>";
</script>
<asp:Panel ID="p" runat="server" Height="262px"
Width="341px">
please click on the button</asp:Panel>
<asp:Button ID="Button1" runat="server"
OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server"
DisplayAfter="0">
<ProgressTemplate>
delay............................
</ProgressTemplate>
</asp:UpdateProgress>
</form>
<script language="javascript" type="text/javascript">
function pageLoad(){
alert($get('p').innerHTML);
}
</script>
</body>
</HTML>
---------------- CODE BEHIND --------------------
protected void Button1_Click(object sender, EventArgs e)
{
string str = "<div id='Update'>HI</div>";
str += "<script language='Javascript' type='text/
javascript'>document.getElementById('Update').innerHTML='latest
updated hiiiiiiiiiiii!!!';</script>";
System.Threading.Thread.Sleep(3000);
p.Controls.Add(new LiteralControl(str));
}
=================================================================
I am using the general ScriptManager coltrol and UpdatePanel that has
a PANEL having an id 'p'.
>From the server side postback i am changing this panel's HTML to
<div id='Update'>Hi</div><script language='Javascript' type='text/
javascript'> document.getElementById('Update').innerHTML='latest
updated hiiiiiiiiiiii!!!';</script>
I can see the div being parsed by the browser. But the <script> is not
taken care of by the browser.
PLease, please, please help me out of this.
Am i going wrong somewhere? IS there any way out?
Please help me.
- Arachnid Tag: How to bind DependentProperty to current date Tag: 134225
About drawing something on a Control.
i have added a Panel with size = (100, 100). Then i would like to draw
a Line on that Panel. So i write:
I write some codes on the OnPaint event of the Panel:
private void panel_Paint(...)
{
Graphics g = e.Graphics;
g.DrawLine(new Pen(Colors.Red, 6), new Point(0, 0), new Point(100,
100));
}
Then it can draw a line on the Panel, but when part of the Panel is
covered by other windows, the hope Panel will call OnPaint, and the
whole line will be redraw, is there any way to prevent it??Thanks Tag: How to bind DependentProperty to current date Tag: 134214
Strange .NET Runtime 2.0 error thrown in a WPF application
Has anyone seen a similar exception? This is a WPF application
installed via ClickOnce and we have one user who gets it consistently
on startup. We've also seen it occasionally while the applicaiton is
running. We've instrumented the application with exception handling in
most methods we have control over, but due to the nature of a WPF
application startup wiring (or our lack of knowledge), we haven't been
able to implement a 'catch all' handler, so we have no idea where this
is coming from.
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 10/4/2007
Time: 6:23:32 AM
User: N/A
Description:
EventType clr20r3, P1 ivory portal.exe, P2 1.0.2832.29459, P3
47043226, P4 presentationframework, P5 3.0.0.0, P6 45398c20, P7 6496,
P8 be, P9 system.windows.markup.xamlparse, P10 NIL. Tag: How to bind DependentProperty to current date Tag: 134208
FYI: .NET Source Code to Become Available
Hello,
for your information in case you didn't yet notice the news: Microsoft has
announced plans to give developers the ability to view .NET class library
source code. This is announced here:
http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx
Says the blog:
----------------
"...the ability for .NET developers to download and browse the source code
of the .NET Framework libraries, and to easily enable debugging support in
them. [...]
We'll begin by offering the source code (with source file comments included)
for the .NET Base Class Libraries (System, System.IO, System.Collections,
System.Configuration, System.Threading, System.Net, System.Security,
System.Runtime, System.Text, etc), ASP.NET (System.Web), Windows Forms
(System.Windows.Forms), ADO.NET (System.Data), XML (System.Xml), and WPF
(System.Windows). [...]
The source code will be released under the Microsoft Reference License
(MS-RL).
You'll be able to download the .NET Framework source libraries via a
standalone install (allowing you to use any text editor to browse it
locally). We will also provide integrated debugging support of it within VS
2008."
----------------
Sounds great to me!
Other posts related to this:
http://www.eweek.com/article2/0,1759,2191696,00.asp
http://www.regdeveloper.co.uk/2007/10/04/microsoft_dot_net_opensource_license/
--
Regards,
Mr. Jani Järvinen
C# MVP
Helsinki, Finland
janij@removethis.dystopia.fi
http://www.saunalahti.fi/janij/ Tag: How to bind DependentProperty to current date Tag: 134195
[WPF]: Tab Control and TabItem (focus?) woes....
Here is a XAML snippet (which would run in XAML Pad as well):
<TabControl>
<TabItem Header="One">
<TabControl>
<TabItem Header="OK">
<Button Content="OK"/>
</TabItem>
<TabItem Header="Not OK">
<Button Content="Not OK"/>
</TabItem>
</TabControl>
</TabItem>
<TabItem Header="Two">
<TabControl>
<TabControl.Template>
<ControlTemplate TargetType="{x:Type TabControl}">
<Grid KeyboardNavigation.TabNavigation="Local"
SnapsToDevicePixels="true" ClipToBounds="true">
<Grid.RowDefinitions>
<RowDefinition Name="RowDefinition0"
Height="Auto" />
<RowDefinition Name="RowDefinition1" Height="*"
/>
</Grid.RowDefinitions>
<DockPanel>
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal"
Name="HeaderPanel" ZIndex="1" KeyboardNavigation.TabIndex="1"
IsItemsHost="true" />
<Label Content="Something" />
</DockPanel>
<ContentPresenter Name="PART_SelectedContentHost"
Grid.Column="0" Grid.Row="1" SnapsToDevicePixels="{TemplateBinding
SnapsToDevicePixels}" Margin="{TemplateBinding Padding}"
ContentSource="SelectedContent" />
</Grid>
</ControlTemplate>
</TabControl.Template>
<TabItem Header="Apple">
<Button Content="One Apple a day, keep the doctors away"/>
</TabItem>
<TabItem Header="Carrot">
<Button Content="One carrot a day, ho well, nothing special"/>
</TabItem>
</TabControl>
</TabItem>
</TabControl>
Where every time you select the TabItem "Two" (in the toplevel tab) the
inner TabControl would change its selected item.
(every second time it will be "Apple" every other second time it will be
"Carrot")
Why does the inner tab changes?
How to work around this bug? Tag: How to bind DependentProperty to current date Tag: 134194
changing drive letters esp c:\
i tried to do an uograde from svr00 to svr03, i have a 3 phys hd (ide)
2 drives on a stripe (sata) and 2 scsi drives striped, now my boot.ini is
right
0/0/0/1, but it shows as my d (letter) drive, can i swap c and d?
--
rf Tag: How to bind DependentProperty to current date Tag: 134191
Embedded file to clipboard
Hi,
I have a file which I would like to put on the clipboard so that when it is
pasted in Word or WordPad the file appears as an embedded file. I can use
the RichTextBox to generate RichText with different formatting, add it to
the clipboard, and it appears fine when inserted in Word but I can't find
any methods
that allow me to insert an embedded file. Is there any way to do this?
/Andreas Tag: How to bind DependentProperty to current date Tag: 134172
Toolstrip and MDI application
I am trying to get write an MDI application running using the ToolStrip
control(s).
I have the application running with types of two form. Each form represents
a type of document. Each has its own custom menus and toolbars. The MDI
application runs up and I create new documents of each type. When a form is
activated, dot net merges the menus and the app I merge in the toolbars
using RevertMerge and Merge.
One of my forms has about 6 toolbars, the other has 2. When I switch between
the two document type, the toolbars change position; I activate form1, move
the toolbars using the mouse, activate form2, then switch back to form1- the
toolbars have moved.
I am also having problems saving and restoring the positions of the toolbars
using ToolStripManager.LoadSettings and ToolStripManager.SaveSettings. This
showing the same behaviour (although it may be caused simply by switching
between the windows).
Has anyone successfully implemented an MDI app using these controls?
I have a test app if anyone would like to see it - where the best place to
post it?
Paul Wardle Tag: How to bind DependentProperty to current date Tag: 134152
How to call C# callbacks from C++/CLI?
Hi,
Tried searching Google on this topic but not many came up. Basically I
have a C# GUI client that wants to receive 'notifications' from a worker DLL
(which is implemented in C++/CLI). So far, from C# I am able to call any
method directly in C++/CLI DLL. But I would like to have the C++/CLI invoke
some callback methods from within C# (some event notifications so that the
GUI updates its UI).
In the old days using C/C++, I could do this easily by passing a class
object ptr to the DLL and have it invoke callback methods declared in that
class. Can I do the same thing in .NET? Since there is no header file, I
don't know how to 'tell' the C++/CLI component which C# callback methods to
use. Thanks. Tag: How to bind DependentProperty to current date Tag: 134148
Fatal Execuation Error - any workarounds available? or help debugg
We have a .NET application using Windows Forms. This application terminates
unexpectedly once or twice a day for our customers. The following entry is
listed in the event log:
.NET Runtime version 2.0.50727.832 - Fatal Execution Engine Error (7A0592A2)
(80131506)
This problem appears to have started recently in the past 1 or 2 months. Is
this a known issue, and if so, are there any workarounds?
I am really at a loss as to how to deal with this problem.
How do you suggest I go about debugging or troubleshooting this issue? Tag: How to bind DependentProperty to current date Tag: 134147
If you want do delete your site from our spam bases -
If you want do delete your site from our spam bases - just email us with domain of your site:
abuse-here@inbox.ru
thank you!,If you want do delete your site from our spam bases - just email us with domain of your site:
abuse-here@inbox.ru
thank you!,If you want do delete your site from our spam bases - just email us with domain of your site:
abuse-here@inbox.ru
thank you! Tag: How to bind DependentProperty to current date Tag: 134138
Using a Broadcast message on an intranet
Hi:
I need a way to make sure that only one instance of a program is running
on a particular intranet. I thought that some kind of Broadcast message
might do the trick, or maybe a UDP query. I'm using a WinForms
application on .NET 2.0
Can anyone help me with this?
TIA,
Martin. Tag: How to bind DependentProperty to current date Tag: 134137
Updates to .NET Framework 3.0
Hi
I have installed the 3.0 version on all clients in the network managed by
WSUS.
On just one client the
- KB932394
- KB932471
patches just don't install. They are offered over and over again and always
quit installing with error.
I have tried to reinstall NET Framework 3.0 but it did not help.
Someone an idea?
Thanks, Franz Tag: How to bind DependentProperty to current date Tag: 134134
ReplacerStream
Hi,
I need to use a stream that I can configur to replace some input
string with another. It is probably not very difficult to do but I
can't imagine that this has not been written dozens of times before.
However I can't find something like it on the internet. Does anyone
know of such an example or has code? Or should I be creating an
impelementation of TextWriter/Reader in stead of of Stream?
Regards,
Henk Tag: How to bind DependentProperty to current date Tag: 134132
XAML, dynamically created RadioButton, and WordWrap?
I have an app that presents a variable number of radio buttons (with
variable text) that are created dynamically on a HeaderedItemsControl. As
far as I can tell, the RadioButton doesn't supports (word or otherwise)
wrapping, but will present multiple lines of text, so I could implement word
wrapping by inserting NewLine(s) if I could just determine how wide my text
is... It is occasionally too wide for a single line, and could
theoretically be several lines.
I would *really* like to do this when I create the controls and assign the
texts and handlers (this is after the window has been shown), but while I
can get the initial DesiredSize AND the first iteration after that, it seems
I can't get there from here: It won't tell me the size until the layout is
final - but the layout won't be final until I know the size of my display
text.
What can I do (.Net 2.0 w/FW 3.0, VB preferred, but except for some
differences in threading and delegates, I can deal with C#)?
TIA,
Tore Tag: How to bind DependentProperty to current date Tag: 134127
Bug using ISurrogateSelector
Hi All,
The bug discussed here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=194553&SiteID=1
And reported here:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=93814
It says fixed. Does anyone know where to get the fixed? Or any workarounds?
Thank you.
Regards,
Paul Tham Tag: How to bind DependentProperty to current date Tag: 134125
Accessing UNC file share with credentials?
From a .NET 1.1 app: need to access a file share on a remote server by
its UNC path, i.e., \\server\folder\subfolder\, using specific
username and password.
The problem is that the credentials are local to the remote server.
Therefore, impersonating that user when accessing the share is not
possible.
One solution is to map a network drive using the credentials, but it
seems kind of ugly and old school.
Is there any other way?
Thanks! Tag: How to bind DependentProperty to current date Tag: 134121
SMTP Email Not Working from Application_Error handler in ASP.NET 2
I have an ASP.NET 2.0 Web Application. I am trying to send an email to
myself from Global.asax in the Application_Error event handler. I have been
able to successfully send emails from the rest of the application using the
exact same logic. For some reason, it does not work in global.asax. I get a
"Failure Sending Mail" error message with a more detailed explanation of
"Unable to read data from the transport connection: An existing connection
was forcibly closed by the remote host.". This is in a hosted environment,
and it IS working for other pages in the app (making me think I need to do
something different in the Application_Error function).
I get this problem any time an error is thrown within the application and
the Application_Error event handler is called. I have a site in production,
and to test the error handling in production, I have created a button with an
event handler that when clicked will throw an exception. I have tested it by
adding "throw new ApplicationException("This is a test exception being
thrown...");" and by throwing a named exception "throw new
DivideByZeroException();". It seems as if in the Application_Error function
the network connection is in an unstable condition.
I am using the System.Net.Mail class. Below is my code and the detailed
error (notice I have some general information stored in web.config which is
pasted below as well):
GLOBAL.ASAX
--------------------------------------------------------
void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
Exception ex = Server.GetLastError();
string strEmailAddressTo = "myemail@test.com";
string strEmailAddressFrom = "myemail@test.com";
string ErrorMessage = ex.Message +
"\nSOURCE: " + ex.Source +
"\nFORM: " + Request.Form.ToString() +
"\nQUERYSTRING: " +
Request.QueryString.ToString() +
"\nTARGETSITE: " + ex.TargetSite +
"\nSTACKTRACE: " + ex.StackTrace;
//1) Create the mail message instance
MailMessage mm = new MailMessage(strEmailAddressFrom,
strEmailAddressTo);
//2) Assign the Mail Message's Properties
// Subject
mm.Subject = "ERROR OCCURRED";
//3) Body
mm.Body = ErrorMessage.ToString();
mm.IsBodyHtml = false;
//4) Create the SMTP Client Object
SmtpClient smtp = new SmtpClient();
//5) Send the mail message (will use the web.config settings)
smtp.Send(mm);
}
web.config
------------------------------------------------------------
<system.net>
<mailSettings>
<smtp>
<network host="[mynetworkHost]" port="25" />
</smtp>
</mailSettings>
</system.net>
DETAILED ERROR MESSAGE:
-------------------------------------------------------------
<ExceptionInformation><AdditionalInformationProperty
ExceptionManager.MachineName="XXXXX" ExceptionManager.TimeStamp="10/2/2007
1:32:25 AM"
ExceptionManager.FullName="Microsoft.ApplicationBlocks.ExceptionManagement,
Version=1.0.2830.35366, Culture=neutral, PublicKeyToken=null"
ExceptionManager.AppDomainName="/LM/w3svc/814863/root-11-128357766911129800"
ExceptionManager.ThreadIdentity="" ExceptionManager.WindowsIdentity="NT
AUTHORITY\NETWORK SERVICE" /><Exception
ExceptionType="System.Net.Mail.SmtpException" StatusCode="GeneralFailure"
Message="Failure sending mail."
Data="System.Collections.ListDictionaryInternal" TargetSite="Void
Send(System.Net.Mail.MailMessage)" Source="System"><StackTrace> at
System.Net.Mail.SmtpClient.Send(MailMessage message)
in \\[webpath]\web\Global.asax:line 101</StackTrace><Exception
ExceptionType="System.IO.IOException" Message="Unable to read data from the
transport connection: An existing connection was forcibly closed by the
remote host." Data="System.Collections.ListDictionaryInternal"
TargetSite="Int32 Read(Byte[], Int32, Int32)" Source="System"><StackTrace>
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32
size)
at System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32
count)
at System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32
count)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader
caller, Boolean oneLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
at System.Net.Mail.SmtpReplyReader.ReadLine()
at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
at System.Net.Mail.DataStopCommand.Send(SmtpConnection conn)
at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args)
at System.Net.ClosableStream.Close()
at System.Net.Mail.MailWriter.Close()
at System.Net.Mail.SmtpClient.Send(MailMessage
message)</StackTrace><Exception
ExceptionType="System.Net.Sockets.SocketException" ErrorCode="10054"
SocketErrorCode="ConnectionReset" NativeErrorCode="10054" Message="An
existing connection was forcibly closed by the remote host"
Data="System.Collections.ListDictionaryInternal" TargetSite="Int32
Receive(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)"
Source="System"><StackTrace> at System.Net.Sockets.Socket.Receive(Byte[]
buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset,
Int32
size)</StackTrace></Exception></Exception></Exception></ExceptionInformation>
--
PK9
--
PK9 Tag: How to bind DependentProperty to current date Tag: 134118
Data structure with an insert after element method?
I'm sort of new to .NET, and was wondering if there was any kind of
dynamic data structure that allowed one to add an element after a
specified element (and therefore update the array index)?
I was looking at ArrayList, but I didn't see any such methods for this. Tag: How to bind DependentProperty to current date Tag: 134117
Can I install v2 without v1.1? (XP Pro)
I am running XP Pro/SP2.
I recently had dotNet Framework v1.1 and v2 but an update error on v2
meant I had to uninstall both of them.
http://support.microsoft.com/kb/923100/
Can I now install only v2?
Or should I install v1.1 first and then the hotfixes for v1.1? Tag: How to bind DependentProperty to current date Tag: 134116
3.0 NET Framework
Can someone give me an installation checklist of what needs to be installed
(and in what order - if applicable) into a system that already has VS 2005
Pro., so that .NET 3.0 features can be used within VS 2005 (WF, WPF, WCF)?
Also, I need to know what is needed to work with the Enterprise Library 3.1
(besides the library instal itself), if anything.
Thanks! Tag: How to bind DependentProperty to current date Tag: 134110
Can we print files directly?
Hello, friends,
In our c#.net windows app, we want to print document (.jpg, .doc, .xls,
etc.) to the selected printer without opening the corresponding app, e.g.
MSPaint for .jpg or Word for .doc.
Is that possible to do this way? Thanks. Tag: How to bind DependentProperty to current date Tag: 134104
Registering a COM Dll with an MSI
I'm creating an installer for a project that I've created. My project is a
Managed C++ 2005 project, and it compiles out to a COM Dll. I need to
register this COM Dll in order for the final product to function properly.
Initially I tried registering the Project Output, but I understand that there
are issues with doing that, so I have excluded the Primary Output for my
project, and I have added the dll from my Release folder directly. In the
properties for my Dll I have set the Register property to
vsdraCOMReleativePath, but I have also tried vsdraCOM, in both cases the dll
does not register on the target machine. If I run regsvr32 on the target
machine my dll will register and the application will work. Does anyone have
any suggestions on how to get this work correctly. I appreciate any help.
I should also probably point out that I did not remove the Primary Output,
because I like how the MSI project will automatically determine the
dependencies if the Primary Output is with the MSI. I only excluded the
Primary Output. Tag: How to bind DependentProperty to current date Tag: 134101
Framework 3.5 mailMessage serializable.
I have to rewrite an email archiving application. I was wondering if in .net
3.0 or 3.5 whether the mailMessage was serializable. I know in 2.0 it is not. Tag: How to bind DependentProperty to current date Tag: 134099
Binary editor
Hi group,
In VS2005, when you open a binary file, you can use the binar editor.
So you can see for each adress (in Hexa) the 16 bytes in Hexa and the
same 16 bytes in ascii. When you select some bytes in hexa it select
also the same bytes in ASCII.
Is there any .Net Control doing the same ?
I can't found it !
ROM. Tag: How to bind DependentProperty to current date Tag: 134098
Where's the version info?
I am having a problem with version information in one of my compact
framework 2.0 VB.Net application which I am designing in Visual Studio
2005. After I compile the executable there is no version information
available when viewing the file's properties in Windows.
All my other projects have version information which is visible in
Windows but I can't see any difference between these other projects
and the one in question.
Any ideas? Tag: How to bind DependentProperty to current date Tag: 134083
What is the difference between Dispose and close methods.
Hi all,
I am a bit confused about dispose and close methods. I will be glad if
anyone explain the difference between them to me. Do they have relation with
finalize method.
Thanks
Bhuwan Tag: How to bind DependentProperty to current date Tag: 134080
process::GetProcessesByName and process::kill combination not working
Am writing a console program that closes a particular application and
restarts it every time interval
Now my problem is the first time around it works fine but
from the second time it just doesnt do any thing
void ppstop()
{int i;
Process* localByName2[] = Process::GetProcessesByName(S"iexplore");
i=0;
if(localByName2->Length!=0){
while(i<=localByName2->Length) {
if(localByName2->Length!=i){
localByName2[i]->Kill();
localByName2[i]->Dispose();
i++;
Console::WriteLine(S"Killing perl");}
}
}
}
this is called from a loop that call this very 10 minutes so closses
all IE windows first time it works fine from the second time nothing
happens
do i need to do some thing like clear the instance i got or i dont
know even if we try another process the second time around it wont
work
what am i doing wrong here
thanking you in advance
Vysakh Tag: How to bind DependentProperty to current date Tag: 134079
.net framework version, visual studio '03
I am developing in VS '03. I have all of the current framework
versions installed on my PC, 1.1, 2.0, and 3.0.
How can I make sure the code I am developing in is using the 3.0
framework version? Or do I need to be using the latest version of
Visual Studio to do so?
Thanks,
Jason Tag: How to bind DependentProperty to current date Tag: 134070
How can I get exact digits of a decimal value
Hi;
I store decimal values in ms sql server 2005 of type decimal (28,14). When I
try to get values from that field, for example "566.68015492220000000" with
the code
string temp=myReader["total"].ToString();
I get the value "566.68010000000000000", I mean I get the value with only
few digits of precision.
What should I do to get the exact value from db?
Thanks a lot... Tag: How to bind DependentProperty to current date Tag: 134062
Web based timesheet in $100 (unlimited users)
LiveTecs releases 2.3 suite of its Enterprise software
http://www.livetecs.com
(Source code : available)
TimeLive Web Collaboration Suite is an integrated suite that allows you to
manage project life cycle including tasks, issues, timesheet, billing,
expense, attendance.
TimeLive is available in two different flavors. Hosted version and
downloadable version. Downloadable version required certain system
requirement to install on local server. Whereas hosted version is already
installed on our fully managed server on state of art datacenter.
Free Lite version is available in both hosted and installable version.
Here are some key features of "TimeLive":
Online TimeSheet·
-------------------
· Track your contractor and employee's timesheet using full featured and
easy to use Time Entry tool. You can then use detailed and summarized view
of all time records using different tools.
· Time Entry Day View for entering full day timesheet in just one server
hit.
· Time Entry Week View for entering full week timesheet in just one server
hit.
· Organization setup like Departments, Locations, Roles
· Different type of Off day monitoring like Sick Days, Vacations etc.
· Client Setup
· Project Setup
· Task setup with multiple assignees for single task.
· Audit Trail
· EMail notification of different timesheet related activities to users.
· Different billing type setup like Hourly / Task based / Call based
· Timesheet approval
· Four Timesheet Approval Paths (None,Administrator,Project,TeamLead)
· Reports with all possible filter selection to get your required output.
· Detail Timesheet Report
· Different timesheet summary reports for based on Client, Project,
Employee, Date
· Timesheet Approval status report
· Reminders to employee for their pending entries.
. Role wise billing rates.
Attendance
------------
· Web based Attendance system to record and monitor all employee attendance
using simple / fully featured tool.
· Time In
· Time Out
· Off Day reporting for different purpose like Sick leave, vacation etc
· Working Day setup
· Daily Attendance report
· Summary reports for employee off days to track employee Sick
leave,vacation etc.
· Detail report employee off days.
Expenses Tracking
------------------
· Manage and monitor your project expenses with easy to use integrated
TimeLive Expense management tools.
· Expense entry view for employee to enter their expenses occurred on
project.
· Billable / Unbillable expenses.
· Detail Reports for monitoring expenses
· Different summarize report by Project / Employee / Expenses.
· Approval of Expenses with 4 different confiurable approval paths.
· -- No Approval
· -- Team Lead
· -- Team Lead --> Project Manager
· -- Team Lead --> Project Manager --> Administrator.
· Expenses approval monitoring.
Project Monitoring
---------------------
· Full featured tool to manage your projects and their task with single
integrated tool.
· Nested Task with task hierarchy.
· Tracking of project status
· Assigning of projects to multiple employee
· Tracking of project tasks
· Different dashboard view for Project Manager, Team Lead and Team Member.
· Different report to track and monitor overall project status.
Other Features
----------------
· Exportable reports in PDF and XLS file.
· Downloadable / Hosted version
· Free basic version
· Unlimited disk space for all plans
. International date formats supported.
. Role based security.
. Multiple currency support. Tag: How to bind DependentProperty to current date Tag: 134057
Differing XML Schemas?
If I use the Dataset.WriteXml for my datasets from a windows
application running under the framework v1.1 the schema written to the
text files sometimes differs from that of the same dataset written
from a WebService. Both projects use the same library to generate the
dataset and write it to file.
When the windows application writes the file it contains
msdata:locale=enGB but this tags is missing when the file is generated
by the WebService. Also this behaviour only happens at some sites
where our software is installed. My development PC doesn't experience
this problem.
Any ideas?
Cheers, Gareth Tag: How to bind DependentProperty to current date Tag: 134056
.NET code compiled as Any CPU. Want to run as 32-bit on x64.
Hi,
I have some .NET 2.0 code that's been built targeting "Any CPU". On an
x64 box I need to force this to run in x86 mode under WOW64 *without*
recompiling the application . (i.e. as if the code had been compiled
targeting x86.)
Is this possible - if so, how?
(Apologies if this is not the correct group - feel free to direct me
somewhere else)
Many thanks,
Matt Tag: How to bind DependentProperty to current date Tag: 134049
Collections od KEYS only : BOOLEAN VS OBJECT, False Vs Null/Nothing
In a previous question I asked if there were collections
similar to SortedList or Dictionary which would hold KEYS only, No
values.
It seems that the framework does not have such "reduced" collections,
but one can use
the standard one, adding as value a Null/Nothing value or a boolean
(of creating a collection
by inheritance).
I am wondering what is most advisable to use as type for the values:
Boolean or Object ?
For instance:
C#
SortedList<MyKey, bool> MyListB = new SortedList<MyKey, bool>();
MyListB.add(new MyKey(), false);
or
SortedList<MyKey, object> MyListO = new SortedList<MyKey, object>();
MyListO.add(new MyKey(), null);
VB
dim MyListB as new SortedList(of MyKey, Boolean)
MyListB.add(New MyKey, false)
or
dim MyListO as new SortedList(of MyKey, Object)
MyListO.add(New MyKey, Nothing)
I am wondering if using a value type (boolean) instead of a reference
type
would be more inefficient ? Your opinion ?
-P Tag: How to bind DependentProperty to current date Tag: 134048
Application failed to initialize (0xc000007b). Click OK to termina
Hi
I'm currently having problems with running application compiled in VS 2005 C#.
The application build + compiles fine, but as soon as it run the error I get
the following error message, "Application failed to initialize (0xc000007b).
Click OK to terminate." When I run the .exe on its own it also gives me the
same problem. I've tried it with both console and window form applications.
I've googled this problem they specify that a .exe or .dll is corrupted. But
I've reinstalled both my VS2005 and .NET framework. I've even formatted my
partition and reinstalled my OS from scratch and I still get the same
problem. I'm currently running Windows XP SP2 and Visual Studio 2005. All my
other existing applications runs fine.
Any help will be appreciated.
Regards
Rudolph Tag: How to bind DependentProperty to current date Tag: 134047
problem with System.OutOfMemoryException
In my code I am manipulating/creating/destroying in memory representation of
big XML file (as in a few MB of CDATA in them (embeded bitmaps)).
At some stage (and I am in no way under any memory stress as my application
is using only about 500MB of memory and I have 1GB free, without counting
the virtual memory) I have this out of memory exception happening, in code
snippet looking like that:
=====
public static void WriteXml(System.Xml.XmlWriter writer,
IEnumerable<string> resources, IResourceProvider provider)
{
writer.WriteStartElement("Resources");
writer.WriteElementString("ResourceProvider", provider.ID.ToString());
List<string> resourcesWritten = new List<string>();
foreach (string resource in resources)
{
if (resourcesWritten.Contains(resource))
continue;
writer.WriteStartElement("Resource");
byte[] data = provider.LoadData(resource);
writer.WriteElementString("ResourceName", resource);
string b64Data = Convert.ToBase64String(data);
// ========== OutOfMemoryException below
writer.WriteElementString("base64Data", b64Data);
writer.WriteEndElement();
resourcesWritten.Add(resource);
}
writer.WriteEndElement();
}
=====
the error stack is:
====
System.Xml.dll!System.Xml.XmlWellFormedWriter.WriteString(string text) +
0x55 bytes
System.Xml.dll!System.Xml.XmlWriter.WriteElementString(string localName,
string ns, string value) + 0x29 bytes
System.Xml.dll!System.Xml.XmlWriter.WriteElementString(string localName,
string value) + 0xb bytes
> NovaMind.Data3.dll!NovaMind.Data.ResourcesHelper.WriteXml(System.Xml.XmlWriter
> writer = {System.Xml.XmlWellFormedWriter},
> System.Collections.Generic.IEnumerable<string> resources =
> {NovaMind.Data.NMMapBranch.get_ResourcesInUse},
> NovaMind.Data.IResourceProvider provider =
> {NovaMind.Data.NMDocumentPackage}) Line 27 + 0x13 bytes C#
====
When I look at the internal of the various object involved with the debugger
I could see that:
data.Length ~= 7 Mb (~ 7 e+6)
and "Writer" is wrapper around a StringBuilder which MaxCapacity is around 2
GB (2e+9) and which current Length is "only" about 25 Mb (25e+6).
Now, all these numbers are huge I agree, however my memory isn't stressed at
all (i still used much less than my physical memory, virtual memory
notwithstanding)).
Any idea why I have OutOfMemory exceptions? how to get rid of them? Tag: How to bind DependentProperty to current date Tag: 134045
Printer ports not recognized
I removed the virus Vundo and now my printer ports are not recognized. My
windows installer is also not working. How can I fix? Tag: How to bind DependentProperty to current date Tag: 134042
Migrated SQL Express to a viable DB. Easy? Hard?
I haven't been able to play in ASP.net 2.0 as much as I'd have liked to this
past year. I'm going to start a new project from scratch in 2.0, however, so
am looking forward to that.
I'd like to know how hard would it be to built the solution locally using
the built-in SQL Express, and then migrated that to the product server? Is
it a rather simply process? Complex? Any specific guides/tutorials on how to
do it?
Ideally I'd be going to from Express to MS SQL, but what if I went to MySQL?
Still viable? Of coruse, if I was using MySQL, I suppose I could just
install that locally.
-Darrel Tag: How to bind DependentProperty to current date Tag: 134034
Global CBT Hooking
Hello,
I'm developing an application which relies heavily on global hooks and
apparently C# does not support this type of hooking. What I have in mind is
to make a dll (in Delphi) that handle all the hooking and call a user
defined c# function for further handling, is this possible, could I link the
dll function with the C# function without any complication?
I considered moving the whole project to Delphi, the Visual Sudio IDE was
the only thing keeping me from doing so. Should I use C# for this type of
project or should I consider other alternatives, as hooking in Delphi is
straightforward.
Thanks
Yehia A.Salam Tag: How to bind DependentProperty to current date Tag: 134033
Temporary Internet Files.
Does it speed up your computer if you delete your Temporary Internet Files &
how often should you delete them. Also,would there be anything in the files
that are important that you need to keep. Please humour me! Thanks. Tag: How to bind DependentProperty to current date Tag: 134030
HELP - Why are Worker thread's child thread's entering WaitSleepJoin? Plus Context Deadlock....
Using VS2005, VB.NET,
I have a worker thread (started by main UI thread) that in turn
spawns
and monitors child threads to execute several long running process.
The problem is that the worker thread's children are entering
WaitSleepJoin and thus my worker thread just hangs doing nothing and
just loops. My question is why are my child thread's entering
waitsleepjoin state? There is no sleep or spinwait being called in
the
child's thred process.
Also, I am getting the dreaded content deadlock and con't figure out
why:
The CLR has been unable to transition from COM context 0x1d1ba0 to
COM
context 0x1d1e80 for 60 seconds. The thread that owns the destination
context/apartment is most likely either doing a non pumping wait or
processing a very long running operation without pumping Windows
messages. This situation generally has a negative performance impact
and may even lead to the application becoming non responsive or
memory
usage accumulating continually over time. To avoid this problem, all
single threaded apartment (STA) threads should use pumping wait
primitives (such as CoWaitForMultipleHandles) and routinely pump
messages during long running operations.
The deadlock even happens if the code in StartUpload (worker thread's
process - see full lisiting below) executes to the end (which I
thought would cause the worked thread to Stop). How can I determine
where the deadlock is? BTW, I've tried diabling MDA's LoadLock
exception and adding a ...mda.config file to no avail (I don't think
that VS is starting the debugger starting the MDA erronously).
Beow are some code excerpts that show (1) the start of the worker
thread; (2) code in the work thread's proc that spawns and monitors
child threads and (3) the child thread proc. Let me know if you see
any problems.
One thing I'm not sure about - that's is the number of event's that I
am raising. These events are handled in my main UI thread so the user
can get status updates. The event handlers are invoking delegate
functions (so they run on the main UI thread) using BeginInvoke in
attempts to avoid blocking on the RaiseEvent calls in the worker
thread.
Selected code excerpts follow:
---------------------------------------------------------------------------=
=AD-------------------------------
Private Sub btnUpload_Click(ByVal sender As System.Object, ByVal
e
As System.EventArgs) Handles btnUpload.Click
Try
Dim xRoot As XmlElement =3D xDataDocument.DocumentElement
'xDataDocument is an XML having info about audio files...
Dim xNodeList As XmlNodeList =3D xRoot.SelectNodes("//
audioFile[bConvertedToMp3=3D'true' and bUploaded=3D'false']/strFilename")
'gets a list of all the files that need to be uploaded to the
server...
If xNodeList Is Nothing OrElse xNodeList.Count <=3D 0 Then
Else
Me.Uploader =3D New Upload(Me.strCI_Id, xNodeList)
'Me.Uploader.StartUpload() 'COMMENTED OUT, NOW RUNS N
SEPERATE WORKED THREAD
Me.tUpload =3D New Thread(New ThreadStart(AddressOf
Me.Uploader.StartUpload))
Me.tUpload.Priority =3D ThreadPriority.Normal
Me.tUpload.SetApartmentState(ApartmentState.STA)
Me.tUpload.Start() 'STARTS THE WORKER THREAD
End If
xNodeList =3D Nothing
Catch ex As Exception
Debug.WriteLine(ex.Message & vbNewLine & ex.StackTrace)
'TODO handle upload error
End Try
End Sub
---------------------------------------------------------------------------=
=AD-------------------------------
Public Sub StartUpload()
'Private Sub Process_Upload()
If Me.xNodeList Is Nothing OrElse Me.xNodeList.Count <=3D 0
Then
Throw New Exception("No files to upload (xNodeList is
empty)")
Else
Try
Me.bRunning =3D True
RaiseEvent DisableUploadAction() 'ALL RAISED EVENTS
ARE INVOKED USING BeginInvoke (asynchronously) TO AVOID BLOCKING
WHILE
THE UI GETS UPDATED
RaiseEvent ChangeUploadButtonTooltip("Uploading
file(s)")
Dim intNumberFiles =3D Me.BuildUploadDataSet()
'Converts
xNodeList to a DataSet so we can just send an XML string up to the
server..
RaiseEvent StatusChange("Starting upload of " &
intNumberFiles & " file" & IIf(intNumberFiles =3D 1, "", "s"))
'Send upload list to the server, get a confirmation
list back...
Dim objWebService As New myWebServiceClass
Try
Me.strUploadFileList =3D
objWebService.UploadFileList(strCI_Id, dsUpload.GetXml)
Catch ex As Exception
Debug.WriteLine(ex.Message & vbNewLine &
ex.StackTrace)
Throw ex
End Try
If InStr(Me.strUploadFileList.ToUpper, "ERROR") =3D 1
Then
RaiseEvent StatusChange("Error registering upload
file list for CIID=3D" & strCI_Id & "..." & Replace(strUploadFileList,
"ERROR", ""))
Throw New Exception("Error registering upload
request for CIID=3D" & strCI_Id & "..." & Replace(strUploadFileList,
"ERROR", ""))
Else
Try
Dim dsFileList As DataSet =3D New DataSet
Dim srReader As New
StringReader(Me.strUploadFileList)
dsFileList.ReadXml(srReader,
XmlReadMode.InferSchema) 'read the strUploadFileList into a dataset
for easies processing below...
Dim dr As DataRow
Dim intFileSize As Int32 =3D 0
Dim intSecs As Double =3D 0
Dim dblProgress As Double =3D 0
Dim strMessage As String =3D Nothing
Dim bProgress As Boolean =3D True
For i As Int32 =3D 0 To
dsFileList.Tables(0).Rows.Count - 1 'For each file in the upload
list....
strMessage =3D "Uploading file " & i + 1 &
"
of " & dsFileList.Tables(0).Rows.Count
RaiseEvent StatusChange(strMessage)
dr =3D dsFileList.Tables(0).Rows(i)
Me.strUploadFileName =3D dr.Item(0)
'If the file has no specified path,
assume
it is in the interview folder
If InStr(Me.strUploadFileName, "\") =3D 0
Then Me.strUploadFileName =3D STR_INTERVIEW & Me.strUploadFileName
Me.dblBytesPerSecond =3D
Me.GetUploadBytesPerSecond() 'Based on past history, speculate an
upload speed in bytes/second
Try
intFileSize =3D
My.Computer.FileSystem.GetFileInfo(Me.strUploadFileName).Length
bProgress =3D True
Catch ex As FileNotFoundException
bProgress =3D False
End Try
tsUploadStart =3D Nothing
tsUploadEnd =3D Nothing
Try 'HERE IS WHERE I KICK OFF THE WORK
THREAD'S CHILDREN
If Not Me.tUpload Is Nothing AndAlso
Me.tUpload.IsAlive Then Me.tUpload.Abort()
Me.tUpload =3D Nothing
Me.tUpload =3D New Thread(New
ThreadStart(AddressOf Me.Process_UploadFile))
Me.tUpload.SetApartmentState(ApartmentState.STA)
Me.tUpload.Priority =3D
ThreadPriority.Normal
Me.tUpload.IsBackground =3D True 'Set
this thread to end with parent thread
Me.tUpload.Start()
Catch ex As Exception
Debug.WriteLine("launch of upload
thread failed..." & vbNewLine & ex.Message & vbNewLine &
ex.StackTrace)
If Not Me.tUpload Is Nothing AndAlso
Me.tUpload.IsAlive Then Me.tUpload.Abort()
Me.tUpload =3D Nothing
'TODO log failure of upload thread...
Continue For 'Skip this file...
'Throw ex
End Try
Try 'ESTIMATE THE PROGRESS OF THE WORKER
THREAD WHILE CHECKING ITS THREADSTATE...
While Me.tsUploadStart =3D Nothing
OrElse (Me.tUpload.ThreadState And Threading.ThreadState.Unstarted) =3D
Threading.ThreadState.Unstarted
Thread.Sleep(5) 'wait for thread
to start...
End While
While (Me.tUpload.ThreadState And
Threading.ThreadState.Stopped) =3D 0
'If Me.tUpload.ThreadState And
Threading.ThreadState.WaitSleepJoin =3D
Threading.ThreadState.WaitSleepJoin Then Me.tUpload.Interrupt() 'IS
this what I need todo to get avoid the waitsleepjoin? Why did the
child thread go to sleep?
intSecs =3D ((New
TimeSpan(Now.Ticks)).TotalMilliseconds -
Me.tsUploadStart.TotalMilliseconds) / 1000.0
If bProgress Then
If Me.dblBytesPerSecond =3D 0
Then
dblProgress =3D intSecs /
(intFileSize / (0.8 * 32.768)) 'default upload speed to to 80% of
~262kbps ~=3D 32.768K/sec (typical upload speed of cable modem)
Else
dblProgress =3D intSecs /
(intFileSize / Me.dblBytesPerSecond)
End If
If dblProgress > 0.99 Then
dblProgress =3D 0.99
RaiseEvent
StatusChange(strMessage & ", " & Format(dblProgress, "0.#%") & New
String(".", intSecs Mod 11))
Else
RaiseEvent
StatusChange(strMessage & ", " & intSecs & "second(s)" & New
String(".", intSecs Mod 11))
End If
Thread.Sleep(100)
End While
If Me.strUploadResult Is Nothing Then
Debug.WriteLine("processing of
upload failed...")
RaiseEvent
StatusChange(strMessage
& " upload failed")
If Not Me.tUpload Is Nothing
AndAlso Me.tUpload.IsAlive Then Me.tUpload.Abort()
Me.tUpload =3D Nothing
'TODO log failure of upload
thread...
Continue For 'Skip this file...
'Throw ex
'Exit For 'TODO should be keep
trying to uploads?
ElseIf
InStr(Me.strUploadResult.ToUpper, "ERROR") =3D 1 Then
Debug.WriteLine(" upload failed "
& Me.strUploadResult)
RaiseEvent
StatusChange(strMessage
& " upload failed " & Replace(Me.strUploadResult, "ERROR", ""))
If Not Me.tUpload Is Nothing
AndAlso Me.tUpload.IsAlive Then Me.tUpload.Abort()
Me.tUpload =3D Nothing
'TODO log failure of upload
thread...
Continue For 'Skip this file...
'Throw ex
'Exit For 'TODO should be keep
trying to uploads?
Else
RaiseEvent
StatusChange(strMessage
& " complete")
'Calculate elapsed time, store
stats for future uploads
RaiseEvent
TrackUploadStats(intFileSize, (Me.tsUploadEnd.TotalMilliseconds -
Me.tsUploadStart.TotalMilliseconds) / 1000)
RaiseEvent
FileUploadComplete(Me.strUploadFileName, Now) 'Mark this file as
being
uploaded...
End If
Catch ex As Exception
Debug.WriteLine("processing of upload
failed..." & vbNewLine & ex.Message & vbNewLine & ex.StackTrace)
RaiseEvent StatusChange(strMessage &
"
upload failed " & ex.Message)
If Not Me.tUpload Is Nothing AndAlso
Me.tUpload.IsAlive Then Me.tUpload.Abort()
Me.tUpload =3D Nothing
'TODO log failure of upload thread...
Continue For 'Skip this file...
'Throw ex
End Try
Next i
RaiseEvent StatusChange("Upload complete...")
Thread.Sleep(2000) 'Dispaly complete message
for a couple of seconds...
RaiseEvent StatusChange("")
srReader.Dispose()
srReader =3D Nothing
dsFileList.Dispose()
dsFileList =3D Nothing
Catch ex As Exception
Debug.WriteLine(ex.Message & vbNewLine &
ex.StackTrace)
'TODO log error
RaiseEvent StatusChange("Error uploading file
list for CIID=3D" & strCI_Id & "..." & ex.Message)
Throw ex
End Try
End If
objWebService.Dispose()
objWebService =3D Nothing
Catch ex As Exception
Debug.WriteLine(ex.Message & vbNewLine &
ex.StackTrace)
'TODO log error
RaiseEvent StatusChange("Error processing upload
action for CIID=3D" & strCI_Id & "..." & ex.Message)
Throw ex
Finally
'TODO signal main thread that uploading is complete
'RaiseEvent EnableUploadAction() 'This may not be the
correct action...
'RaiseEvent ChangeUploadButtonTooltip("No cases
pending transmission") 'This may not be true
RaiseEvent Complete()
Me.bRunning =3D False
End Try
End If
End Sub
---------------------------------------------------------------------------=
=AD-------------------------------
Private Sub Process_UploadFile()
Try
Dim strName As String =3D
StrReverse(StrReverse(Me.strUploadFileName).Split("\")(0)).ToUpper
Dim dt As DateTime =3D Now 'initialize to today's date...
Try
dt =3D
Me.GetInterviewStartDate(Replace(Replace(strName,
"=2EWAV", ""), ".MP3", ""))
Catch ex As Exception
End Try
Dim objWebService As New myWebServiceClass
Me.strUploadResult =3D Nothing
Me.tsUploadStart =3D New TimeSpan(Now.Ticks) 'Capture start
time
Me.strUploadResult =3D objWebService.Upload(Me.strCI_Id,
dt,
"", strName, Me.ConvertFileToBase64(Me.strUploadFileName)) 'THIS CALL
TO THE WEB SERVICE UPLOADS A FILE... IT CAN TAKE A WHILE TO RUN
Me.tsUploadEnd =3D New TimeSpan(Now.Ticks) 'Capture end
time
objWebService.Dispose()
objWebService =3D Nothing
Catch ex As Exception
Throw ex
End Try
End Sub Tag: How to bind DependentProperty to current date Tag: 134024
Is there any example to display the image from the RGB source?Thanks
I have a function which will return the RGB source to me, then what i
want to do is to create the image and show the image on a Form. What
is the best way to do it? Is there any example for that?Thanks. Tag: How to bind DependentProperty to current date Tag: 134022
Asynchronous calls to a web service - 100,000 a minute
Hi,
I've got a requirement to poll a web service for data but it needs to
be done very frequently. The web service call is straight forward,
it
just returns a simple table of data with no more than 50 rows. It's
a
third party web service so i have no control over it. The problem is
each call is on a per user basis and the client said if its succesful
it there could be 100,000 users. The frequency of each call could be
once a minute so that could be 100,000 calls a minute.
I'm designing the client app to make the requests and i'm thinking
each
request should be asynchronous but i'm not sure this is enough. I've
got
no experience of multi-threaded development so i'm not sure if this
would help (making the requests over many threads).
Also I'm concerned about bottlenecks. If the app I built was capable
of making 100000 requests a minute (possibly at the same time if its
multi-threaded) then would the network handle this load and also
could
the web service handle this many requests at once (i know the W3C
recommends only 2 client connections at once so that could be an
issue).
Anyway, any help or thoughts would be much apprecieated.
Thanks,
Alex Tag: How to bind DependentProperty to current date Tag: 134010
How can I determine a Users distinguishedName from an ASP.Net page
Hi,
I'm looking for a way to query Active Directory to retrieve the
distinguishedName of a loged on user. I'm looking for an example using Visual
Basic on an ASP.net page.
I know how to get the Username\domain using the
Request.ServerVariables("LOGON_USER") but so far I'm failing to get the
distinguishedName out of AD.
Greetings
Wim Tag: How to bind DependentProperty to current date Tag: 134008
FileSystemWatcher moved files
How do I detect if a file is copied or moved into a folder?
I have a watcher set on the folder with NotifyFilters.LastWrite
and a delegate on the Changed event.
It works if I save a file in the folder but not if I copy, move or paste it
there. Tag: How to bind DependentProperty to current date Tag: 133988
VC++ deprecated function warnings
I'm consuming a third party library that allows me to intregate our system
into theirs. They wrote their library in Visual Studio .NET, and they make
liberal use of unsafe C functions. I'm consuming their library in Visual
Studio 2005, and as a result I keep getting 'xxxx' was declaed deprecated
warnings, where xxx is the name of the function. I know there is a way to
turn this off but I haven't been able to get it to work. I tried adding
_CRT_SECURE_NO_DEPRECATE to my Preprocessor Definitions, but the warnings
keep coming up. This makes it impossible for me to detect the usefull
warnings, and I'm not feeling up to re-writing their library. Any help
would be appreciated. Tag: How to bind DependentProperty to current date Tag: 133982
Best way to design multithreading application
Ok, I appreciate any help you can give me. I am somewhat new to
threading, only understanding it conceptually, and I use the Threading
namespace for the sleep() command. So, any suggestions with code would
also be beneficial.
Basically, I need help designing how my threads should interact.
Currently, the application acquires a bit of data, processes it,
writes it to a file, sounds alarms if necessary, adds it to the UI
(charts and tables), and then loops to acquire more. This results in
data acquisition times of several seconds, and we need it under a
second. The data acquisition is more important than UI updates, but
not at the expense of UI updates never taking place.
Based on the information I know, here is what I would do (but don't
know how): Thread A, which is high priority, sits there and acquires
data over and over, adding it to a Queue 1 as it acquires more. Thread
B, which is medium-to-high priority, loops over and over, and when it
sees data in Queue 1, it writes it to a file and sets any alarm
states. It then puts the data in Queue 2. Thread C, which is lower
priority, loops over and over, and uses any data in Queue 2 to update
the UI.
Is that the correct way to design a good solution for this? If so, I
am worried about a few things:
1) If data collection is high priority, and the other threads cannot
get enough CPU time, will either Queue fill up too quickly,
effectively stalling the application (i.e. how would I "slow down" the
acquisition thread if I notice the queues filling up)?
2) Because of these extra queues filling up, am I actually taking more
time to process each acquisition given the memory needs of such a
system (i.e. should I keep it a single-threaded model)?
3) Is there even a way to prioritize threads in such a way that Thread
A is always exactly (or rather, close to) 1 second per acquisition
run, and then Threads B and C use up the extra time, with B being most
important?
4) What happens when Thread A enqueues a new chunk of data at the same
time Thread B is dequeuing one? Same for B and C. Is this where the
"lock" keyword comes into play?
Thanks in advance, and I hope someone here can shed some light on how
to accomplish this...
Dave Harris Tag: How to bind DependentProperty to current date Tag: 133980
Re: How to bind DependentProperty to current date by zlf
zlf
Fri Oct 05 23:26:18 PDT 2007
sorry, I meant DependencyProperty.
"zlf" <zlfcn@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ:OGthKZ2BIHA.536@TK2MSFTNGP06.phx.gbl...
> In WF, how to bind DependentProperty to current date in XAML?
> I googled a lot but no result:(
>
> zlf
>
> Thanks
>