Skip Menu |
Report information
Id: 122750
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: equinox <anteusz [at] freemail.hu>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: bug or error message not informative
From: anteusz [...] freemail.hu
To: rakudobug [...] perl.org
Date: Wed, 10 Sep 2014 19:53:05 +0200
Download (untitled) / with headers
text/plain 515b
Hi all, use NativeCall; class TopWindow is repr('CPointer') { multi sub TopWindow_TopWindow_c() returns OpaquePointer is native("ultimatewindll") { * } #symbol('TopWindow_TopWindow_c') multi method new() { return TopWindow_TopWindow_c();} } TopWindow.new(); This gives me Cannot invoke object with invocation handler in this context in sub TopWindow_TopWindow_c at D:\m\p6\nativecalltest2.p6:3 in method new at D:\m\p6\nativecalltest2.p6:5 in block at D:\m\p6\nativecalltest2.p6:11 jaffa4
Any ideas on what could be a better error message?

On 2014-09-10 10:53:18, equinox wrote:
Show quoted text
> Hi all,
>
>
> use NativeCall;
> class TopWindow is repr('CPointer') {
> multi sub TopWindow_TopWindow_c() returns OpaquePointer is
> native("ultimatewindll") { * } #symbol('TopWindow_TopWindow_c')
>
> multi method new() {
> return TopWindow_TopWindow_c();}
>
> }
>
>
> TopWindow.new();
>
>
> This gives me
>
> Cannot invoke object with invocation handler in this context
> in sub TopWindow_TopWindow_c at D:\m\p6\nativecalltest2.p6:3
> in method new at D:\m\p6\nativecalltest2.p6:5
> in block at D:\m\p6\nativecalltest2.p6:11
>
>
> jaffa4
>




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org