Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

leoc

[Resolvido] Problemas na migração do Delphi 7 para 2010 (componen

Recommended Posts

Olá pessoal, estou querendo migrarar minha aplicação para o Delphi 2010 para desenvolvê-la em 3 camadas com o novo DataSnap. Mas para isso, preciso migrar todos os componentes primeiro e estou enfrentando um sério problema.

 

Consigo compilar os componentes, são geradas todas as bpls, quando vou instalá-los na aba build do Delphi exibe "Success" mas ocorre a mensagem um "Acess Violation". Até parece que instala os componentes, a impressão que tenho é que no momento que vai exibí-los na paleta de componentes ocorre o problema.

 

Tenho os seguintes componentes de terceiros totalmente compatíveis com o Delphi 2010:

1. DevExpress;

2. Jedi;

3. TMS.

 

Instalei estes três sem problemas.

 

O único componente que sobrou para migrar são os da Turbo Power, mas nele precisou somente em 2 linhas numa unit fazer TypeCase PAnsiChar(Pchar()) e acabou compilando.

 

Tratei também nos fontes da aplicação o que era necessário para rodar no Delphi 2010.

 

Tenho os componentes Fast Report e Crystal Report, mas não estão incluídos neste pacote de componentes que compilei, então acredito que eles não estejam atrabaplhando.

 

Alguém ja enfrentou este tipo de problema?

 

Segue o bug que o MadExepct gerou:

 

Código:
operating system  : Windows 7 Service Pack 1 build 7601
system language   : Portuguese
processors        : 2x Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
physical memory   : 1351/3037 MB (free/total)
free disk space   : (C:) 106,13 GB
display mode      : 1440x900, 32 bit
process id        : $c48
allocated memory  : 366,64 MB
command line      : "C:\Program Files\Embarcadero\RAD Studio\7.0\bin\bds.exe" -pDelphi
executable        : bds.exe
current module    : madExcept_.bpl
exec. date/time   : 2009-08-19 18:00
version           : 14.0.3513.24210
compiled with     : Delphi 2010
madExcept version : 3.0m
callstack crc     : $2b1aa8c3, $da85d3e5, $e4669a77
exception number  : 2
exception class   : EAccessViolation
exception message : Access violation at address 2B1AA8C3. Read of address 00000008.

main thread ($f48):
2b1aa8c3 +000 ???
5000b312 +042 rtl140.bpl           System          12773 +25 System.InitUnits
5000b382 +046 rtl140.bpl           System          12794  +8 System.@PackageLoad
50035527 +03b rtl140.bpl           SysUtils        20246  +4 SysUtils.InitializePackage
5003567f +083 rtl140.bpl           SysUtils        20296 +18 SysUtils.LoadPackage
208d1c84 +008 coreide140.bpl       PakLoad           143  +0 PakLoad.TPackage.DoLoadPackage
208d1df9 +055 coreide140.bpl       PakLoad           217  +7 PakLoad.TPackage.Load
20829ea9 +061 coreide140.bpl       PakMgr            581  +2 PakMgr.TDesignPackage.Load
2188bf4f +05b delphicoreide140.bpl PasCppPakMgr     2252  +4 PasCppPakMgr.TIDEDesignPackage.Load
5000a41d +01d rtl140.bpl           System          10325  +2 System.@AfterConstruction
2188bd63 +06b delphicoreide140.bpl PasCppPakMgr     2177 +11 PasCppPakMgr.TIDEDesignPackage.DelayLoad
218901e4 +030 delphicoreide140.bpl PakList           913  +3 PakList.TPackageListItem.LoadWait
21890168 +068 delphicoreide140.bpl PakList           891 +15 PakList.TPackageListItem.LoadDesignPackage
2188f1e3 +067 delphicoreide140.bpl PakList           559  +7 PakList.TPackageListItem.SetIsInstalled
2188efbd +0d5 delphicoreide140.bpl PakList           473 +13 PakList.TPackageList.AddPackage
218e8333 +093 delphicoreide140.bpl BasePasProjOpts  2058  +8 BasePasProjOpts.TProjOptsManager.InstallPackage
218ea443 +003 delphicoreide140.bpl BasePasProjOpts  3010  +0 BasePasProjOpts.TProjectOptions.InstallPackage
2190f5ad +191 delphicoreide140.bpl PasMgr          11594 +18 PasMgr.TPascalPackageCodeUpdater.InstallPackage
2189298b +06f delphicoreide140.bpl PkgContainers     178  +8 PkgContainers.TStdPackageProjectContainer.CommandHandler
2070868e +0d6 coreide140.bpl       ContainerIntf     819  +8 ContainerIntf.TIDEProjectManagerMenuObject.Execute
20709e71 +171 coreide140.bpl       ContainerIntf     999 +18 ContainerIntf.TProjectManagerMenuItem.Click
50281787 +013 vcl140.bpl           Menus            3383  +5 Menus.TMenu.DispatchCommand
50282966 +082 vcl140.bpl           Menus            4489  +4 Menus.TPopupList.WndProc
502828b5 +01d vcl140.bpl           Menus            4464  +2 Menus.TPopupList.MainWndProc
50076360 +014 rtl140.bpl           Classes         13014  +8 Classes.StdWndProc
75e0cc6b +00a USER32.dll                                     DispatchMessageW
502c8749 +11d vcl140.bpl           Forms            9784 +30 Forms.TApplication.ProcessMessage
502c878e +00a vcl140.bpl           Forms            9814  +1 Forms.TApplication.HandleMessage
502c8ab9 +0c9 vcl140.bpl           Forms            9951 +26 Forms.TApplication.Run
768d3c43 +010 kernel32.dll                                   BaseThreadInitThunk

thread $fd8:
77886a02 +000a ntdll.dll       NtWaitForMultipleObjects
75be69d6 +0000 KERNELBASE.dll  WaitForMultipleObjectsEx
768cbc89 +0089 kernel32.dll    WaitForMultipleObjectsEx
75e062f3 +7f8a USER32.dll      MsgWaitForMultipleObjectsEx
75e037f2 +001a USER32.dll      MsgWaitForMultipleObjects
768d3c43 +0010 kernel32.dll    BaseThreadInitThunk

thread $b88: <priority>
77886a02 +0a ntdll.dll                         NtWaitForMultipleObjects
75be69d6 +00 KERNELBASE.dll                    WaitForMultipleObjectsEx
768cbc89 +89 kernel32.dll                      WaitForMultipleObjectsEx
5007b84a +56 rtl140.bpl     SyncObjs   339 +14 SyncObjs.THandleObject.WaitFor
5007367e +42 rtl140.bpl     Classes  11018  +8 Classes.ThreadProc
5000b974 +28 rtl140.bpl     System   13579 +33 System.ThreadWrapper
768d3c43 +10 kernel32.dll                      BaseThreadInitThunk

thread $5b4:
77886a02 +0a ntdll.dll     NtWaitForMultipleObjects
768d3c43 +10 kernel32.dll  BaseThreadInitThunk

thread $1cc:
77886a32 +0a ntdll.dll     NtWaitForWorkViaWorkerFactory
768d3c43 +10 kernel32.dll  BaseThreadInitThunk

thread $fc0:
77886a02 +0a ntdll.dll       NtWaitForMultipleObjects
75be69d6 +00 KERNELBASE.dll  WaitForMultipleObjectsEx
768cbc89 +89 kernel32.dll    WaitForMultipleObjectsEx
768cbcf7 +13 kernel32.dll    WaitForMultipleObjects
768d3c43 +10 kernel32.dll    BaseThreadInitThunk

thread $7e0: <priority>
77886a22 +0a ntdll.dll       NtWaitForSingleObject
75be1796 +66 KERNELBASE.dll  WaitForSingleObjectEx
768cbaee +3e kernel32.dll    WaitForSingleObjectEx
768d3c43 +10 kernel32.dll    BaseThreadInitThunk

thread $450:
77886a22 +0a ntdll.dll                                NtWaitForSingleObject
75be1796 +66 KERNELBASE.dll                           WaitForSingleObjectEx
768cbaee +3e kernel32.dll                             WaitForSingleObjectEx
768cba9d +0d kernel32.dll                             WaitForSingleObject
20f288de +26 vclide140.bpl  IDEVirtualTrees  5252  +4 IDEVirtualTrees.TWorkerThread.Execute
5007367e +42 rtl140.bpl     Classes         11018  +8 Classes.ThreadProc
5000b974 +28 rtl140.bpl     System          13579 +33 System.ThreadWrapper
768d3c43 +10 kernel32.dll                             BaseThreadInitThunk

thread $3d4:
778857d2 +0a ntdll.dll                        NtDelayExecution
75be1870 +4f KERNELBASE.dll                   SleepEx
75be1813 +0a KERNELBASE.dll                   Sleep
5007367e +42 rtl140.bpl     Classes 11018  +8 Classes.ThreadProc
5000b974 +28 rtl140.bpl     System  13579 +33 System.ThreadWrapper
768d3c43 +10 kernel32.dll                     BaseThreadInitThunk

thread $ef8: <priority>
75e018d4 +3b USER32.dll    GetMessageA
768d3c43 +10 kernel32.dll  BaseThreadInitThunk

thread $9c4: <suspended> <priority>
778868a2 +00a ntdll.dll                         NtSuspendThread
75c0464d +00c KERNELBASE.dll                    SuspendThread
50074362 +032 rtl140.bpl     Classes  11542  +5 Classes.TThread.Suspend
2085d032 +1ea coreide140.bpl ComInOut  1852 +62 ComInOut.TKibitzingMonitor.Execute
5007367e +042 rtl140.bpl     Classes  11018  +8 Classes.ThreadProc
5000b974 +028 rtl140.bpl     System   13579 +33 System.ThreadWrapper
768d3c43 +010 kernel32.dll                      BaseThreadInitThunk

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.