Compiler raises exception. Probably generics related
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
The compiler has an exception on the attached code. The code looks horrible, and the last line mentioned in the log reads
TPusherClient.Instance.FSubscribed[StrPas(Channel)]StrPas(EventName);
where fsubscribed of type tsubscribelist:
TEventCallback = TDictionary<string, TCallbackProcedure>;
TSubscribeList = TObjectDictionary<string, TEventCallback>;
Steps to reproduce:
FPC -Sd with 3.3.1 as of today.
Additional information:
generics.dictionaries.inc(190,92) Warning: Constructing a class "TCustomDictionaryEnumerator4
crc6DCA93A3" with abstract method "
DoMoveNext"
generics.dictionaries.inc(190,92) Warning: Constructing a class "TCustomDictionaryEnumerator4
crc6DCA93A3" with abstract method "
GetCurrent"
generics.dictionaries.inc(190,92) Warning: Constructing a class "TCustomDictionaryEnumerator4
crc513CF468" with abstract method "
DoMoveNext"
generics.dictionaries.inc(190,92) Warning: Constructing a class "TCustomDictionaryEnumerator4
crc513CF468" with abstract method "
GetCurrent"
pusherclient.pp(62,56) Error: Compilation raised exception internally
Fatal: Compilation aborted
An unhandled exception occurred at $006BD1EC:
EAccessViolation: Access violation<br/>
$006BD1EC
$0051198F SECONDPASS, line 208 of pass_2.pas
Mantis conversion info:
- Mantis ID: 35468
- Platform: win32
- Version: 3.3.1
- Monitored by: » @MageSlayer (Denis Golovan)