Test plugin
Test plugin
I'm trying to compile a simple plugin and i've started to create a new one using "library" example. I'm using Visual Studio 2019 and nmake compiles the plugin successully. However when i try to use it on hollywood i get an error "Reason: Error loading plugin"
I've also tried the clean library plugin and i get the same error.
Is this a VS2019 problem?
Another question. If i create a char* inside my function via malloc (my_malloc) when this variable is freed? IS there a best practice to handle char pointers?
Thank you
I've also tried the clean library plugin and i get the same error.
Is this a VS2019 problem?
Another question. If i create a char* inside my function via malloc (my_malloc) when this variable is freed? IS there a best practice to handle char pointers?
Thank you
Re: Test plugin
Same with Visual Studio 2017
Re: Test plugin
Well, found the problem.. that stupid Dev console was using x86 instead of x64...
Plugin compiled and now hollywood loads it correctly but the test example eveng if doesn't give me any error doesn't print any value in console
Plugin compiled and now hollywood loads it correctly but the test example eveng if doesn't give me any error doesn't print any value in console
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Test plugin
Windows distinguishes between Windows and console programs. Windows programs can’t write to the console. If you want to see the console output, you need to use „Hollywood_Console.exe“ instead. Then the console output should be visible.
Re: Test plugin
Yes. Everything is working correctly nowe. Event the plugin that adds some functions i need for another program
I'm using visual studio code as editor since it is the edito I usually use for other languages.
I'm using visual studio code as editor since it is the edito I usually use for other languages.
Re: Test plugin
I've just compiled the plugin for OS4 but when i try to run a test file that is using it i get a requester that plugin is not found. Snoopy open it and LoadSeg is called but there are no more informations. What can i check to test what is missing?
Of course on os4 version i've added amigaentry.c
Of course on os4 version i've added amigaentry.c
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Test plugin
Run Hollywood from a Shell like this and post its output:
Code: Select all
1> Hollywood test.hws -debugdevice @stdout
Re: Test plugin
Bu i don't have the OS4 hollywood version. I have only the windows one and on windows everything is working correctly
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Test plugin
According to my records, you're also registered for the OS4 version of Hollywood so it should be available in the restricted download section for you. If you can't find it, PM me.
Re: Test plugin
Yes found everything. Thanks (and sorry)