|
redkin_pavel wrote: I guess this problem of =, I mean somewhere I use asmap.Size = PictureBox1.Size;And change map.Size parameters.
of course it is...solve it ASAP
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
Hello everyone,
I want to do XML validation to validate whether an input XML file conforming to a schema file (.xsd). My question is when do we need to specify the target namespace parameter and what is the function of the target namespace parameter?
I got this question from the following MSDN pages,
http://msdn.microsoft.com/en-us/library/1hh8b082.aspx
http://msdn.microsoft.com/en-us/library/system.xml.schema.xmlschemaset.aspx
More specifically, I am referring to the 1st parameter of Add method of XmlSchemaSet class.
My current confusions are, please help to review whether my understanding in 1 and 2 are both correct, and help to answer question 3 and 4.
1. In the XML schema file, there is a target namespace attribute at top, and all elements defined in this XML schema file are defined in the target namespace;
2. In the XML document file to check against scheme, the XML document may use elements defined in the "target namespace" of the XML schema file, and may also use elements from other namespaces other than the "target namespace" defined in the XML schema file;
3. Question is, should we just add the "target namespace" to the Add method of XmlSchemaSet class, or add all namespaces which the XML document will use to the Add method of XmlSchemaSet class?
4. Another question is, whether we could define multiple "target namespace" in the XML schema file? If yes, how?
thanks in advance,
George
|
|
|
|
|
Hi,
How can the thread end is identified?
I need to enable a button after the end a thread, when i try an error shown
"Cross-thread operation not valid: Control 'btnPlay' accessed from a thread other than the thread it was created on"
What is the problem?
Thankyou
YPKI
|
|
|
|
|
ypki wrote: "Cross-thread operation not valid: Control 'btnPlay' accessed from a thread other than the thread it was created on"
This question is asked almost daily. Cross thread operations are not allowed and it is the reason for error. You need to use Invoke/BeginInvoke .
|
|
|
|
|
Winforms controls are not thread safe. Google for the error message you received, there are tons of articles that tell you how to solve this. Example[^]
|
|
|
|
|
|
Hi all.
am new to this site. Need help.
I have developed a small windows app using C#.net and SQL Server 2005.
SQL server is installed into my pc which is not a member of a domain named DEVELOPER.
And the application which is to be used in a pc which is a part of a domain.
When I start application into other domain member PC, one error shows..
Login Failed for [DEVELOPER\Guest]
How to get sloved... ???
|
|
|
|
|
Do you have 'Integrated Security = true' or 'Integrated Security = SSPI', or similar, in your connection string?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hello
how do i create a nested transaction WITHOUT TransactionScope?
for example
<br />
oTxOuter = oConn.BeginTransaction();<br />
... do some work...<br />
oTxInner = oConn.BeginTransaction();<br />
... do some work...<br />
oTxInner.Commit();<br />
<br />
oTxOuter.Commit; -- Fail here can't commit twice! ADO.NET don't support this even though with TSQL you can.<br />
dev
modified on Thursday, April 16, 2009 12:37 AM
|
|
|
|
|
I'm developing a Wireless Data Transfer(WDT) applications(server and client). The server will work in pda thats why using CF and the client app will work in pc using DNF. I've already developed this type of server for PC to PC WDT and used this code to receive the data. Written in Tick event of Timer .
if (clientSocket != null && clientSocket.Connected)
{
try
{
timer1.Enabled = false;
List<byte> data = new List<byte>();
int dataLength = 0;
if (clientSocket.Available > 0)
{
byte[] buffer = new byte[4];
if (clientSocket.Available < buffer.Length)
{
LogText("Error : Inappropriate data received.");
return;
}
int read = clientSocket.Receive(buffer, SocketFlags.None);
if (read != buffer.Length)
{
LogText("Error : Unable to start reading.");
return;
}
BinaryReader br = new BinaryReader(new MemoryStream(buffer));
dataLength = br.ReadInt32();
br.Close();
data.AddRange(buffer);
}
while (data.Count != dataLength)
{
while (clientSocket.Available > 0)
{
byte[] buffer = new byte[clientSocket.Available];
int read = clientSocket.Receive(buffer, SocketFlags.None);
for (int a = 0; a < read; a++)
data.Add(buffer[a]);
Send(InstructionType.SendFileProgress, (data.Count * 100) / dataLength);
}
}
if (data.Count != 0)
ProcessReceivedData(data.ToArray());
}
catch (Exception ex)
{ LogText("Error while receiving data...\r\n" + ex.Message); }
finally { timer1.Enabled = true; }
}</byte></byte>
All works good in PC to PC as well as PC to PDA, but as you can see I'm filling all the bytes directly to the memory(List<byte> ) and I'm sure that gonna hurt the pda performance if the file size is big. e.g let assume pda process memory is 21 mb and if I'm sending a file more than 21 than pda wont response or raise out of memory exception(No idea what will happen). What I want is to directly write it to the specified place(ie. Memory card) and no effect to pda working memory. I thought to use TCPListener and TCPClient but I'm not sure that they will take over the Socket place as I used it everywhere in Client and Server. Since I never use TCP so may be TCP is better than Socket.
My question is that is there any way in Socket to that what I want or I should use TCP or any better idea ?
Thanks
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Is there a way to stream folder with all subfolders and files in it?
Reason why I am looking for this is to stream folder and save it with my app and later take saved file and restore all subfolders and files with relative path to streamed folder.
|
|
|
|
|
You could just zip it together of course SharpZipLib[^]
Also saves some space as a nice bonus.
|
|
|
|
|
Thanks for reply,
and yes I am aware of that (sharpziplib, gzip, deflate...) but I need a better performance and just streamed folder.
|
|
|
|
|
On minimal compression maybe? Or how about .tar? No compression so there's no way anything else will be faster
|
|
|
|
|
Every compression will write some extra data to a stream and will use some extra cpu time to process. I am intrested in something that wil hold only data from files and theirs relative path to streamed folder.
|
|
|
|
|
Ok great so you didn't read my post
Please try again..
|
|
|
|
|
Yes I did read your post. And again thanks for quick reply. Please read this:
wikipedia.org/wiki/Tar_(file_format)
File header
The file header block contains metadata about a file. To ensure portability across different architectures with different byte orderings...
Only thing I need is data from files.
modified on Wednesday, April 15, 2009 9:19 PM
|
|
|
|
|
And performance is so important that those couple of hundred bytes is important. Ok. I see no other solution than doing it all manually. Almost everything that exists already will put some bytes into preserving the directory structure.
|
|
|
|
|
Thanks for your help. I solved the problem and as you already mentioned I write my own
It was all night job, but it was worth it.
|
|
|
|
|
There is no folder/directory stream in DNF. But you can write the entire folder in a binary file using BinaryWriter and Extract all the files from that binary file when require. All you need to think a file format. eg.
int - Number of Files
----For each file----
string - FilePath
int - FileLength
byte[FileLength] - Data
----------------------
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi All,
I'm trying to find some info on watching for new drives being plugged into the system. The normal kind of drives like Firewire, USB drives, flash sticks, eSata etc.
The FileSystemWatcher seems to only support watching an existing drive. Would WMI be the place to go for this?
Cheers,
|
|
|
|
|
search CodeProject for WM_DEVICECHANGE
|
|
|
|
|
|
Hi,
I have a problem here, In a constructor class I am creating a synchronous socket which I use during this class is alive.
In the destructor of the class I want to Shutdown and Close the socket, but I get a very nice Exception: "ObjectDisposeException was handled" ...
How can I Shutdown and Close the socket when the object is destroyed?
Am I not suppose to shutdown or close the socket by myself?
Example:
~DDLBaseMsg()
{
if (Sender != null)
{
Sender.Shutdown(SocketShutdown.Both);
Sender.Close();
}
}
|
|
|
|