|
Hi Rushiraj,
On which line does the error occur? If it's the FromStream line, I too have experienced this error - From what I can figure it's due to corrupt data being in the stream, which without seeing how you are filling streamImage I can't tell. Slap in a couple of breakpoints and perform some checks to see if you are receiving all the data that you sent - I'm experiencing the problem of not receiving all data,and have just posted.
Regards,
Satips.
|
|
|
|
|
hi
error occurs at this line
bmp.Save("c:\\test.jpg", ImageFormat.Jpeg);
and data is correct.
If I do only
Bitmap b = new Bitmap(32, 32);
b.Save("c:\\test.bmp", ImageFormat.Bmp);
it is also giving same error.
I think it should create blank bmp.
Thanks,
Rushiraj
|
|
|
|
|
'A generic error occured' usually means the error is within the underlying, Win32 stuff.
One thing that will generate this error, is if you have a bitmap somewhere that was opened from this path, as it will have a lock on the file in question.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
"A generic error occurred in GDI+" indicates something went wrong in Win32 code.
I guess bmp.Save failed because of: file in use, path does not exist, disk full,
or something similar. Try the same path with either Windows Explorer manually,
or programmatically with File or FileInfo; that should tell you what the problem is.
|
|
|
|
|
mahmoud wafy24 wrote: please I want a solution to this problem quickly
Yeah, as opposed to the other folks here, who are all hoping it takes a week, I know.
This is still a stupid question. Perhaps if you took the advice you were given, and phrased your question better, we'd have some idea what you're talking about.
I assume you're selecting from a database. My advice would be, turn off your computer. Buy a book on SQL ( or perhaps learn how to use google, which means turning the PC back on ). Work through whatever tutorial you select.
And, in future, don't just ask the same question over and over, think about what the answers you get mean, and how you can help us to help you. If you mean something other than how do you add more than one column to a SQL statement, then please make clear what it is that you mean.
For the record, select * from myTable will return all columns, select col1, col2 from myTable will return the columns names col1 and col2.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You need to write code to support drag and drop for the object you're dragging/dropping. There are tutorials on MSDN
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello everyone!
I have 2 programs, a server and a client. If I start them both on the same computer, it works flawlessly. However, if I try a computer on the network (which I can do Windows file/printer sharing with) with one of the apps, the client says that the target machine actively refused it.
At first I thought it was my router, since I've been having some problems with it lately. But then I used my neighbor's wireless connection with 2 laptops and tried it, no result. So it's got to be my code.
Server:
server = new TcpListener(port);
server.Start();
Client:
sock = new TcpClient(host, port);
As I said, both programs work fine on the same computer. Does anyone know why this might happen? Maybe my neighbor's router is crappy too?
Thanks in advance!
Windows Calculator told me I will die at 28.
|
|
|
|
|
I do not know if this can help....
for your information.
1) you can check your window firewall setting.
If your firewall is on,you can set the exception for port 77.
2) To get all the listenning ports at server, you can try 'netstat /a' command at Server command prompt.
-- To test the connection from client, you can also try 'telnet [hostIP] [port]' command at Client command prompt.
Wish u luck.
ccwang
|
|
|
|
|
|
I use the Windows firewall and PeerGuardian. For the Windows one, I clicked 'Unblock' the first time I ran it, and PG doesn't block it.
Netstat gives me this:
TCP presser:77 presser LISTENING
Wait, shouldn't both the local and foreign addresses be the same? Why is one 77 and the other zero?
And bola_shokry, that link didn't work.
Any more ideas? Thanks you both!
Windows Calculator told me I will die at 28.
|
|
|
|
|
sorry , i tryed the link i found it dont work (i dont know why)
anyway , go to
MSDN Forums » .NET Development » .NET Framework Networking and Communication » problem in client/server application
start the navigation from this link:
http://forums.microsoft.com/msdn[^]
i know this problem , its boring
sorry again
|
|
|
|
|
Well, his problem is kind of different. His computers can see each other on a network, mine can't.
But I got something here. I disabled both the Windows Firewall and PeerGuardian and guess what, Apache works. I tried my program but nope, that doesn't work yet. But wait a minute... 'telnet 192.168.0.100 77 ' gets through! Then how come my client doesn't?! I updated the code:
IPEndPoint ep = new IPEndPoint(IPAddress.Parse("192.168.0.100"), 77);
sock = new TcpClient(ep);
But it still isn't working... Ideas? Thanks for helping me!
Windows Calculator told me I will die at 28.
|
|
|
|
|
Nevermind, that wasn't supposed to work. But this is:
sock = new TcpClient();
sock.Client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
sock.Connect(host, 77);
Wee, now I can play in 2 computers. Thanks VERY much!
Windows Calculator told me I will die at 28.
|
|
|
|
|
Hello there,
I need to connect internet via C# using dialup. I can dialup existing dialup connection using wininet API but I wonder some body tell me how can we pass userid,password n dialup number at runtime. It would be appreicated please...
Best Regards,
Yousuf
|
|
|
|
|
Hi everyone .. hows life goin with you .. !!
well ... i have a bluetooth project .. and i searched codeproejct for bluetooth related articles .. and found "Bluetooth Manager" .. the article was simply GREAT ... and the included library was more than GREAT .. so I downloaded the libraries and the code ... built it ... then when I started using it .. specially the function "DiscoverDevices()" ... it gave me the following exception :
PlatformNotSupportedException
and it says : Bluetooth.Net is not supported on this device.
i was like this : ... I mean how .. ? .. i use my bluetooth device ... dongle .. without any problem ... trasferring files ... between the PC and my nokia6600 and other mobile phones ... !!
but this problem is just confusing me ... i searched and found out that bluetoosh stack must be installed or something .. I guess bluetooth stack is a service or something ... but I didn't find the service in (Control Panel -> Administrative Tools -> Services)
i'm really confused .. this is the first and hopefully the last problem i might face .. then everything will be clean n clear ... !!
I'm using MS Visual Studio .NET 2005 ... Dongle USB Bluetooth device ... MS Windows XP Home & Pro .. both SP2 .. libraries are :
InTheHand.Net
InTheHand.Net.Bluetooth
InTheHand.Net.Sockets
InTheHand.Net.IrDA //i know this is for infra red but i added it n dunno why :P
anyone have tried or worked on a bluetooth project or tried searching and discovering devices ? then sending files and other operations .. ??
sorry for the long message ... but this is serious for me .. !!
thanks a lot in advance .. !!
|
|
|
|
|
Hi.
Can anyone introduce me some articles about multi-tire architecture (with sample)?
Best wishes
|
|
|
|
|
You mean multi tier. Now you know how to spell it, I'm sure you'll find heaps through google
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi every buddy,
Well I was thinking abt building some kind of a mechanism that gives progress in a progressBar while we access some information from the Database. So the core issue is, how to get the progress information from a query while it is running on a database. Lets say you’re making a long calculation from a ledger Table
Cust_Ledger(ID, , account_ID ,CustID, Debit, credit, t_date)
And u execute the query using the SqlDataAdapter or TableAdapter or whatever the case maybe, then how can u show the progress…
Thanks in advance,
Rocky
|
|
|
|
|
You can't.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Only thing I can think of would be to break the query down and loop through the broken down bits, but it would probably have a fair performance hit, though...
|
|
|
|
|
Instead of a progress bar try another progress indicator, if your idea is showing activity to the user. Otherwise, I dont know any way of doing what you're asking.
|
|
|
|
|
|
You said you had one question but posted 3 times about the same subject.
Please don't post multiple topics, if you need to change the post, there is an edit link which allows you to make necessary changes.
May I suggest you edit or delete your previous posts.
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog
|
|
|
|
|
I am very sorry to repeat the question twice, but I want to have sat explained more I did not know that I modified
|
|
|
|
|
Why did you ask it twice then ?
I don't understand the question tho. It seems pretty basic, whatever it is. Do you mean more than one column, or more than one row ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|