Click here to Skip to main content
15,905,004 members
Home / Discussions / C#
   

C#

 
QuestionHow can I access to objects in a third-party application? Pin
m.samar23-Aug-09 0:40
m.samar23-Aug-09 0:40 
AnswerRe: How can I access to objects in a third-party application? Pin
Luc Pattyn23-Aug-09 0:55
sitebuilderLuc Pattyn23-Aug-09 0:55 
GeneralRe: How can I access to objects in a third-party application? Pin
m.samar23-Aug-09 1:35
m.samar23-Aug-09 1:35 
GeneralRe: How can I access to objects in a third-party application? Pin
Luc Pattyn23-Aug-09 1:47
sitebuilderLuc Pattyn23-Aug-09 1:47 
GeneralRe: How can I access to objects in a third-party application? Pin
m.samar23-Aug-09 2:40
m.samar23-Aug-09 2:40 
GeneralRe: How can I access to objects in a third-party application? Pin
Richard MacCutchan25-Aug-09 10:12
mveRichard MacCutchan25-Aug-09 10:12 
QuestionProducing video Pin
Muammar©22-Aug-09 23:14
Muammar©22-Aug-09 23:14 
Question64bit woes Pin
mav.northwind22-Aug-09 23:05
mav.northwind22-Aug-09 23:05 
Hi folks!

I have a strange behaviour I cannot explain, perhaps someone who's deep into 64bit development can enlighten me?

I have 2 applications written in C#: A main app (A) and an additional program for updates (U). When A is started and there's something to update, A starts U (using System.Diagnostics.Process) and quits. U in turn updates A's files and restarts A afterwards. So far, so simple. Worked for years (on 32bit Windows) without problems.

Now recently while doing some testing on Win7RC 64bit I discovered that the automatic update fails. When there's something to update, Windows tells me after a while that U doesn't work anymore and kills it (leaving an exception in Kernelbase.dll in the event log).

After some debugging I found that U hangs as soon as I try to show a non modal dialog containing at least one control (using new Form().Show(); showed the empty dialog OK and didn't hang). When I modified U's status dialog to add all controls inside its Load event and not already inside InitializeComponent(), the Updater hangs when I add the first control to the Form's Controls collection. Confused | :confused:

A was compiled with x86 as target (because I need to use 32bit third-party COM objects) and U with AnyCPU (because it didn't have any specific external dependencies I thought it doesn't matter which processor architecture it's compiled for), thus running as 64bit application on a 64bit OS.
After switching U to x86 as well it worked, but I still don't know why!

With A being x86 and U being AnyCPU I can't even get a MessageBox to show (although the call to MessageBox.Show() doesn't hang the application).

Unfortunately I don't have the faintest idea what's going on here. Does anyone have a clue?

Thanks in advance,
mav

--
Black holes are the places where God divided by 0...

AnswerRe: 64bit woes Pin
Luc Pattyn22-Aug-09 23:33
sitebuilderLuc Pattyn22-Aug-09 23:33 
GeneralRe: 64bit woes Pin
mav.northwind22-Aug-09 23:56
mav.northwind22-Aug-09 23:56 
Questionlast record is not deleted Pin
mahdi198422-Aug-09 21:10
mahdi198422-Aug-09 21:10 
QuestionWhat is the method in C# like the method - "repaint()" in JAVA??? Pin
TAFIN22-Aug-09 20:11
TAFIN22-Aug-09 20:11 
AnswerRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
stancrm22-Aug-09 20:19
stancrm22-Aug-09 20:19 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
TAFIN22-Aug-09 20:31
TAFIN22-Aug-09 20:31 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
OriginalGriff22-Aug-09 21:09
mveOriginalGriff22-Aug-09 21:09 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
TAFIN22-Aug-09 21:40
TAFIN22-Aug-09 21:40 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
OriginalGriff22-Aug-09 21:54
mveOriginalGriff22-Aug-09 21:54 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
TAFIN22-Aug-09 22:28
TAFIN22-Aug-09 22:28 
AnswerRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
Hristo-Bojilov22-Aug-09 22:51
Hristo-Bojilov22-Aug-09 22:51 
Questiondatabase size not changed Pin
msrezapro22-Aug-09 15:02
msrezapro22-Aug-09 15:02 
AnswerRe: database size not changed Pin
Luc Pattyn22-Aug-09 15:19
sitebuilderLuc Pattyn22-Aug-09 15:19 
QuestionAppend cookies in httpwebrequest Pin
Evgeni5722-Aug-09 7:05
Evgeni5722-Aug-09 7:05 
Questiona c++ class library/dll in your c# project Pin
Natural_Demon22-Aug-09 5:58
Natural_Demon22-Aug-09 5:58 
AnswerRe: a c++ class library/dll in your c# project Pin
Hristo-Bojilov22-Aug-09 6:25
Hristo-Bojilov22-Aug-09 6:25 
GeneralRe: a c++ class library/dll in your c# project Pin
Natural_Demon22-Aug-09 6:32
Natural_Demon22-Aug-09 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.