HISE Logo Forum
    • Categories
    • Register
    • Login

    Exported VST causing Access Violations

    Scheduled Pinned Locked Moved Bug Reports
    62 Posts 4 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Adam_GA
      Adam_G @d.healey
      last edited by

      @d-healey thank you very much

      1 Reply Last reply Reply Quote 0
      • Adam_GA
        Adam_G
        last edited by

        i think i managed to make it work thanks to everyones help. no crash in reaper but i replicated it in FL studio. is this what im after?

        Exception thrown at 0x00007FFD4CA49F35 (myVST.vst3) in FL64.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
        
        
        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @Adam_G
          last edited by

          @Adam_G No it seems that you're still using the release build in FL Studio - it should break in MSVS with the exact line that causes the crash. Make sure you load the correct plugin version (it should have a Debug postfix).

          Adam_GA 1 Reply Last reply Reply Quote 0
          • Adam_GA
            Adam_G @Christoph Hart
            last edited by

            @Christoph-Hart hmm i compiled the vst with the debug version of hise standalone. i must be missing a step, ill try again

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @Adam_G
              last edited by

              @Adam_G no you must compile the plugin as debug build from within VS. Open the solution you‘ve creates after exporting from HISE, then switch the configuration to Debug and build.

              Adam_GA 3 Replies Last reply Reply Quote 0
              • Adam_GA
                Adam_G @Christoph Hart
                last edited by

                @Christoph-Hart i just realized :beaming_face_with_smiling_eyes: thank you Christoph

                1 Reply Last reply Reply Quote 0
                • Adam_GA
                  Adam_G @Christoph Hart
                  last edited by

                  @Christoph-Hart is this what im after?alt text

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @Adam_G
                    last edited by

                    @Adam_G nope jasserts are fine, keep on clicking on continue until you hit a access violation ;)

                    Adam_GA 1 Reply Last reply Reply Quote 0
                    • Adam_GA
                      Adam_G @Christoph Hart
                      last edited by Adam_G

                      @Christoph-Hart took forever to get a crash for some reason haha, this? alt text

                      Christoph HartC 1 Reply Last reply Reply Quote 0
                      • Christoph HartC
                        Christoph Hart @Adam_G
                        last edited by

                        @Adam_G yes that‘s the spot, now show me the callstack (bottom right panel).

                        1 Reply Last reply Reply Quote 0
                        • Adam_GA
                          Adam_G @Christoph Hart
                          last edited by

                          @Christoph-Hart this?alt text

                          Christoph HartC 1 Reply Last reply Reply Quote 0
                          • Christoph HartC
                            Christoph Hart @Adam_G
                            last edited by

                            @Adam_G nope, callstack. first tab on the right :)

                            Adam_GA 1 Reply Last reply Reply Quote 0
                            • Adam_GA
                              Adam_G @Christoph Hart
                              last edited by

                              @Christoph-Hart sorry found it alt text

                              1 Reply Last reply Reply Quote 0
                              • Adam_GA
                                Adam_G
                                last edited by

                                was that the right panel? @Christoph-Hart

                                Christoph HartC 1 Reply Last reply Reply Quote 0
                                • Christoph HartC
                                  Christoph Hart @Adam_G
                                  last edited by

                                  @Adam_G Yeah, but I can't spot anything wrong in those locations. It appears to crash because you're trying to load a sample map in a scriptnode audio file slot, so maybe double check that you're not passing an invalid sample map ID in there.

                                  Also, is it crashing when you debug the standalone version?

                                  Adam_GA 2 Replies Last reply Reply Quote 0
                                  • Adam_GA
                                    Adam_G @Christoph Hart
                                    last edited by

                                    @Christoph-Hart that may be the cause as i have a scriptfx granulator that loads the same sample map as the sampler. i will test the standalone today but i havent been able to make it crash at all afaik

                                    1 Reply Last reply Reply Quote 0
                                    • Adam_GA
                                      Adam_G @Christoph Hart
                                      last edited by

                                      @Christoph-Hart is the way i have this written the problem perhaps?

                                      inline function oncmbPatchesControl(component, value)
                                      {
                                      	slot.loadFile("{XYZ::SampleMap}" + component.getItemText());
                                      	sampler1.loadSampleMap(sampleMaps[value-1]);
                                      };
                                      
                                      cmbPatches.setControlCallback(oncmbPatchesControl);
                                      
                                      Christoph HartC 1 Reply Last reply Reply Quote 0
                                      • Christoph HartC
                                        Christoph Hart @Adam_G
                                        last edited by

                                        @Adam_G You might want to check the empty case, maybe that's what causing the problem.

                                        Adam_GA 1 Reply Last reply Reply Quote 0
                                        • Adam_GA
                                          Adam_G @Christoph Hart
                                          last edited by

                                          @Christoph-Hart im not sure what you mean, do you mean the "slot" for the granulators sample map?

                                          Christoph HartC 1 Reply Last reply Reply Quote 0
                                          • Christoph HartC
                                            Christoph Hart @Adam_G
                                            last edited by

                                            @Adam_G no, an if branch in the script callback thaz checks if the item text is empty and then skips the rest.

                                            Adam_GA 3 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            55

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            102.1k

                                            Posts