🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15255

send message don't always work

#15255
From: sharon oknin
Date: Mon, 14 Jul 2003 08:48
20 lines
1798 bytes
Hi ,

I've wrote an application to show an image when tranfering between
programs . This application when called with one set of parameters know
how to show an image , with other set of parameters the same appliction
shuts
the fisrt process of itself . To shut down the other process i use
hPrevApp = ::FindWindow(NULL, AppCot); and then
SendMessage(hPrevApp, WM_SYSCOMMAND, SC_CLOSE, 0); to shut it down . The
problem is that the application dos'nt always work and shuts down .
I know for sure that FindWindow finds the correct window , other SendMessage
(for example changing text) always works .
This error occure usally when the user clicks the image as it loads and the
the application halts .

Could anyone give me a direction ?
I you need any more information i would be happy to post it  .

thanks ,
sharon
Technical Details
Message-ID: <3f125f63@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,664aaa3063a073ce,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-14 01:13:11 PST
From: "sharon oknin" <sharon@benarit.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: send message don't always work
Date: Mon, 14 Jul 2003 10:48:23 +0200
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 62.90.239.124
Message-ID: <3f125f63@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058168675 62.90.239.124 (14 Jul 2003 00:44:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail