[Wxruby-users] The great MSVC wxruby-swig bug hunt!

devel@nicreations.com
Tue, 20 Jul 2004 15:28:03 -0000

Quoting Kevin Smith <wxruby@qualitycode.com>:

> Nick wrote:
> > It now successfully builds (or should successfully build), but it
isn''t
> > running. We''re tracking what the problem is, but we could use
some help.
>
> For those of us without MS-Windows boxes, can you describe the symptoms
> of the bug(s) you''re seeing with wxruby-swig?

Curt, I''ve been using MSVC 6.0 and wxWidgets 2.4.2 from makefiles.
Thanks for
the suggestions though.

The symptom is that wxRuby-swig crashes on load. I''ve loaded it into
the
Micosoft Debugging Tools for windows, and from what I can see it is being
caused by SWIG storing a pointer to a director as a pointer to the base class,
and then later trying to re-cast it back to it''s director type, which
fails.
There are a few open questions though:

1) Is wxWidgets initialized correctly? I had to write the MSVC App.i
initialization code, and I''m not confident I did it correctly. Somebody
with
lower wxWidgets experience should take a look.

2) Is SWIG really at issue here? It''s an easy target, but it''s
also possible I
didn''t get the proper arguments for MSVC to SWIG. Somebody should check
this
too.

3) Did I track the bug correctly? Somebody should double check this.

I''ll accept any help possible. I''d like to see wxruby-swig on
Windows soon!

Nick