Finally i found out that it was MS Application Verifier breakpoint, perhaps it indicates error in PB. After disabling verifier application works fine.
EnableExplicit
Delay(5000)
End
OpenFile(#PB_Any, "bla-bla")
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System ...
Search found 11 matches
- Wed May 20, 2015 12:37 pm
- Forum: Windows
- Topic: Strange crash on Windows 8.1
- Replies: 8
- Views: 3688
- Tue May 19, 2015 7:53 pm
- Forum: Coding Questions
- Topic: Open PathRequester from thread crash
- Replies: 7
- Views: 4075
Re: Open PathRequester from thread crash
So the problem is that callbacks crash program on MacOSX both x64 and x86.
- Tue May 19, 2015 7:49 pm
- Forum: Windows
- Topic: Strange crash on Windows 8.1
- Replies: 8
- Views: 3688
Re: Strange crash on Windows 8.1
That's why i call it strange, it happens only on one particular system.
And you're calling it a PB bug?
If i remove OpenFile line(which is not even executed) - it works, if i rename exe - it works. Also i don't have any issues with all other software and tools. So I'm pretty sure that it is not ...
And you're calling it a PB bug?
If i remove OpenFile line(which is not even executed) - it works, if i rename exe - it works. Also i don't have any issues with all other software and tools. So I'm pretty sure that it is not ...
- Tue May 19, 2015 11:29 am
- Forum: Coding Questions
- Topic: Open PathRequester from thread crash
- Replies: 7
- Views: 4075
Re: Open PathRequester from thread crash
PathRequester is blocking call on windows, so if it is opened within event loop - it will stop processing events until user selects smth. Now i'm trying to use callbacks (BindEvent) to avoid blocking, but i got crash if window is closed from callback(and immediate crash if i try to open ...
- Tue May 19, 2015 11:21 am
- Forum: Windows
- Topic: Strange crash on Windows 8.1
- Replies: 8
- Views: 3688
Re: Strange crash on Windows 8.1
That's why i call it strange, it happens only on one particular system.
- Tue May 19, 2015 11:07 am
- Forum: Coding Questions
- Topic: Open PathRequester from thread crash
- Replies: 7
- Views: 4075
Re: Open PathRequester from thread crash
That's what i did as a quick fix, but it blocks event loop and i have to create my own PathRequester that does not block... which is not fine.Wolfram wrote:You must send a PostEvent() to the MainWindow loop and open it from there.
Don't do any GUI operations directly inside a thread.
- Tue May 19, 2015 10:47 am
- Forum: Windows
- Topic: Strange crash on Windows 8.1
- Replies: 8
- Views: 3688
Strange crash on Windows 8.1
Compiled with threadsafe and unicode, 5.31 x86:
On particular system program crashes 10 of 10 times if it has name "ArchiveManagerHelper.exe", if i rename program (to "ArchiveManagerHelper1.exe" for example) it works fine.
Code: Select all
End
OpenFile(#PB_Any, "bla-bla")
- Tue May 19, 2015 10:40 am
- Forum: Coding Questions
- Topic: Open PathRequester from thread crash
- Replies: 7
- Views: 4075
Open PathRequester from thread crash
Using PathRequester from thread, fisrt time it works, second time program crashes. Purebasic 5.31 x86 and x64, MacOSX 10.9.5. If i call PathRequester from main thread it works fine.
- Sun Jul 01, 2012 1:14 am
- Forum: Coding Questions
- Topic: Pass callback to application from pb dll
- Replies: 2
- Views: 909
Re: Pass callback to application from pb dll
thanks, finally i've made it work, but PB is still very confusing to me.
Code: Select all
ProcedureCDLL initializer(extData.l, *ctxInitializer.Long, *ctxFinalizer.Long)
*ctxInitializer\l = @contextInitializer()
*ctxFinalizer\l = @contextFinalizer()
EndProcedure
- Sat Jun 30, 2012 8:39 pm
- Forum: Coding Questions
- Topic: Pass callback to application from pb dll
- Replies: 2
- Views: 909
Pass callback to application from pb dll
Hi,
I'm trying to use PB to create extension for Adobe Air (it's a dll),
i've already created similar extensions using C language, but run into issues with PB.
The problem is that functions (contextInitializer and contextFinilizer) passed to runtime are never called
FlashRuntimeExtensions.h ...
I'm trying to use PB to create extension for Adobe Air (it's a dll),
i've already created similar extensions using C language, but run into issues with PB.
The problem is that functions (contextInitializer and contextFinilizer) passed to runtime are never called
FlashRuntimeExtensions.h ...
- Sun Jul 24, 2011 9:43 pm
- Forum: Announcement
- Topic: USB HID Library
- Replies: 60
- Views: 73430
Re: USB HID Library
hi, thanks for the library, but probably there is a bug:
1. HID_Lib_DeviceTest is 1 means ok
2. HID_Lib_OpenDevice is 0 means failure (by the way GetLastError_() returns 0)
my device is custom usb mouse.
I think this can help:
Why do I receive "Access denied" when attempting to access my HID ...
1. HID_Lib_DeviceTest is 1 means ok
2. HID_Lib_OpenDevice is 0 means failure (by the way GetLastError_() returns 0)
my device is custom usb mouse.
I think this can help:
Why do I receive "Access denied" when attempting to access my HID ...