Skip to content

throw: too many callback functions (Windows) #1912

@gopherbot

Description

@gopherbot

by an2048:

What steps will reproduce the problem?
Build and run the drawing example (or any other) from the Walk project
(https://github.com/lxn/walk)

What is the expected output?
The program should not panic.

What do you see instead?
throw: too many callback functions

runtime.throw+0x42 /go/src/pkg/runtime/runtime.c:102
    runtime.throw(0x931e5b, 0x5)
runtime.compilecallback+0xe4 /go/src/pkg/runtime/windows/thread.c:377
    runtime.compilecallback(0x6462ec, 0x4ffd87, 0x10f39501, 0x4ffab0)
syscall.NewCallback+0x39 /go/src/pkg/runtime/windows/syscall.c:26
    syscall.NewCallback(0x6462ec, 0x4ffd87, 0x6462ec, 0x4ffd87)
walk.init·2+0xff
C:/devel/projects/eclipse_workspace/walk/src/pkg/walk/webview_ioleinplaceframe.go:37
    walk.init·2()
walk.init+0x597 C:/devel/projects/eclipse_workspace/walk/src/pkg/walk/action.go:233
    walk.init()
main.init+0x78
C:/devel/projects/eclipse_workspace/picos-order/src/cmd/picos-order/orderpoolpage.go:24
    main.init()
runtime.mainstart+0x5 386/asm.s:91
    runtime.mainstart()
runtime.goexit /go/src/pkg/runtime/proc.c:178
    runtime.goexit()
----- goroutine created by -----
_rt0_386+0xbf 386/asm.s:80

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
Windows XP SP3

Which revision are you using?  (hg identify)
3418f22c39eb weekly/weekly.2011-06-02

Please provide any additional information below.
The problem was introduced by 95553202a7a8 - runtime: do not garbage collect windows
callbacks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions