|
|
|
|
Judah Himango wrote:
Is the Application.ThreadException event what you're looking for?
Possibly. It says, though, "...when it receives a thread exception from a window procedure." I'll have to see if it works for non-window threads.
Marc
My website
Latest Articles:
Object Comparer
String Helpers
|
|
|
|
|
|
|
has anyone got postgres and odbc working? im trying the whole day...the code seem ok (no error reporting)..but i cant get or put any data to database. im runnig postgres on linux server. i tried from pgAdmin with same SQL command and working..mhh..any idea? (i have postgresql odbc clinet installed)
string pgConnectionString = "DRIVER={PostgreSQL};" +
"SERVER=192.168.1.100;" +
"DATABASE=test;" +
"UID=postgres;" +
"PASSWORD=postgres;";
OdbcConnection pgConn = new OdbcConnection(pgConnectionString);
try
{
pgConn.Open();
}
catch (OdbcException eee) { error-handing(eee) }
string SQL = "INSERT INTO data VALUES(default, '123', '1qwer', 'qwrwrw')";
OdbcDataAdapter myAdapter = new OdbcDataAdapter(SQL,pgConn);
pgConn.Close();
|
|
|
|
|
am building winform application, having two projects one is classLib and other is WinForm. My application was working fine. Its in sourcesafe. Suddenly today when i tried to debug my app with F5, it started giving me error.
Here's the content of output window when I hit F5 to debug my app:
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_32\mscorlib\2.0.3600.0__b77a5c561934e089\mscorlib.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\vshostutil\8.0.1200.0__b03f5f7f11d50a3a\vshostutil.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.3600.0__b77a5c561934e089\System.Windows.Forms.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System\2.0.3600.0__b77a5c561934e089\System.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.3600.0__b03f5f7f11d50a3a\System.Drawing.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\Documents and Settings\maulik\My Documents\Visual Studio\Projects\<$$Myproject$$>\bin\Debug\<$$Myproject$$>.vshost.exe', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_32\System.Data\2.0.3600.0__b77a5c561934e089\System.Data.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System.Web\2.0.3600.0__b03f5f7f11d50a3a\System.Web.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.3600.0__b77a5c561934e089\System.Xml.dll', No symbols loaded.<br />
<br />
The thread '<No Name>' (0xd0c) has exited with code 0 (0x0).<br />
The thread 0x15bc has exited with code 0 (0x0).<br />
'.NET': Loaded 'D:\Documents and Settings\maulik\My Documents\Visual Studio\Projects\<$$Myproject$$>\bin\Debug\<$$Myproject$$>.dll', No symbols loaded.<br />
A first chance exception of type 'System.NullReferenceException' occurred in vshostutil.dll,<br />
When I hit F5(Debug-Active configuration) it opens property page with title - Disassembly showing native code in VS.NET IDE and pops up Nullreference exception unhandled...I have placed breakpoint in first line of Main() but its not stopping there, indicating "Breakpoints will not currently be not hit, No symbols have been loaded for this document."
Any help will greatly be appriciated.....
REgards,
MaulikCE.
|
|
|
|
|
I think I had this happen about a month ago. Try "Clean Solution" under the Build menu, then rebuild it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave,
No luck with Clean Solution, still getting NullReferenceException popup...Disassembly property page at address "VSHostUtil.HostProc.GetEntryPointAptThreadState"
Can you jus give a little strain to your brain to recall what you did to overcome the problem.
|
|
|
|
|
|
Yes, Rebooted. Problem has yet not been resolved, anything else would you like me to try?
|
|
|
|
|
I had a problem with the symbols not being loaded correctly, not the NullReferenceException.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
I want to know that is it possible to access a website(HTML) which is sccure that is it requires login and password .. I want to refresh that website from my C# application and later select some text from that page
Please let me know how thsi can be done in C#.Net
|
|
|
|
|
Perhaps use System.Diagnostics.process.start("YOUR URI") to do.
bill
|
|
|
|
|
It does not work .. displays en error message
|
|
|
|
|
what is that error message ?
sample:
private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
this.visitLink ("http://www.microsoft.com");
this.linkLabel1 .LinkVisited =true;
}
bill
|
|
|
|
|
I always insert the Microsoft Web Component in my user controls section in the toolbox.
it's under COM components: Microsoft Web Browser.
Create an object and call the Navigate function and pass your URL as parameter...
good luck.
No hurries, no worries.
|
|
|
|
|
Hi, i want to put two pictureboxs above each other, and make them transperant to each other.
or , I need to allow the picturebox to be trasperant....How?
Thanks
BASKOTA
|
|
|
|
|
Hi
I have a win app using webservice it shows data;
because of low speed connection i have a bad visualization of application.
can any one help me on this problem;
The WinForms render as :
.
.
.
myForm.Populate();
myForm.Show();
.
.
.
|
|
|
|
|
If you hvae a slow connection, the only thing you can do is try and reduce the amount of data coming from the WebService. Only ship exactly what you need to render the form.
You might also try asynchronous calls to the WebService. This would allow you to start rendering parts of the form that don't need data, then update the parts that do when the data comes back from the WebService. This usually gives the illusion of faster response, if done correctly.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What about multi threading ?
|
|
|
|
|
That IS multithreading. When you make an asychnronous call, a thread is created out of the thread pool to make the call while the UI thread goes on it's merry way.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
Does any body have knowledge that how i work with Telephone APIs in C# or VB.Net? Where is get this APIs?
Please help me in this...
E-mail: waqasb4all@yahoo.com
Muhammad Waqas Butt
|
|
|
|
|
There are no native .NET telephony APIs. You can use PInvoke interop to call the TAPI API functions though. Have a look at this[^] as a starting point.
Michael
CP Blog [^] Development Blog [^]
|
|
|
|