Bad variable type. in Delphi 7 Code Gear - WeOnlyDo Discussion board

Bad variable type. in Delphi 7 Code Gear (wodFTPServer)

by matrix2, Wednesday, March 05, 2008, 12:43 (6108 days ago)

Hi.

This message shows when I have run Project 1 from Delphi samples dir for wodFTPServer component.
I have found that the error pops up in OleCtrls.pas (Delphi) code and exactly at the line
OleCheck(FPersistStream.Load(Stream));
which throws EOleSysError exception.

This problem doesn't occur in Delphi 6.
Can you please help me trying to solve this problem?

My mistake

by matrix2, Wednesday, March 05, 2008, 12:54 (6108 days ago) @ matrix2

I am sorry, the problem is in Delphi 2007 from Code Gear, not Delphi 7 as posted in topic title.

Re: My mistake

by woddrazen, Wednesday, March 05, 2008, 13:47 (6108 days ago) @ matrix2

Hi,


Problem is duplicated on my side also.

I have send you new sample to your ticket question.


Drazen

Re: My mistake

by matrix2, Wednesday, March 05, 2008, 14:28 (6108 days ago) @ woddrazen

Hi,


Problem is duplicated on my side also.

I have send you new sample to your ticket question.


Drazen

One of my work collegues helped me and we found out if we removed the ControlData from Delphi form it was working fine. Sample code from Delphi form:

[code]
object MicroFTP: TwodFTPD
Left = 376
Top = 16
Width = 32
Height = 32
OnConnecting = MicroFTPConnecting
OnLoginPassword = MicroFTPLoginPassword
OnDisconnected = MicroFTPDisconnected
OnUploadFile = MicroFTPUploadFile
OnDeleteFile = MicroFTPDeleteFile
OnCommand = MicroFTPCommand
OnConnected = MicroFTPConnected
OnChangeDir = MicroFTPChangeDir
OnCryptoInformation = MicroFTPCryptoInformation
ControlData = {
0003000008000200000000000200780003001500000003000400000003000400
0000080056000000570065004F006E006C00790044006F002000460054005000
200053006500720076006500720020002800500068006F006E00450058005400
65007300740031003000330029002000720065006100640079002E0000000800
1000000047006F006F0064006200790065000000030001000000030000000000
0B00FFFF080036000000570065004F006E006C00790044006F002D0077006F00
64004600540050004400200032002E0033002E0036002E003100360030000000
030000000000}
end
[/code]

I appreciate your immediate help.

It seems I haven't installed the wodFTPServer component correctly (either as ActiveX or as a bpl package)

Problem solved.