| |
|
|
Sebastian Sprenger | Hello together, have here größeres trouble...
1. I try, of my MIDI-Keyboard data auszulesen. Klappt really too. But if I z.B. one WaitInput weglasse or one SetTimer set (Why is the make, is ne others story) and then a Button on the Keyboard press, crashes Profan with of/ one schweren Access violation and of/ one Error Message without Text ex, even in folgendem Minimalcode!
XProfan 9, windows ME, 1.8 Ghz CompileMarkSeparationdeclare hmi&
def midiInOpen(5) !WINMM,midiInOpen
def midiInStart(1) !WINMM,midiInStart
def midiInStop(1) !WINMM,midiInStop
def midiInClose(1) !WINMM,midiInClose
proc MidiInProc
Leer, wohlgemerkt...
endproc
if not(midiInOpen(addr(hmi&),0,procaddr(MidiInProc,5),0,$30020)) CALLBACK_FUNCTION + MIDI_IO_STATUS
if not(midiInStart(hmi&))
cls
whilenot scankey(27)
waitinput
endwhile
midiInStop(hmi&)
endif
midiInClose(hmi&)
endif
2. if the 1. trouble not lösbar is... I had The routine to that Reading the data already in Assembler written, the has perfect functions. though be I meanwhile on The idea come, the program hereafter to that XProfan-competition einzureichen. can I,may I there at all yet dran participate, if I exakt 100 Bytes Maschinencode for a Callback in a Memory-Variable einbinde and these Variable on midiInOpen commit?
3. where I strain write, what is because the? Warning: Page Restrictor hardship installed correctly - Headers already sent! get these Message constantly in the Preview.
good night, Sebastian |
|
|
| Profan² 7.0e, XProfan 9, 11.2a, FreeProfan32 Windows Vista Home Premium 32-Bit, 2.8 Ghz, 4 GB RAM Windows Me, 1.8 Ghz, 256 MB RAM | 09/23/07 ▲ |
|
|
|
|
RGH | To 1.: XProfan isn't in the site, two Source code in a Program parallel to execute. therefore can The Callback-function, so How You it program have, not correctly functions. The Callbacks in XProfan get in first line moreover created, circa API-functions benefit to The Callback-functions benefit. there in this drop The XProfan-Callback-routine called becomes, during The API-function carryed out becomes, comes it To keinem conflict. After terminate the API-function power XProfan there moreover where it before interrupted watts, there any relevanten Systemparameter to Perform the Callback-function ensured get. In others Make, about with Subclassing of Windows, is the almost-fashion (see under Set(FastMode,n%)) duty and it must gewährleistert go, that The Callback-routine no disruption, about through WaitInput, Timer, etc. admits. Perhaps reicht with you already the Fastmode from. Related to the Assembler is other sure too helpful.
To 2.: I see none reason, what with one Wettbewerbseintrag against Assembler in a Memory-Variables speaks, especially since Yes presumably The routine, The this area filling, in XProfan and part the Program is.
Greeting Roland
Nachtrag: Möglicherweise becomes it in küntigen XProfanversionen erweiterte Callback-Opportunities give. |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 09/23/07 ▲ |
|
|
|
|
Jörg Sellmeyer |
can I,may I there at all yet dran participate, if I exakt 100 Bytes Maschinencode for a Callback in a Memory-Variable einbinde and these Variable on midiInOpen commit?
there voice I Roland To. not that I the Jury vorgreifen would like, but What is rather suitable, To show, what with Profan possible is, as the direct Einbinden of ASM. Greeting Jörg |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/23/07 ▲ |
|
|
|
|
Frank Abbing |
can I,may I there at all yet dran participate, if I exakt 100 Bytes Maschinencode for a Callback in a Memory-Variable einbinde and these Variable on midiInOpen commit?
self-evident. XPIA-XProfancodes make it Yes similar. there becomes even a complete Assembler-Dll into Exe eingebunden.
I yourself use for Program-Callbacks only yet Assemblercode. |
|
|
| |
|
|
|
Sebastian Sprenger | RGH
especially since Yes presumably The routine, The this area filling, in XProfan and part the Program is. so is it.
wonderful, many Thanks for Answer! |
|
|
| Profan² 7.0e, XProfan 9, 11.2a, FreeProfan32 Windows Vista Home Premium 32-Bit, 2.8 Ghz, 4 GB RAM Windows Me, 1.8 Ghz, 256 MB RAM | 09/23/07 ▲ |
|
|
|
|
| to the Callbacks: of it speech I since years.
to that Midi-Keyboard: very something like need so did i immediate since so!
to that Page-Restrictor: The Message becomes now not any more viewed. (I had there something overlooking) |
|
|
| |
|
|