File requester code produces "bad refs" error

BlitzMax Forums/BlitzMax Programming/File requester code produces "bad refs" error

JoshK(Posted 2009) [#1]
Here is my advanced file requester. A "bad refs" error occurs when a file is selected.

The program:


Compile log:
Building FileRequester
Compiling:FileRequester.bmx
flat assembler version 1.66
4 passes, 21865 bytes.
Linking:FileRequester.debug.exe
Executing:FileRequester.debug.exe
bad refs:obj=$19d5020 refs=$73756c6f

Process complete



Jesse(Posted 2009) [#2]
works fine here.
debug and release.

Have you by any chance been messing with module source? I believe it's similar to what I got when I accidentally run one of my modules source but I could be mistaken.

By the way, does this supposed to work in full screen mode?


JoshK(Posted 2009) [#3]
I have not changed any of the modules used here.

I am using Vista 32-bit, BMX 1.30.


REDi(Posted 2009) [#4]
Works fine here with threaded build enabled (old svn version), otherwise I get the bad refs error.


Jesse(Posted 2009) [#5]
it must be a Vista compatibility issue. I tried svn 1.30(with the last update posted before it got removed) and the official release 1.30, every possible way, with no problems.


marksibly(Posted 2009) [#6]
Hi,

This looks really suspect to me:

Field lpstrFileTitle:Byte[4096]

Try a Byte Ptr and appropriate init code instead.


Azathoth(Posted 2009) [#7]
Marks suggestion fixed it here on Vista x64


JoshK(Posted 2009) [#8]
Yeah, that fixed it. Thanks!

What's cool about this requester code is it can have an owner window, and a callback function for options/help.

Here is the corrected code: