TUDP problems - makes crash @ shutdown

I'm using a TUDP component for broadcasting purposes.
It works, but the component acts oddly in two ways (I guess these problems are somehow connected):

1) Before it can read/listen, it must be activated by sending something first - and there's no 'activate' procedure for it.

2) Worse: Once it _has_ been activated, it makes the application crash when shutting the app down... some error in a windows dll is reported.

Do anybody know what's wrong?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Are you talking about TNMUDP or is TUDP some 3rd party component you downloaded somewhere?

And showing us some code would help....
coxwaceAuthor Commented:
TUDP comes with Delphi 4.0 C/S in the dclisp40.bpl package file.
I hadn't noticed the TNMUDP component, but it seems to work fine...
Thanks for mentioning it!

About the code, all you need to do (after having installed the TUDP component), is dropping it on a form, setting up its ports and remote host properties appropriately, and making a button which does something like UDP1.SendData('Hello ?');  .
Running the program, pressing the button and closing the form would then give an errormsg - a crash in nmsckn.dll.
TUDP is the netmasters older version of TNMUDP and as with all things like this you should use the newer version not the old one as the new versions contain many bug fixes.
there is nothing wrong with the tudp as i have just tested a demo and no problem.the problem you are having is being caused by something else(do you set all the tudp propertys correct in the object inspector? you must have installed this component yourself as it is not installed by default as the newer netmasters component package is installed .
anyway the below does not cause error for me:
doesthis work for you?

procedure TForm1.FormCreate(Sender: TObject);

procedure TForm1.Button1Click(Sender: TObject);

Regards Barry

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.