DavidVine / amx-util-library

Various useful NetLinx include files and modules
MIT License
36 stars 12 forks source link

webSocketOnMessage #1

Closed SanderPaulus closed 7 years ago

SanderPaulus commented 7 years ago

Hi David,

I get the following error message whenever I use a webSocketOn function. ERROR: (0): C10580: Internal Error: Major system error occurred during code generation

Are these functions live, or am I just missing something?

Kind Regards,

Sander

image

DavidVine commented 7 years ago

Hi Sander,

The "Internal Error: Major system error occurred during code generation" error is one of those errors where the compiler knows something went wrong but it can't tell you what or where.

Most of the time it is occurs due to multiple functions being declared with the same identifier.

Have you defined the associated symbol (WEBSOCKET_EVENT_OPEN) in your main program using the #DEFINE compiler directive?

If not you will certainly see that compiler error as the WebSocketOnMessage will be defined in your main code file as well as in the WebSockets include file.

Have a look at the notes at the top of the include file for implementation instructions.

Let me know if that fixes your problem.

Kind regards,

-David avt

SanderPaulus commented 7 years ago

Silly mistake on my part, should have read the notes better! My apologies.

SanderPaulus commented 7 years ago

Hi David,

I apologize! i did not read the notes very well.

Now compiling without errors.

Thanks for your reply.

Regards Sander

On Thu, May 11, 2017 at 10:08 AM, David Vine notifications@github.com wrote:

Hi Sander,

The "Internal Error: Major system error occurred during code generation" error is one of those errors where the compiler knows something went wrong but it can't tell you what or where.

Most of the time it is occurs due to multiple functions being declared with the same identifier.

Have you defined the associated symbol (WEBSOCKET_EVENT_OPEN) in your main program using the #DEFINE compiler directive?

If not you will certainly see that compiler error as the WebSocketOnMessage will be defined in your main code file as well as in the WebSockets include file.

Have a look at the notes at the top of the include file for implementation instructions.

Let me know if that fixes your problem.

Kind regards,

-David avt

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AMXAUNZ/amx-util-library/issues/1#issuecomment-300714873, or mute the thread https://github.com/notifications/unsubscribe-auth/AHiVvrZOm1rGYzytswn7OnyP7ptc60fOks5r4sIbgaJpZM4NXmoh .

DavidVine commented 7 years ago

No problems Sander.

Thanks for letting me know it'a working now.

If you have any questions, just ask.

-David avt