forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


my VDS DLL's not compatible with VDS 5
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jun 26, 2003 11:46 am    Post subject: Reply with quote

Thanks for keeping us all updated, Marty. Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Jun 27, 2003 6:02 pm    Post subject: Reply with quote

'm not speaking for Commercial Research on this, and I know that Emmanuel has devoted a lot of his valuable time on this issue, but I take exception to the statement that there is a "problem with VDS 5".

As the person who did most of the development work on VDS 5 I can state that nothing was done to knowingly break any existing VDS extension. All of the extensions I personally have written, and others that I have purchased and use, worked perfectly under VDS 5 without requiring any modification and have done from the outset. The extensions interface has not changed, and works in the same way as it did previously.

However, VDS 5 has a brand new IDE and works in a different way (for example, VDS50RUN.DLL now provides script execution for it whereas previously the IDE had a compiled-in copy of the script engine) which could mean that errors in extensions such as memory leaks or unfreed resources that went undetected before are now producing problems.

The bottom line, in my opinion, is that there is actually no requirement for VDS 5 to support existing extensions. Each time a new version of Delphi comes out new versions are needed of all the components. A lot of things would have been possible if it had been possible to change the extensions interface in a way that broke all existing extensions, to allow new features. So if a few extensions don't work with VDS 5, I think it's up to their developers to update them. Instead of criticizing VDS 5 for not working with a few extensions, you should be glad that it still does work with most of them.

Just my opinion, not Commercial Research's or anyone else's...

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Jun 27, 2003 6:19 pm    Post subject: Reply with quote

jules wrote:
As the person who did most of the development work on VDS 5 I can state that nothing was done to knowingly break any existing VDS extension... The extensions interface has not changed, and works in the same way as it did previously.

... VDS 5 has a brand new IDE and works in a different way (for example, VDS50RUN.DLL now provides script execution for it whereas previously the IDE had a compiled-in copy of the script engine) which could mean that errors in extensions such as memory leaks or unfreed resources that went undetected before are now producing problems.

... So if a few extensions don't work with VDS 5, I think it's up to their developers to update them. Instead of criticizing VDS 5 for not working with a few extensions, you should be glad that it still does work with most of them.

In light of this information I am tempted to agree. I for one am very excited about the power and flexibility that VDS 5 has given us. I'd also like to give a huge thanks to everyone who has contributed in any way to the developement of VDS and the VDS community! Thumbs Up

_________________
"ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player...
Back to top
View user's profile Send private message Send e-mail
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Fri Jun 27, 2003 6:57 pm    Post subject: Reply with quote

Ok that maybe true and thanks Jules, but what do I have to change to my extensions to make them work? Somebody to guide us VDS extensions developpers?

I do need the info from Commercial Research for that right?

Thanks


Last edited by marty on Fri Jun 27, 2003 8:17 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Jun 27, 2003 7:12 pm    Post subject: Reply with quote

Marty, maybe you should download the Extension documentation and look if there are some changes in it in comparison with any older version. If so, that can lead you to your answer (I hope Embarassed)... Wink
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Fri Jun 27, 2003 8:13 pm    Post subject: Reply with quote

Thanks skit, didnt know that SDK was still valid, will look into that. Its dated 27 january 1997...

Tommy, PK or MindPower any comments about Jules post?

Since you guys are much more experienced in VDS extensions than me, Im a bit lost here. Dont even know were to start....

Thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jun 27, 2003 8:45 pm    Post subject: Reply with quote

If we ever do get what is changed it should be posted on the developer
forum too. Smile

http://developer.vdsworld.com/

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Fri Jun 27, 2003 9:07 pm    Post subject: Reply with quote

I spoke to Mindpower last week about this and he informed me it looked like something within the INIT section was changed within VDS 5. He's fixed that within his code (he uses C) and he noted his dll's were working. I did the exact same thing in Delphi and it doesn't seem to work for me, while the dll's work on my computer they dont on others (1 person), but the dll has worked on other peoples computer without a problem -vdsobj02. The dll performs perfect with VDS 2 - 4 though on my system as well as others.

I can understand if there are memory leaks but if there are memory leaks VDS shouldn't be returning weird errors such as Arithmetic error when my dll does no math at all anywhere in it, and it certainly never returns that error message number within the dll back to VDS.

Also I think Nathan pointed out that the vdsxfn? (dll which returns a string reversed) also throws an error in vds5. Such an easy and small dll also is causing memory leaks? Maybe but I'd bet against it.

Last time I spoke with the people at Commercial Research I was told that the problems seem to occur only with dlls that place controls on the vds dialog, however Nathan's excellent work checking almost all dll's has proven this to not be the case. From what I've seen everything everyone (including myself) has said is just speculation as to what the problem is. I'm not rulling out that my dll's are at fault but I'm certainly not rulling out the problem is within VDS 5 either.
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jun 27, 2003 9:28 pm    Post subject: Reply with quote

Here's what Johnny told me yesterday:

Quote:
The problem is a bad pointer...The DLL's should not pass a pointer
to a variable that is not fully qualified with memory allocated to it. The
DLL's that are having the most trouble like mine were doing just that but
that is because that is how the templates show to do it. I knew it was
technically wrong but I said well if it works for VDS then I will leave it if it
is the only way.

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sat Jun 28, 2003 9:38 pm    Post subject: Reply with quote

Although I haven't found a solution to the problem yet, I find that for my DLLs, the
errorcode is the maxpar value returned by the DLL, increased by 1.

For example with vdstwain.dll, maxpar is 100, so that it returns error 101 on the first
command call. If I change the value to 50, restart VDS 5 and retry, the returned error is 51.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Jun 30, 2003 8:18 am    Post subject: Reply with quote

VDS 5 takes no notice of either the maxpar or bufsize variables set in the Init procedure. I seem to recall finding that VDS 4 didn't take any notice of one of them either. I can't see why the errorcode should be affected by this since it returns whatever value you set it to.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jun 30, 2003 1:00 pm    Post subject: Reply with quote

Just a thought: Why don't you compile a list of the things changed in
DLL processing since the release of VDS 4. This would really help people
who are lost. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Mon Jun 30, 2003 1:44 pm    Post subject: Reply with quote

I noticed too that the maxpar variable + 1 is the returned error code. After Tommy pointed this out to me and I tried it sure enough that is the error number returned each time.
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Jun 30, 2003 6:29 pm    Post subject: Reply with quote

Quote:
Just a thought: Why don't you compile a list of the things changed in DLL processing since the release of VDS 4. This would really help people who are lost.


Because the information belongs to Commercial Research Ltd. and I would get into trouble divulging it, as I have in the past. It's up to them to release details of the changes to the extension interface. But it was intended that correctly written extensions using the existing information should work without modification, and I still believe that to be the case. As anyone who has written an extension will know, the error code is passed as the result of two functions. I can't see how it can pass a wrong result from some DLLs, and wok correctly with others, unless it isn't being assigned properly in the first place.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Jul 01, 2003 11:50 am    Post subject: Reply with quote

Tommy has found interesting stuff about all these problems with VDS extensions + VDS 5. It may be a solution also! Great work Tommy!

http://forum.vdsworld.com/viewtopic.php?t=1678
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group