PC Review


Reply
Thread Tools Rate Thread

DDEInitiate locks up Excel

 
 
MasterMine
Guest
Posts: n/a
 
      19th Mar 2008
I'm investigating why a DDEInitiate command locks up Excel.
Specifically, I am addressing a GoldMine database though DDE as
follows:

dim ret
ret = DDEInitiate("GoldMine", "Data")

Very simple.

This happens, for instance, if GoldMine is running and I simply open
Excel, go to VBA immediate window, and type in the initiate command,
or add it as a macro and run it. Excel locks up and says "(Not
Responding)" in the title bar. I have to crash Excel to get out.

Then, if I reboot my machine, launch GoldMine, run Excel again, etc --
it works... until something mysterious happens after some period of
time, it eventually fails again.

Even if you can't reproduce this, some hints on how to troubleshoot
this would be extremely helpful.

By the way, I can then open an instance of MSWord, do the same thing
in VBA, and Word does NOT lock up. DDE functions normally and
retrieves data from GoldMine.

To further prove that this is database independent: We sometimes
experience this on one workstation, accessing GoldMine from a server,
while other workstations successfully initiate dde to the same
database from Excel (using the same program).

For a workstation that was chronically like this, we have gone so far
as to recreate the windows profile of the user on the offending
workstation (create new user, copy over old user's docs & settings,
etc) -- and that fixed the problem.
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      19th Mar 2008
My DDE is rusty to say the least and I don't know Goldmine, but I vaguely
recall having problems with DDE in Excel and getting Word to do 'it', eg

If wdApp is nothing then
Set wdApp = Createobject("word.application") ' or 'New Word
end if

with wdApp
nChan = .DDEInitiate("GoldMine", "Data")
..DDEExecute nChan, "blah"
..DDETerminate nChan
end with

keep or quit the wdApp

As I pasted your DDEInitiate line into the air code above I noticed it was
unqualified. Indeed Help says -

expression.DDEInitiate(App, Topic)
expression Optional. An expression that returns an Application object.

- but maybe try qualifying your DDE to Excel as I did to Word above, say

Application.DDEInitiate("GoldMine", "Data")

Regards,
Peter T



"MasterMine" <(E-Mail Removed)> wrote in message
news:2af9855f-05fd-46f9-9915-(E-Mail Removed)...
> I'm investigating why a DDEInitiate command locks up Excel.
> Specifically, I am addressing a GoldMine database though DDE as
> follows:
>
> dim ret
> ret = DDEInitiate("GoldMine", "Data")
>
> Very simple.
>
> This happens, for instance, if GoldMine is running and I simply open
> Excel, go to VBA immediate window, and type in the initiate command,
> or add it as a macro and run it. Excel locks up and says "(Not
> Responding)" in the title bar. I have to crash Excel to get out.
>
> Then, if I reboot my machine, launch GoldMine, run Excel again, etc --
> it works... until something mysterious happens after some period of
> time, it eventually fails again.
>
> Even if you can't reproduce this, some hints on how to troubleshoot
> this would be extremely helpful.
>
> By the way, I can then open an instance of MSWord, do the same thing
> in VBA, and Word does NOT lock up. DDE functions normally and
> retrieves data from GoldMine.
>
> To further prove that this is database independent: We sometimes
> experience this on one workstation, accessing GoldMine from a server,
> while other workstations successfully initiate dde to the same
> database from Excel (using the same program).
>
> For a workstation that was chronically like this, we have gone so far
> as to recreate the windows profile of the user on the offending
> workstation (create new user, copy over old user's docs & settings,
> etc) -- and that fixed the problem.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locks Cylinders Deadbolt Schlage, Medeco Mul-T-Locks, Baldwin Locks,Kwikset Locks, Mortise Locks, Dexter Locks lifeine Microsoft C# .NET 0 13th Oct 2009 06:46 PM
DDEInitiate causes Excel to hang Waldy Microsoft Excel Crashes 0 20th Nov 2007 12:03 PM
trying to DDE from Excel to Word using DDEInitiate Pierre Laporte Microsoft Excel Programming 0 17th Feb 2005 05:16 PM
DDEInitiate inconsistent... Jeff Brush Microsoft Excel Programming 0 12th Jan 2005 08:42 PM
Excel VBD DDEInitiate problem bbombardier Microsoft Excel Programming 2 22nd Apr 2004 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:18 AM.