- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
am having problems with my DLL compiled with IVF 10.1.021. If I compile an EXE it works fine. If I compile a DLL with CVF, it works fine. THe problem is with the tty lines in my code. I have to comment them out in order for it to work in the IVF DLL. Here is an example of the tty code.
Here is what the tty =
integer, parameter :: tty=6
It does open a console window on run. Here it is at the point of crash.

Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A write to the screen using "write (6...." works coming from the coding in the main EXE, but fails when a "write (6...." is called from a dll, which was called within the main program or one of its subroutines. The write to a file works properly from the same dll.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Make sure that the EXE is linked to the same library type as your DLL (Either Multithreaded DLL or Multithreaded Debug DLL).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Brian,
The DLL needs to open a console window itself.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you have the dll open a console?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page