- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As I understand it, you cannot have a STOP statement in a DLL routine. The behavior described is what one would expect if there is one.
Your choices are to eliminate the STOP statements or to resort to assembly workarounds such as the one nvaneck described.
Mike D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has been discussed here. If you search the Forum for "STOP Dll" you will find two longish (and interesting) threads...
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
many thanks for help. But it isn't a solution for me. :-((
I tried the solution 'Use of divide by zero'. I got an error-message. OK, I can call the dll again or make something else. But I don't want to get an Error-Message. - I got an Error-message before too,removing the DLL-handle in the call-back-function.It was the same effect.
For the other solution
'call RaiseException(EXCEPTION_NONCONTINUABLE_EXCEPTION, 0, 0, 0)'
I am notfamiliar enought with DVF, to find the right unitfor this function. I found nothing about this in the help-file.
The first solution fromnvaneck sounds very good, but I never wrote something in MASM.
I hoped 'STOP' using in a DLL finished _only_ the DLL. - This is wrong.
You see, I have still this problem
but many thanks again for your help
Best regards
Ute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ute, I am a little confused when I read your first question and then the whole discussion. Why don't you use RETURN instead of STOP?
Sabalan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sabalan,
at first, I'm enthusiastic! It's running as I want; without Error-Message. I overlooked to suppress the Error-Message with a 'try-except-end'- construction in Delphi. I use now the 'RaiseException'-function in the dll and the dll-call is embeded in a 'try-exception-end'-construction in Delphi. Many thanks to all helpers!!
The answer to your question is: the (old-)STOP-calls (Plural!) were 'deep' in the program and at different positions. I had to jump through a lot of functions and subprogramsto reachthe last RETURN or to the normal 'finishing' of the dll; they are e.g. in an iteration-function or in the solver of a differential equation. I wanted to stop from outside of the dll. On the window-surface is a Stop-button and in the dll are a lot of enquiries : "is the stop-button pressed?" . During runing the (simulation-)program you see, if the program is hanging and you can so (and now) stop it.That's all
Again, many thanks :smileyvery-happy:
Ute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page