Solved

DDE problem

Posted on 1999-01-04
8
465 Views
Last Modified: 2012-06-27
hi

i have created 2 delphi programs, one with a DDEClientConv and the other with a DDEServerConv component.

I have managed to establish a link between those 2 applications. however, once the link is establiahed, if i close down the server, it comes up with an Access Violation error which i can't debug!! but if i close the connection from the client application (or terminate the client application first), the the server closes properly...

is this a bug with the component? how do i solve this?

Regards
Keith
0
Comment
Question by:keithcsl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 3

Expert Comment

by:williams2
ID: 1354412
Try my example at

http://www.experts-exchange.com/topics/comp/lang/delphi/Q.10105839

It works fine

regards,
Williams
0
 
LVL 1

Author Comment

by:keithcsl
ID: 1354413
williams2

i have tired your code but still experienced the same thing. i ran the client and it established the link with the server. all the sending and receiving of data works fine. now, if i close the server while the client is still running, it comes up with an Access Violation at so and so address. Could it be the version of delphi i am using? it's 3.01

Keith
0
 
LVL 3

Expert Comment

by:williams2
ID: 1354414
I guess there is ways to do this right. Normally you don't close the server until the client has finished it's business. You should test whether the connection is still up and wait until the client has finished before exiting.

I'm sorry I cannot provide you a better answer to this.

Regards,
Williams
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 3

Expert Comment

by:williams2
ID: 1354415
(You should know, that I'm NOT getting any access violations, but just a faulty connection)
0
 
LVL 1

Author Comment

by:keithcsl
ID: 1354416
williams2

thanks for that. i am writing a commercial s/w, so i just thought the user might close down the server unintentionally. could u post ur comment as an aswer? i am happy to accept it...

regards
Keith
0
 
LVL 3

Accepted Solution

by:
williams2 earned 30 total points
ID: 1354417
I am happy that I can be any help to you dear Keith

If there's anyone who cares to comment on DDE, please do so.

Regards,
Williams
0
 
LVL 1

Author Comment

by:keithcsl
ID: 1354418
williams2

i just have a thought and need ur opinion... is it possible to convert the server into and activeX contorl, ie create an activeX form and paste the server components on it? u see, i have create the client end on my software and want to distribute the server end to other developers so that they can communicate with my program...

i have tried this and when i pasted the activex server on a new delphi project, the client managed to connect to it. the only problem is that it can't poke data or request data... somehow it seems like the serveritem cannot be found...

can u assist me in anyway? all i am trying to do is to create and communication link between my program and another external program...

Regards
Keith
0
 
LVL 3

Expert Comment

by:williams2
ID: 1354419
yes, you cannot make the server into a ActiveX control I'm afraid, because the DDE system won't you to execute an .ocx file. ocx's are like libraries, they need another program to run. Therefore the DDEServerItem should be named as the executable, os the system will be able to find it.

You can try it like above, but I'm not sure if it works :-(

Cheers,
Williams
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question