|
by: Alex |
last post by:
Hello,
in my company, we have a diagnostic tool for hardware. Depending on the
hardware projcet, a different project configuration is needed. The
configuration file is written in XML and contains information for the
visualization and storage of the retrieved data.
From mid july till now, i have made 4 different configuration sets and
everything was fine. Today, i got the order to make a new configuration set.
When the xml file was...
|
by: Sharon |
last post by:
I'm using StreamWriter to write to file and at the same time I'm using the
StreamReader to read from the same file.
Doing that cause an exception when I'm trying to create the StreamReader
when the file is already opened fro writing by the StreamWriter.
How can I write and read at the same time to the same file?
--
Thanks
Sharon G.
|
by: haibhoang |
last post by:
I have a Windows Service that is trying to parse a large (> 1Gig) text
file. I am keep getting OutOfMemoryException exception. Here is the
code that's having problem:
using (StreamReader streamReader = new
StreamReader(stream, Encoding.ASCII))
{
string line = "";
DateTime currentDate = DateTime.Now.Date;
while (streamReader.Peek() > -1)
|
by: C.W. |
last post by:
I am trying to connect to a remote server in order to perform an http post
inside my asp.net page. However, I consistently get the following error:
System.Net.Sockets.Socket.Receive(Byte buffer, Int32 offset, Int32
size, SocketFlags socketFlags)
System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32
size)
|
by: kymjay |
last post by:
I am trying to read a file in with the following code and I am getting a system.nullreferenceexception error. The error is “object reference not set to an instance of an object”. This is my code below and I can’t figure out what I am doing wrong. I have used this before and know it works….there is no reason for this not too. Help, please
Private strPhraseFile As Strin
Private intPhrases As Intege
Private objReader As StreamReade...
|
|
by: John Dann |
last post by:
I'm tripping over a silly little problem when trying to read a text
file, but can't see the fix. Outline code is:
----------------------------------------------------
FS=New FileStream(filename, filemode)
Dim SR as New Streamreader(FS)
Try
Read file
Catch ex as exception
|
by: andrewcw |
last post by:
I have a VB 5 module that duplicates the FCIV.exe from Microsoft. I need to
move an application forward to C#, but the samples for MD5 hash using the
framework I tried gave different hashes. What do I feed the framework and
how do I get the same values ??
The following code DOES NOT GIVE THE FCIV value:
public string getFileHash(string filePath)
{
string retVal = "";
|
by: George |
last post by:
Hi,
I am re-writing part of my application using C#. This application starts
another process which execute a "legacy" program. This legacy program writes
to a log file and before it ends, it writes a specific string to the log file.
My original program (MKS Toolkit shell program) which keeps running "grep"
checking the "exit string" on the "log files". There are no file sharing
problem.
|
by: Doctorslicer |
last post by:
Hi All,
We have a large multi project application in MFC that we are
converting to managed code. We have been able to add /CLR to all of
the projects and have compiled successfully but encounter an exception
when loading one of our Extension DLL's.
'OurApp.exe' (Managed): Loaded '...\Debug\DLL1.dll', Symbols loaded.
'OurApp.exe' (Managed): Loaded '...\Debug\DLL2.dll', Symbols loaded.
First-chance exception at 0x7c812a5b in OurApp.exe:...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|