When and how to set a boolean variable to true?
I have following code:
void DownloadLists ()
{
if (!mIsListsDownloaded)
{
// Loop -- Downloading entries for each list
foreach (ITritonList list in
TritonListManager.GetLists(true))
{
list.OpenEntries(new
ListDataReadyDelegate(OnEntriesDownloaded));
}
// Wrong in here, because the entries are not
downloaded at this time!!!
mIsListsDownloaded = true;
}
}
void OnEntriesDownloaded(IGridList list)
{
foreach (IGridEntry entry in list.Entries)
{
mEntries.Add(entry);
}
loggerCash.LogMessageBarMessage(ESeverity.Detail,
"Finished downloading entries on list " + list.Name.ToString());
}
The task is to download entries on each list for multiple lists and
then set "mIsListsDownloaded" to true. It's important that the action
"OnEntriesDownloaded" be completed for all of the lists before
"mIsListsDownloaded" is set to true.
I've found this a technical challenge -
The delegate method "OnEntriesDownloaded" takes time to complete.
Also, since "OnEntriesDownloaded" is called for each list and there
are multiple lists, it is called multiple times and it takes
significant amount of time (about 6 seconds, could take even longer
depending on how busy the system is) to complete.
Now the question is that when shall I set "mIsEntriesDownloaded" to
true? I want to wait for 8 seconds because by that time, all of the
entries should have been downloaded. However, there is no guarantee
because sometimes the system takes much longer.
I also don't know the C# syntax of waiting for 8 seconds and then set
"mIsListsDownloaded" to true. Could anyone help? Tag: Disk cleanup is stuck Tag: 232155
Optional parameter
I have two methods that are almost identical, except for the
"HtmlLogger varLogger" parameter passed to #2.
In #1, it uses a default HtmlLogger "logger" while in #2, it uses
"varLogger" parameter.
Other than that, the two methods are identical. I would like to
combine the two methods into a single method, but I wish to know:
- How to identify the optional parameter in the method; and
- When there is no optional parameter passed to the method, how to set
the default as "logger".
Method #1:
void PublishNegativeAlpha ( IGridEntry entry)
{
try
{
foreach (NegativeAlphaForEntry negA in mNegativeAList)
{
if (negA.List == entry.List.Name &&
negA.Ticker == entry.Ticker &&
negA.TargetShares == entry.TargetShares)
{
ESide side = entry.TargetSide;
string strSide = GetSideString(side);
if (negA.Side == strSide)
{
NegativeAlpha neg = new NegativeAlpha();
neg.ObjectId = entry.ObjectId;
neg.NegativeStatus = "Negative Alpha";
CustomObjectManager.Publish(neg,
PublishMode.Regular);
logger.LogMessageBarMessage(ESeverity.Detail, "Published negative
alpha for ticker " + negA.Ticker);
break;
}
}
}
}
catch (Exception e)
{
logger.LogMessageBarMessage(ESeverity.Error,
e.Message);
}
}
Method #2:
void PublishNegativeAlpha ( IGridEntry entry, HtmlLogger
varLogger)
{
try
{
foreach (NegativeAlphaForEntry negA in mNegativeAList)
{
if (negA.List == entry.List.Name &&
negA.Ticker == entry.Ticker &&
negA.TargetShares == entry.TargetShares)
{
ESide side = entry.TargetSide;
string strSide = GetSideString(side);
if (negA.Side == strSide)
{
NegativeAlpha neg = new NegativeAlpha();
neg.ObjectId = entry.ObjectId;
neg.NegativeStatus = "Negative Alpha";
CustomObjectManager.Publish(neg,
PublishMode.Regular);
varLogger.LogMessageBarMessage(ESeverity.Detail, "Published negative
alpha for ticker " + negA.Ticker);
break;
}
}
}
}
catch (Exception e)
{
varLogger.LogMessageBarMessage(ESeverity.Error,
e.Message);
}
} Tag: Disk cleanup is stuck Tag: 232150
Windows Vista will not shut down
i just upgraded from XP to Vista and so far am kicking myself for it. After I
installed and got all my drivers updated i went to shut down windows and it
will not shut down. It closes all programs goes to the shut down screen and
then turns black and I get the blue screen of death. The pc then reboots.
Everything seems to be working proprerly and it is running great, I just have
this one issue. If anyone has any ideas I would love to hear them.
Thanks,
Glenn Tag: Disk cleanup is stuck Tag: 232146
Programs and Features only showing 2 programs
I went to uninstall a program the other day and when I went to "Programs and
features" my computer only shows 2 programs, and then locks up. What is
wrong?
--
Eric H Tag: Disk cleanup is stuck Tag: 232144
networking xp and vista
thanks Scott M for that comment but I am new to this discussion group and
your comment doesn't help one bit Tag: Disk cleanup is stuck Tag: 232138
Microsoft .NET certification
I want to clear Microsoft certification next month for .NET. I am
preparing for the MCTS exam 70-536 that is ".NET Framework 2.0
Application Development Foundation". Since .NET 3.5 is already there,
I want to know till how much time the above mentioned exam will be
available. I also want to know whether I should clear .NET 2.0 papers
or wait for .NET 3.5 exams to release. I also want to know whether the
exam 70-536 is common for future exams too.
I also want the complete syllabus of the exam 70-536 mentioned above.
What all is needed to prepare and clear that exam? From where I can
get real practice questions that is useful in exam? There are many
sites, but which one provides really useful material. Tag: Disk cleanup is stuck Tag: 232132
WDS 4.0
I have wds4.0 installed on my comp and now wish to uninstall it but, my
problem here is that it does not appear in add/remove. I have checked windows
programs and there is no uninstaller. I have downloaded wds 3 times hoping
that the installer was there, but no. Wds slows down my comp especially when
I am browsing. I WANT IT OFF.
I have also searched all the forums and it looks like I am not the only one
suffering this problem. Tag: Disk cleanup is stuck Tag: 232131
APPCRASH
when I want to close internet explorer its giving me an error that explorere
will restart , its hanging up , iam getting the following reason .
my windows is wiata
Problem Event Name: APPCRASH
Application Name: iexplore.exe
Application Version: 7.0.6000.16681
Application Timestamp: 48113d17
Fault Module Name: StackHash_8d13
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 05510d6c
OS Version: 6.0.6000.2.0.0.768.3
Locale ID: 1033
Additional Information 1: 8d13
Additional Information 2: cdca9b1d21d12b77d84f02df48e34311
Additional Information 3: 8d13
Additional Information 4: cdca9b1d21d12b77d84f02df48e34311 Tag: Disk cleanup is stuck Tag: 232129
Networking xp and vista
I have had a home network with xp for many years. Itried to add a vista
laptop to this network, Ok the vista laptop cansee and access files and the
printer (which is connected to the desktp) on the xp laptop and deskptop but
the both xp machines can neither see or access the vista laptop.
Can anyone help me please I need to see and access the vista from the xp
machines I am starting to become desparate,
. Tag: Disk cleanup is stuck Tag: 232110
Create link to a PDF onto a word document
I tried to link PDFs to Word - I have Vista - the linking process works for
Word documents but when I try to open the linked in PDF there is a message:
No program registered to open this file - I have PDF reader 8.0 and 9.0 - it
does not work with any of them. Advise? Tag: Disk cleanup is stuck Tag: 232109
HELP TO RESTORE MY WINDOWS XP HOME ED
MY EMACHINES PC WITH PERINSTALLED WINDOWS XP HOME ED CRASCHED ON ME WILL NOT
RESPONG TO NO PROGRAMS AT ALL FOR HELP SO I HAD TO BRING OUT MY OLD PC EITH
WINDOWS 2000 TO SEE IF ANY WAY I CAN RETAIN A CD DISK TO GET MY WINDOWS XP UP
AND RUNING AGAIN Tag: Disk cleanup is stuck Tag: 232104
Replacing Office 2007 with 2003
Before I delete my trial version of Office 2007 and install 2003 do I need to
back-up all of my files or will they be saved and then just automatically
open in o3 after it's installed. Also what else will I need to download to
enable 03 to work with Vista?
Thanks
--
Serrena Hudson Tag: Disk cleanup is stuck Tag: 232103
NTbackup fails after running fine for 1 years
I have found lots of people talking about this issue, but no one seems to
have a solution. I could really use some help here. Has anyone seen this or
have any ideas?
I have been running the same backup for 2 years and I came in one morning
and it just decided it would not work anymore.
Histroy:
* Windows 2003 Server
* Role - DC
* I checked the media to make sure I can read it.
* I made sure the backup was failing by checking the data on the restore
and it is not current
* Backup reports are blank
* I deleted the my local profile and the profile used for backup
* I deleted the backups and recreated them
* I varified the account is not locked out and the password is correct.
* I did open the task manager and place a /um at the end of the command
line to make the media unmanaged.
* Nothing has changed on this server
* No new tapes have been introduced
* Anti-Virus reports everything is clean
* No new software have been installed
Events:
Event Type: Warning
Event Source: Userenv
Event Category: None
Event ID: 1524
Date: 7/31/2008
Time: 11:00:33 PM
User: Domain\Account
Computer: DC
Description:
Windows cannot unload your classes registry file - it is still in use by
other applications or services. The file will be unloaded when it is no
longer in use.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Userenv
Event Category: None
Event ID: 1516
Date: 7/31/2008
Time: 11:01:04 PM
User: NT AUTHORITY\SYSTEM
Computer: DC
Description:
Windows unloaded user S-1-5-21-1203075926-436352153-549210805-2132_Classes
registry when it received a notification that no other applications or
services were using the profile.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 528
Date: 7/31/2008
Time: 11:00:00 PM
User: Domain\Account
Computer: DC
Description:
Successful Logon:
User Name: Account
Domain: Domain
Logon ID: (0x0,0x40003F)
Logon Type: 4
Logon Process: Advapi
Authentication Package: Negotiate
Workstation Name: DC
Logon GUID: {****1f30-fc37-bc46-19c4-d9745d3561**}
Caller User Name: DC$
Caller Domain: Domain
Caller Logon ID: (0x0,0x3E7)
Caller Process ID: 1024
Transited Services: -
Source Network Address: -
Source Port: -
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 576
Date: 7/31/2008
Time: 11:00:00 PM
User: Domain\Account
Computer: DC
Description:
Special privileges assigned to new logon:
User Name:
Domain:
Logon ID: (0x0,0x40003F)
Privileges: SeSecurityPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeTakeOwnershipPrivilege
SeDebugPrivilege
SeSystemEnvironmentPrivilege
SeLoadDriverPrivilege
SeImpersonatePrivilege
SeEnableDelegationPrivilege
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 576
Date: 7/31/2008
Time: 11:00:00 PM
User: Domain\Account
Computer: DC
Description:
Special privileges assigned to new logon:
User Name: Account
Domain: Domain
Logon ID: (0x0,0x4003A3)
Privileges: SeSecurityPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeTakeOwnershipPrivilege
SeDebugPrivilege
SeSystemEnvironmentPrivilege
SeLoadDriverPrivilege
SeImpersonatePrivilege
SeEnableDelegationPrivilege
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 540
Date: 7/31/2008
Time: 11:00:00 PM
User: Domain\Account
Computer: DC
Description:
Successful Network Logon:
User Name: Account
Domain: Domain
Logon ID: (0x0,0x4003A3)
Logon Type: 3
Logon Process: Kerberos
Authentication Package: Kerberos
Workstation Name:
Logon GUID: {****030b-c1ec-d8ec-c322-f45a0e16a5**}
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: 10.168.20.35
Source Port: 0
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Detailed Tracking
Event ID: 592
Date: 7/31/2008
Time: 11:00:00 PM
User: NT AUTHORITY\SYSTEM
Computer: DC
Description:
A new process has been created:
New Process ID: 3548
Image File Name: C:\WINDOWS\system32\ntbackup.exe
Creator Process ID: 1024
User Name: DC$
Domain: Domain
Logon ID: (0x0,0x3E7)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Detailed Tracking
Event ID: 600
Date: 7/31/2008
Time: 11:00:00 PM
User: NT AUTHORITY\SYSTEM
Computer: DC
Description:
A process was assigned a primary token.
Assigning Process Information:
Process ID: 1024
Image File Name: C:\WINDOWS\system32\svchost.exe
Primary User Name: DC$
Primary Domain: Domain
Primary Logon ID: (0x0,0x3E7)
New Process Information:
Process ID: 3548
Image File Name: C:\WINDOWS\system32\ntbackup.exe
Target User Name: Account
Target Domain: Domain
Target Logon ID: (0x0,0x40003F)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Service Control Manager
Event Category: None
Event ID: 7035
Date: 7/31/2008
Time: 11:00:01 PM
User: NT AUTHORITY\SYSTEM
Computer: DC
Description:
The Removable Storage service was successfully sent a start control.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Service Control Manager
Event Category: None
Event ID: 7036
Date: 7/31/2008
Time: 11:00:01 PM
User: N/A
Computer: DC
Description:
The Removable Storage service entered the running state.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Removable Storage Service
Event Category: None
Event ID: 98
Date: 7/31/2008
Time: 11:01:04 PM
User: N/A
Computer: DC
Description:
RSM was stopped.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Service Control Manager
Event Category: None
Event ID: 7036
Date: 7/31/2008
Time: 11:01:04 PM
User: N/A
Computer: DC
Description:
The Removable Storage service entered the stopped state.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp. Tag: Disk cleanup is stuck Tag: 232102
how to get my preinstalled windows xp homr edd back
my windows xp home edd crasched on my emachines compter iam now back on my
old compter windows 2000 can enyone help me get my windows xp wmachines pc up
and runring with out the xp cd disk xp was preinstalled Tag: Disk cleanup is stuck Tag: 232100
man email spell checker,
I thought I downloaded msn spell checker in english but instead I got in
canada french how do i get it in english Tag: Disk cleanup is stuck Tag: 232097
Error message when logging on
I get an error message of 0xc0000005 when logging into my PC. It then just
goes to a desktop backround picture with no icons or toolbar. What can I do
to fix this problem? Tag: Disk cleanup is stuck Tag: 232094
rundll error message
error loading c:\windows\system32\fkvvvuuw.dll the specified module could
not be found comes up when you first log in Tag: Disk cleanup is stuck Tag: 232091
YHO about Try-Catch use.
I am looking for some feedback on using try catch statements.
Usually when I start a project I use them for everything, but stop
using them as often after the "meat n' potatos" of the project is
finished.
I am thinking it would be useful to at least have a blanket try-catch
to surround all of the code, and add more to aid in debugging and
catching specific exceptions. I want to change my habits but before I
do I wanted to see if anyone on here had any opinions.
Thanks. Tag: Disk cleanup is stuck Tag: 232081
Upgrading to VS2008 Question
I have VS2005 Professional. I am unable to install it on my new Vista 64-
bit computer. The only reason I wanted to install it was to be able to
purchase and install VS2008 Upgrade version. If I purchase VS2008 Upgrade
(rather than the full non-upgrade version), will I be able to install it
or will I be told no copy of Visual Studio can be found to upgrade? Is
there any solution to this problem?
TIA Tag: Disk cleanup is stuck Tag: 232077
checkboxlist - items on change event
i've tried to add an onchange event to my checkboxes(created dynamically)
chkboxlist.attributes.add("onchange", "dothat();")
but it renders the onchange to the table it creates and not to the list
items. I need to add the onchange event to all the checkbox(s) that are
created dynamically. I've even tried
dim li as ListItem
for each li in chkboxlist
li.attributes.add("onchange", "dothat();")
next
but it still renders to the table that the chkboxlist creates rather than
the items.
Can this be done? If so can someone give some good examples?
thanks!
jason Tag: Disk cleanup is stuck Tag: 232075
Web.Config identity impersonate=??
Hi,
I think i've got the idea about impersonation after reading many articles
about it but the one thing i'm not sure about is what is the effect of
remming out the whole identity imperonate=?? line? Does this default to
impersonate=false or, impersonate =true, or something else?
<M> Tag: Disk cleanup is stuck Tag: 232074
slow computer
My computer used to be very fast, opening programs in less than a second...
now something has changed, and it takes between 1-5 minutes to open
programs.... i can't defrag my computer, because it fails halfway through,
because of the slow speed. i don't know what to do.... except that because of
how slow it is, most of the time i'd rather just leave it off... but i have
work to do, so i bear it with a large grain of salt.... is there a(ny)
solution(s) out there? Tag: Disk cleanup is stuck Tag: 232070
What's wring with this try-catch block?
This is freaking me out. I'm using Membership and trying to determine if the
database is online. The GetConnectionString( ) method returns a connection
string as expected but not when used in the try block.
I have the Open() and Close() methods commented out while using the
Response.Redirect to test.
The code in the try block as shown will --never execute-- but the code in
the catch block --always executes-- whether the database is online or not.
WTF???
protected void LoginButton_Click(object sender, EventArgs e)
{
// Redirect proves this test works
//Response.Redirect(ResolveUrl("~/homepage.aspx?LoginButton_Click"));
SqlConnection testConnection = new
SqlConnection(GetConnectionString("MyConnectionString"));
if (!String.IsNullOrEmpty(testConnection.ToString()))
{
try
{
//testConnection.Open();
//testConnection.Close();
Response.Redirect(ResolveUrl("~/homepage.aspx?MyConnectionString-Found"));
}
catch (Exception ex)
{
Response.Redirect(ResolveUrl("~/homepage.aspx?LoginButton_Click-Caught-Exception"));
}
}
} Tag: Disk cleanup is stuck Tag: 232067
COM+ COmponet Disable Event?
I have a COM+ application made up of 3 components. In the Component
Services UI on the Win2003 server, I can right-click and disable any
Component. Then I can right-click and enable it again.
I want to do something when that happens. How can I trap that event? I
guess it would be good to know how to trap the event for
enabling/disabling an Application too.
Thanks. Tag: Disk cleanup is stuck Tag: 232066
Microsoft Streets and Trips 2001
I have the program on CD which came with another PC but it died. I bought a
new PC running WinXP Home. The streets and trips CD will not install, it
won't launch, it doesn't do anything. Any idea why I can't get it to install
and run? I own it, and want to use it. Tag: Disk cleanup is stuck Tag: 232062
How can I manage/encapsulate failures of an Active X control
I have an Active-X control provided by a vendor that will
inadvertenly
crash while processing. The good part is that I do have a way to save
information routinely as it is processing in the event it crashes.
From there I can start over and I can eventually finish the process.
My problem is that at this stage I have been doing this manually, but
now I have to come up with an automated solution. What I want is to
have my program run, save the data at increments and restart when the
Active- X control crashed without the user ever knowing it.
My mayor concern which is also the main question. Is how to do it the
best way, and if there is a possibility for memory leaks.? The
problem
with a memory leak is that eventually the spawning process may not
work and it would default to the original behaviour of crashing in
the
middle of the process. I would normally want to call the process
using
a regular procedure call instead of a command line call. But it may
be
that the command line islates the processes better.
I am asigning "Nothing" to the Active-X object at the end of the run,
and I also have a try block to make sure the asignment runs.
Thanks in advance for any help.
Arturo Hernandez Tag: Disk cleanup is stuck Tag: 232059
How can I manage/encapsulate failures of an Active X control
I have an Active-X control provided by a vendor that will inadvertenly
crash while processing. The good part is that I do have a way to save
information routinely as it is processing in the event it crashes.
From there I can start over and I can eventually finish the process.
My problem is that at this stage I have been doing this manually, but
now I have to come up with an automated solution. What I want is to
have my program run, save the data at increments and restart when the
Active- X control crashed without the user ever knowing it.
My mayor concern which is also the main question. Is how to do it the
best way, and if there is a possibility for memory leaks.? The problem
with a memory leak is that eventually the spawning process may not
work and it would default to the original behaviour of crashing in the
middle of the process. I would normally want to call the process using
a regular procedure call instead of a command line call. But it may be
that the command line islates the processes better.
I am asigning "Nothing" to the Active-X object at the end of the run,
and I also have a try block to make sure the asignment runs.
Thanks in advance for any help.
Arturo Hernandez Tag: Disk cleanup is stuck Tag: 232058
print queues and print migrator 3.1
ran backup on win 2003 server, ran restore on a test win 2003 server. restore
completed with errors. I don't see any printers or queues on the test server?
I thought the tool would move print queues and all the settings? Am I missing
something here? Please do not link to the white paper as I have it all ready.
Thanks for any info Tag: Disk cleanup is stuck Tag: 232057
P/Invoke Problem selected index changing
I'm writing a .net application that will update several textboxes and
comboboxes on a 2nd app (3rd party-no source). I have the part that is
updating the textboxes and comboboxes working pretty well.
The problem is that it looks like they have the some events tied to one
of the comboxes selected_index_changed events so that it changes one of
the textboxes to a combobox or vice-versa. When I enter something in a
the combo manually and tab out the 2nd control changes, but this does
_not_ happen when I use my api calls. I've tried setting the focus
through api calls, but this doesn't do anything either. Is there
someway to fire the app's combo event. I'm a little stuck here, and
would appreciate any suggestions.
Some code:
Private Const WM_SETTEXT As Int32 = &HC
Private Const CB_SETCURSEL As Long = &H14E
Private Const CB_FINDSTRING as long = &H14C
Public Const WM_SETFOCUS As Long = &H7
Private Const WM_PASTE As Long = &H302
Private Declare Function SendMessageByString Lib "user32.dll" Alias
"SendMessageA" _
(ByVal hwnd As IntPtr, _
ByVal uMsg As Int32, _
ByVal wParam As IntPtr, _
ByVal lParam As String) As Integer
Public Declare Ansi Function SendMessage Lib "user32.dll" Alias
"SendMessageA" _
(ByVal hwnd As IntPtr, _
ByVal wMsg As Int32, _
ByVal wParam As Int32, _
ByVal lParam As String) As Integer
''set focus -
<DllImport("user32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
Public Shared Function SendNotifyMessage(ByVal hWnd As IntPtr,
ByVal Msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr)
As IntPtr
End Function
...
''this is how I select the combobox
iCountryCbo = SendMessage(Parent_hWnd, CB_FINDSTRING, -1, "United
States")
''try to set focus
SendNotifyMessage(ipCountry, WM_SETFOCUS, IntPtr.Zero, IntPtr.Zero)
SendMessageByString(ipCountry, CB_SETCURSEL, iCountryCbo, 0)
SendNotifyMessage(ipZip, WM_SETFOCUS, IntPtr.Zero, IntPtr.Zero)
I tried moving the setfocus calls around with no luck- Tag: Disk cleanup is stuck Tag: 232056
using Microsoft Print Migrator 3.1
Ran a backup on a win 2003 server where all the print queues are located. On
a test server win 2003 ran a restore, the restore completed without error.
But I don't see any print queues or printers setup on the test server. I
thought the tool was supposed to be used for printer migrations. Please do
link to the white paper, I all ready have it. Just need info on what step I'm
missing. Thanks. Tag: Disk cleanup is stuck Tag: 232055
Catch SqlException?
Using SQL Server Manager takes forever to take a database offline. What
other approaches might I consider to catch SqlExceptions?
Currently only concerned with Membership logging in, creating and changing
email and so on. Tag: Disk cleanup is stuck Tag: 232050
Windows Service Account
I'm hoping someone can give me a little guidance. I have written a
simple Windows Service that goes out and scrapes a few web pages and
updates some data in an access database. The service works correctly
in the IDE and trying to be a good citizen I set it to run as "Local
Service" when I install it.
However once installed it fails silently. My log eventlog message
saying the the DB was updated successfully is written, however the
actual write to the database doesn't happen. There does not seem to
be an error or exception that I can catch, it just doesn't write.
Once I change the service to run as "Local System" it works
correctly. So my question is should I really avoid using "Local
System". I have read the articles explaing he dangers, yet I see lots
of services running as it on my system. Maybe its more like a
guidance "Do so if you can, but if not don't worry too much about it?"
Is there another option? Is there a better way to know where the
problem with the "Local Service" account exists? Like I said when I
debug it in the IDE it works correctly, but at that point it is
running as my user account (which apparently has all the rights it
needs).
Should I just create another user account and play with the permission
until I find the right ones. This service goes out to client
locations so I hate to make them do too much manual work in creating
an account (as some clients I doubt would even know how to do it),
etc?
Thanks,
Matt Tag: Disk cleanup is stuck Tag: 232045
Interop & Project 2003
Can someone point me in the direction of documentation for Office Interop?
Specifically, Microsoft.Office.Interop.MSProject. Mainly what I need is a
command set, programming documentation.
I need to be able to open and edit Project 2003 files which are Published to
a Project Server.
I know a limited set of methods, but documentation would help immensely.
Thanks,
--
stullhe104 Tag: Disk cleanup is stuck Tag: 232042
How to open a docx file from an asp.net application
Hello, I hope all is well.. I was wondered if someone had a fix for
opening docx file... I am currently using the response.redirect("path
of word document") however it does not work while trying to open docx
files.. I recieve an "HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)" error...
thanks for your help. Tag: Disk cleanup is stuck Tag: 232041
Microsoft wireless 7000 keyboard
My keyboard occaisonally doen't respond and the I get the blue screen of
death with USB_Bugcode_error.
Help what to do???? Tag: Disk cleanup is stuck Tag: 232034
Cannot upgrade my security component
So I was trying to use netflix to stream a video on my computer and it said i
needed to upgrade something in WMP11 so I let it and everytime it hung up and
couldnt complete. I then started my search to find the problem and through
various sites I have reinstalled wmp several times and uninstalled netflix's
movie viewer and not reinstalled it. Everytime I go to the microsoft site to
"Upgrade my Security Component" it opens a box that says connecting to server
and then tells me it cannot be upgraded, what am I missing here????
Sorry I was unsure of what forum to post this in...... Tag: Disk cleanup is stuck Tag: 232032
Is it possible to automate COM objects embeded iin Excell document
Is it possible to automate a COM object ebmeded in an excel document run the
process and return the results in a C# .NET application? Or better yet
extract the com object some how and just run it in .NET?
--
Alexander L. Wykel
AW Software Works Tag: Disk cleanup is stuck Tag: 232027
Loading an application (with .DLLs) into memory for later use
I have a C++ app on my flash drive that i am running, but often times,
i must take the flash drive out of the computer and use it elsewhere
while the executable continues to run.
however, the executable's behavior is sporadic, and it will
disappear. I think the app is calling a DLL that exists in the
current directory, but since the flash drive is gone, it can't find
it.
so, i wanted to know if i could load the executable with all of its
associated DLLs into memory and run it from there... that way i am
free to remove the flash drive at will.
*** DISCLAIMER *** i know that i could put the executable and
associated files on the local drive, please don't suggest alternatives
to my process. i want to load the program in memory and make sure it
can run it stably from there as a proof of concept.. just to prove
it's possible. so, if you are going to leave comments such as "why
are you doing this?" or "why dont you put it on the local drive?",
please save your effort.
Thanks to anyone willing to help me!! Tag: Disk cleanup is stuck Tag: 232024
Use "lock" in three methods to prevent shared-memory corruption
I have an arraylist used in three separate methods.
In method #1 (event method), some items are removed from the arraylist
if certain conditions are met;
In method #2 (event method), properties of some items are modified if
certain conditions are met;
In method #3, it loops through each item in the arraylist without
changing any item on the arraylist or removing any item from the
arraylist. In other words, this is "read-only" type of operation.
Since both #1 and #2 are event methods and may happen anytime, there's
a chance that #1, #2, and #3 all happen at the same time, then I'll
run into a memory issue when one process is modifying the arraylist,
other process(es) are accessing the arraylist.
I plan to use "lock" in all of these three methods. I have questions:
1) I know "lock" is typically used in two methods. Will there be an
issue if "lock" is used in more than two methods?
2) If I use "lock" in #1 and #2, will locking the process cause the
associated **event objects** to expire since they are dynamic in
nature and only live for a very short period of time?
I would appreciate any input! Tag: Disk cleanup is stuck Tag: 232012
Populating dataset crashes app without error message
Hello,
The scenario is this: VB.net 2003 connecting to Access 2003 using Jet
4.0 SP8 and MDAC 2.7 SP1.
On a particular client machine with XP SP2, while trying to fill a
dataset it crashes fantastically without ANY error message. the exe
just disappears from the task manager.
I use a Module to launch the MainApp form, if I try to connect within
the Module BEFORE calling the:
dim MainApp as new MainApp
application.run(MainApp)
...the datasets work normally, but if I do it inside the Form_Load (or
anywhere inside the form) it presents the previously mentioned fatal
crash.
I have updated the clients machine with the SP1 for .NET 1.1 with no
luck.
Now, in a desperate attempt, I have installed VB.NET 03 in the client
machine and with the dev env it works fine, but if I try to run the
executable from outside, it crashes again. No error message from the
exception handling inside the app, no unhandled errors from the
framework or the OS, it just vanishes from the task manager.
I tried to reinstall MDAC and Jet but the installers find the previous
files and won't update with the new ones. Tried also reinstalling .NET
framework and the error persists.
Help! Tag: Disk cleanup is stuck Tag: 232010
Fileupload control nightmare
I have a simple fileupload control.....
<td>
<asp:FileUpload ID="fuData" Width="600px"
runat="server" />
</td>
code...
Dim path As String, file as String
file = "test.xls"
path = "c:\Upload\Somefolder\"
Me.fuData.PostedFile.SaveAs(path & file)
I get an error that access to c:UploadSomeFoldertest.xls was denied.
Obviosuly the saveas location is being mangled and all backslashes are
being removed. Tried replacing "\" with "\\" and it still fails with
the same error
This works just fin in my dev environment (XP Pro).. fails in
Production (Windows 2003 Server).
Using IIS 6 and code is written using framework 3.5.
Anyone have any suggestions ?
TIA Tag: Disk cleanup is stuck Tag: 232009
VS2005 Basic Hangs when changing from Code window to Design Window
When I change from the code view to the design view of a form in
Visual Studio 2005 (VB.NET) The design environment hangs for up to
five minutes with a blank screen where the form should be.
I have installed the latest service pack and upgraded to 2Gb RAM. I
have a Centrino 1.9Ghz processor. The problem seems to have got worse
lately.
It appears that the designer hangs whilst the form is rebuilt from the
designer code - or something like that.
Cannot find anything in the support area of microsoft and wondered if
anyone else has experienced the same problem.
Better than knowing the cause of this would be to know how to resolve
this, and I thank anyone in advance for any feedback that will help
me.
Many Thanks
Terry Tag: Disk cleanup is stuck Tag: 232002
How to make function call from VB.Net to C++/CLI DLL (Both are
Can anyone give me a simple example to demonstrate the captioned
question?
Actually, instead of PInvoke, we'd like to utilize the united .Net
platform to support our requirement:-
VB.Net sends a structure (includes 3-dimensional array) to C++/CLI
Dll, and the C++/CLI Dll will return a structure (includes 2-
dimensional array) back to VB.Net for future handling Tag: Disk cleanup is stuck Tag: 232001
slow copy speed
so when i try to copy/cut a file to place in another detination, i get a max
speed of 10.2 Mps.... this is very daunting, as i have to move about 26 gigs
of information off of my slave drive to re-format it... at that rate it will
take over seven hours for it to comple, providing it stays at max speed...
but i don't have the time to do that, nor do i want to bog down my CPU with
it either.... so, is there a way to increase my file transfer rate? Tag: Disk cleanup is stuck Tag: 231994
spell ckecker options greyed out
my spell checker in 2007 doesn't work. The spelling sugestions are greyed out
just the ignore and ignore all is available. can any one help? Tag: Disk cleanup is stuck Tag: 231992
Address/Port Forwarding/Translation
I need to build a small "port forwarder" that will check some security
settings before allowing traffic through. Can anyone suggest a good
component for doing the port forwarding? Alternatively, is there a
good open source project that does this? I assume this is a problem
that has been tackled before, and I'd rather not write the code myself
if I don't have to.
Thanks!
Brad. Tag: Disk cleanup is stuck Tag: 231991
Creating Excel File from ASP.Net for Macintosh
I am working on a project where I need to create an excel file from our
ASP.Net website and have it saved on a Macintosh computer. Currently, it is
saving the .xls file just fine on the MAC, but when you go to open it, it
opens the file as a new workbook. When you go to save it, it tries to save
it as the auto-generated workbook name that excel gives to it. The problem
is that I want to be able to allow a user to import the file directly to
another software without having to re-save it every single time. The current
code uses Response.Write to create the excel file.
Any ideas?
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/ms-excel";
Response.AddHeader("Content-Disposition", "attachment;filename="
+ strFileName);
Response.Charset = "";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new
System.Web.UI.HtmlTextWriter(stringWrite);
DataGrid dg = new DataGrid();
dg.GridLines = GridLines.Both;
dg.HeaderStyle.Font.Bold = true;
dg.DataSource = tblExcel.DefaultView;
dg.DataBind();
dg.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End(); Tag: Disk cleanup is stuck Tag: 231987
Text Box
At the top of Page 1 on Publisher I made a Title saying Messenger in a text
box...well then I added 4 more pages, but on Page 3 where it's suppose to say
Women's page - and I type that in it changes the 1st page to Women's Page
also. How can I keep it so the 1st page stays as Messenger and the 3rd page
stays as Women's Page??? Tag: Disk cleanup is stuck Tag: 231986
How to find out why program crashed from a .dmp file?
A program crashed silently. Fortunately, I was able to get a .dmp
file. Hopefully it can provide us with info on why it crashed.
When I opened the .dmp file in Notepad, it took a long time to open
it. Then I see unreadable characters, supposedly to be executable-type
of file.
Anyone can advise me on how to extract info from the .dmp file? Tag: Disk cleanup is stuck Tag: 231977
WCF
I am trying to learn WCF.
How/What do I have to do to get the designer/tools.
I see I ready have Framework 3 and 3.5 on my system.
I'll appreciate any help/example you can provide.
Thanks in advance, Mark. Tag: Disk cleanup is stuck Tag: 231976
I am trying to run my disk cleanup and it is stuck on 3 bars compress old
files can anyone help me . Please. I have Windows XP
"kimmie21459" <kimmie21459@discussions.microsoft.com> wrote in message
news:51386682-BC9F-4A1C-9055-43C841001690@microsoft.com...
>I am trying to run my disk cleanup and it is stuck on 3 bars compress old
> files can anyone help me . Please. I have Windows XP
MS.public.windows.xp.general is where you need to post this issue.