|
Have you run it through a debugger? Put break points on or near where the code blows up. This should tell you which object isn't assigned.
Are you updating GUI components from the worker / background thread?
Run through a debugger, and the code should break out at the error. Beyond that, post the snippet of code that is failing...
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Well, the error will have occured somewhere in your code. And the debugger will have probably shown you where in the code that occurred.
You may wish to furnish us with some more information about your problem.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Hi,
from your scenario I would give it high probability the problem occurs in the main thread,
so watch your exceptions (I trust you dont throw them away); you might want to add an
overall try-catch (with a MessageBox.Show(myException.ToString()) in the static Main method.
I prefer this approach over Visual debugging since that might interfere with your scenario
to begin with.
|
|
|
|
|
|
I have a windows form that contains a webbrowser control on it. When the form loads it creates a HTML page with contains some JavaScript. When the control loads the first time I can pass it parms and make it do what ever I want but I want more of an AJAX tool here. So what I need to do is call some of the JavaScript functions within that webpage externaly. I guess I could tie buttons to events and try to find them within the dom and send a button push command but I don't know if that would work either? Any help here would be great. Thanks
|
|
|
|
|
|
Hello everyone,
I am migrating my C++ COM server to managed code (C# COM server). I am using the same client to use the same COM class in COM server. The C++ version COM server works properly, but when using the C# COM server, there is a strange error indicating dll is not installed correctly (data link error).
I have tried to delete the DLL at the same time to test whether the DLL could be found correctly when the client is invoking the DLL, and Windows system reports error message indicating that the DLL is in use -- so I think the DLL should be able to found. Why COM client will report the strange error indicating the DLL is not installed properly (C# COM server)?
Any check list to solve this issue?
thanks in advance,
George
|
|
|
|
|
Have you registered the dll using the RegAsm tool in the .NET SDK?
|
|
|
|
|
Hi Judah,
I think if we select "Register for COM" option, then it should be registered automatically in Windows registry? So, no need to run regasm again?
regards,
George
|
|
|
|
|
Hi All,
Wondering if someone could explain to me how to send a drop event to a different application. The Drag and Drop events allow an application to move objects around in a drag and drop event, but how do you get an application to send a drop event with the list of file(s) to a different application.
My application is .NET 2.0 compatible, the other application is written in delphi. The delphi application is a large complex application and is used throughout the company, the new application has to be able to process a file, convert it to a different file, save it, and then send a drop command with the new filepath to the delphi application which has drag/drop events enabled on its main window.
I'm needing something that will allow me to give it a handle of a window, a list of files and a structure.
Oh last but not least I'm coding in C#.
|
|
|
|
|
Not sure, but this sounds like you need to interop to the raw API call -
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam,lParam);
You can then get the handle of your Dephi window, and send whatever message you like. YOu need to look up the actual message format and structure for WM_DROPFILES message (that was a pure guess at the message name)
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
how can i copy files and folders from a specific location on my computer to a remote pc on my network using c# code and a window form based application
|
|
|
|
|
Make your subject be specific.
don't post it as "urgent Help Required".
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
|
waqas_2k wrote: Re: Urgent Help Required
If it's urgent why are you asking here instead of paying someone to help?
You want a couple of FolderBrowserDialog's and the System.IO namespace.
|
|
|
|
|
originSH wrote: paying someone to help
|
|
|
|
|
Please read the forum guidelines. You have already been mocked once for using 'urgent' in your message titles. So now you are CROSS-POSTING your urgent messages.
READ THE FORUM GUIDELINES.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Every time you do this, I think of the Key Stone Cops come flyin' around the corner, siren blazing, with a bunch of guys, who look like Charlie Chaplin, hanging off the sides of the car!
|
|
|
|
|
Dave Kreskowiak wrote: hanging off the sides of the car
with powerful rifles also?
|
|
|
|
|
Next I plan on taking down every reporter who starts their segment with "Well,"
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Uh oh! Now I'm going to have to watch how I start some of my replies!
|
|
|
|
|
Well, some of them.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
I don't mind the occasional 'well' as I do it myself. But if you watch for it on CNN, your local news, etc. almost every reporter they cut to starts off with "Well Lou/Peter/Katie/Bill" yada yada. Once I started noticing it started to drive me crazy. That and people who do not use well/good correctly or use borrow/lend correctly.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
waqas_2k wrote: Urgent Help Required
Wrong subject. Please read Forum Posting Guidelines first.
|
|
|
|
|
Open filestream, save filestream, close filestream. And no, I'm not going to write it for you.
|
|
|
|