V8 of dll produces error when freed

For topics about current or future BETA releases, including feature requests.

V8 of dll produces error when freed

Postby sitestepper » Fri Aug 11, 2006 12:35 am

I just started integrating HtmlValidator into my Sitestepper web maintenance program.

I am using Delphi 7 and decided to write a wrapper class around the dynamically loaded dll.
Code: Select all
   hvi := TStepHVI.Create;
   try
      if hvi.DllAvailable
      then
         lbl1.Caption := 'Html-Validator is OK'
      else
         lbl1.Caption := 'Html-Validator CANNOT be loaded';

   finally
      FreeAndNil(hvi);
   end;

Where the dll is loaded in the .Create call. Very simple at the moment, just trying to load and free the dll.
If I use csevalidatorv70.dll, the program runs just fine.
If I use csevalidatorv80.dll the program throws an exception somewhere in the middle of nowhere (not in my code).
If I load one of my Sitestepper dll the code runs fine also.

Any ideas ?

I will upload a zipped Delphi project in about an hour to www.sitestepper.com/downloads/sitestepperhvi.zip (4Kb).
Even if you do not have Delphi installed, look at the cStepHVI.pas file. You will see that I do not do anything special at the moment.

Thanks.
User avatar
sitestepper
Rank II - Novice
Rank II - Novice
 
Posts: 29
Joined: Tue Aug 08, 2006 12:38 pm
Location: Antwerpen - Belgium

Postby Albert Wiersch » Fri Aug 11, 2006 10:15 am

Sorry, I'm not sure what could be wrong. I do have BDS 2006, so would it be possible for you to send me a small BDS 2006 Delphi project that I could try to reproduce this in? You can send it to support at htmlvalidator dot com. This could be related to the Firefox extension not working (crashing), which I haven't look into yet but definitely plan to.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby sitestepper » Fri Aug 11, 2006 10:21 am

Albert, the complete project can be downloaded from the link in my post. It is a complete zipped delphi project - no password on the zip.

I am just trying to load the dll , displaying a message if it succeeds, and than freeing the dll (in preparation for a Delphi class which encapsulates the interface to your software).
Author of Sitestepper - the web maintenance program.
User avatar
sitestepper
Rank II - Novice
Rank II - Novice
 
Posts: 29
Joined: Tue Aug 08, 2006 12:38 pm
Location: Antwerpen - Belgium

Postby Albert Wiersch » Fri Aug 11, 2006 10:38 am

sitestepper wrote:Albert, the complete project can be downloaded from the link in my post. It is a complete zipped delphi project - no password on the zip.

I am just trying to load the dll , displaying a message if it succeeds, and than freeing the dll (in preparation for a Delphi class which encapsulates the interface to your software).


Sorry, it looks like I missed that! I'll take a look and see if I can find anything.

UPDATE: I have managed to reproduce the problem with the v8.0 DLL but not the v7.0 DLL. I'm searching for a cause and solution and will let you know when I've figured it out.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby Albert Wiersch » Tue Aug 22, 2006 10:08 am

This problem should now be fixed in CSE HTML Validator Professional v8.0 BETA 1C. :D
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby sitestepper » Fri Aug 25, 2006 1:37 am

I can confirm that the error does not occur anymore when using the new beta version 8.0 1c.

Thanks ... I am now continuing my Delphi integration with version 8 ...

:P
Author of Sitestepper - the web maintenance program.
User avatar
sitestepper
Rank II - Novice
Rank II - Novice
 
Posts: 29
Joined: Tue Aug 08, 2006 12:38 pm
Location: Antwerpen - Belgium


Return to CSE BETA Talk

Who is online

Users browsing this forum: No registered users and 3 guests